initial commit
diff --git a/system/grafana/client/single.yml b/system/grafana/client/single.yml
new file mode 100644
index 0000000..c36d4ff
--- /dev/null
+++ b/system/grafana/client/single.yml
@@ -0,0 +1,23 @@
+classes:
+- service.grafana.client.single
+parameters:
+ grafana:
+ client:
+ enabled: true
+ server:
+ protocol: http
+ host: ${_param:stacklight_monitor_address}
+ port: 3000
+ user: ${_param:grafana_user}
+ password: ${_param:grafana_password}
+ remote_data:
+ engine: 'salt_mine'
+ datasource:
+ lma:
+ type: influxdb
+ host: ${_param:grafana_influxdb_host}
+ port: ${_param:influxdb_port}
+ user: ${_param:influxdb_user}
+ password: ${_param:influxdb_password}
+ database: ${_param:influxdb_database}
+ is_default: true
diff --git a/system/grafana/server/single.yml b/system/grafana/server/single.yml
new file mode 100644
index 0000000..911f32f
--- /dev/null
+++ b/system/grafana/server/single.yml
@@ -0,0 +1,35 @@
+classes:
+- service.grafana.server.single
+parameters:
+ _param:
+ grafana_port: 3000
+ grafana_user: admin
+ grafana_password: admin
+ linux:
+ system:
+ repo:
+ grafana:
+ enabled: true
+ source: 'deb https://packagecloud.io/grafana/stable/debian/ jessie main'
+ key_url: 'https://packagecloud.io/gpg.key'
+ grafana:
+ server:
+ enabled: true
+ bind:
+ address: ${_param:single_address}
+ port: ${_param:grafana_port}
+ database:
+ engine: mysql
+ host: ${_param:openstack_database_address}
+ port: 3306
+ name: grafana
+ user: grafana
+ password: ${_param:mysql_grafana_password}
+ auth:
+ engine: basic
+ admin:
+ user: ${_param:grafana_user}
+ password: ${_param:grafana_password}
+ dashboards:
+ enabled: false
+ path: /var/lib/grafana/dashboards