Removing package tag, and manage grafana-server service

This commit is contained in:
Philippe Caseiro 2018-06-01 10:51:39 +02:00
parent 0c2c71a8d8
commit d1552ab901
1 changed files with 24 additions and 24 deletions

View File

@ -1,33 +1,33 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<creole> <creole>
<files> <files>
<package>prometheus</package>
<file filelist='prometheus' name='/etc/prometheus/prometheus.yml' source='prometheus.yml' mkdir='True' rm='True'/> <file filelist='prometheus' name='/etc/prometheus/prometheus.yml' source='prometheus.yml' mkdir='True' rm='True'/>
<file filelist='grafana' name='/etc/grafana/grafana.ini' source='grafana.ini' mkdir='True' rm='True'/> <file filelist='grafana' name='/etc/grafana/grafana.ini' source='grafana.ini' mkdir='True' rm='True'/>
<service>prometheus</service> <service>prometheus</service>
<service>grafana-server</service>
<service_access service='prometheus'> <service_access service='prometheus'>
<port service_accesslist="saLemon">80</port> <port service_accesslist="saLemon">80</port>
<port service_accesslist="saLemon">443</port> <port service_accesslist="saLemon">443</port>
<port service_accesslist="prometheus">9090</port> <port service_accesslist="prometheus">9090</port>
<port service_accesslist="prometheus">9100</port> <port service_accesslist="prometheus">9100</port>
</service_access> </service_access>
<service_access service='grafana-server'> <service_access service='grafana-server'>
<port service_accesslist="grafana">3000</port> <port service_accesslist="grafana">3000</port>
</service_access> </service_access>
</files> </files>
<variables> <variables>
<family name='services'> <family name='services'>
<variable name='activer_prometheus' type='oui/non' description="Activer le service prometheus sur le serveur"> <variable name='activer_prometheus' type='oui/non' description="Activer le service prometheus sur le serveur">
<value>oui</value> <value>oui</value>
</variable> </variable>
</family> </family>
<family name='prometheus'> <family name='prometheus'>
<variable name='activer_grafana' type='oui/non' description="Activer le service grafana sur le serveur"> <variable name='activer_grafana' type='oui/non' description="Activer le service grafana sur le serveur">
<value>oui</value> <value>oui</value>
</variable> </variable>
<variable name='prometheusJobName' type='string' description="Nom du job ajouté au label"> <variable name='prometheusJobName' type='string' description="Nom du job ajouté au label">
<value>prometheus</value> <value>prometheus</value>
</variable> </variable>
<variable name='prometheusScrapeInterval' type='string' description="Intervalle de récupération des données sur les différents noeuds"> <variable name='prometheusScrapeInterval' type='string' description="Intervalle de récupération des données sur les différents noeuds">
<value>15s</value> <value>15s</value>
</variable> </variable>
@ -43,17 +43,17 @@
<variable name='nouveau_node_exporter' type='string' description="url/IP du nouveau node exporter" multi="True" mandatory='True'> <variable name='nouveau_node_exporter' type='string' description="url/IP du nouveau node exporter" multi="True" mandatory='True'>
<value>client.prometheus.lan</value> <value>client.prometheus.lan</value>
</variable> </variable>
<variable name='job_name_node' type='string' description="Nom du job pour les noeuds" mode='expert'> <variable name='job_name_node' type='string' description="Nom du job pour les noeuds" mode='expert'>
<value>node</value> <value>node</value>
</variable> </variable>
<variable name='job_file_config' type='string' description="Emplacement des fichiers de configuration des noeuds" auto_freeze='True' mode='expert' mandatory='True'> <variable name='job_file_config' type='string' description="Emplacement des fichiers de configuration des noeuds" auto_freeze='True' mode='expert' mandatory='True'>
<value>/etc/prometheus/nodes</value> <value>/etc/prometheus/nodes</value>
</variable> </variable>
</family> </family>
<family name="grafana"> <family name="grafana">
<variable name='grafana_domain' type='string' description="Nom de Domaine ou IP pour accèder à l'interface Grafana" mandatory='True'> <variable name='grafana_domain' type='string' description="Nom de Domaine ou IP pour accèder à l'interface Grafana" mandatory='True'>
<value>localhost</value> <value>localhost</value>
</variable> </variable>
<variable name='grafana_session_max_lifetime' type='string' description="Durée avant déconnexion de l'interface Grafana (en seconde)"> <variable name='grafana_session_max_lifetime' type='string' description="Durée avant déconnexion de l'interface Grafana (en seconde)">
<value>86400</value> <value>86400</value>
</variable> </variable>
@ -66,15 +66,15 @@
<variable name='grafana_auth_anonymous' type='string' description="Activer l'accès aux utilisateurs non enregistrés"> <variable name='grafana_auth_anonymous' type='string' description="Activer l'accès aux utilisateurs non enregistrés">
<value>false</value> <value>false</value>
</variable> </variable>
</family> </family>
</variables> </variables>
<constraints> <constraints>
<condition name='disabled_if_in' source='activer_firewall'> <condition name='disabled_if_in' source='activer_firewall'>
<param>non</param> <param>non</param>
<target type='variable'>activer_prometheus</target> <target type='variable'>activer_prometheus</target>
</condition> </condition>
<condition name='disabled_if_in' source='activer_firewall'> <condition name='disabled_if_in' source='activer_firewall'>
<param>non</param> <param>non</param>
<target type='variable'>activer_grafana</target> <target type='variable'>activer_grafana</target>
</condition> </condition>