Quellcode durchsuchen

add in supervisor configs

Chris Mague vor 8 Jahren
Ursprung
Commit
f39068358c
2 geänderte Dateien mit 13 neuen und 1 gelöschten Zeilen
  1. 1 1
      files/consul_cloud_setup
  2. 12 0
      files/supervisord_consul

+ 1 - 1
files/consul_cloud_setup

@@ -34,7 +34,7 @@ if data['consul_master'] == '127.0.0.1':
 else:
     consul_settings['retry_join'] = data['consul_master']
 
-if re.match('amitest', data['role']) is not None:
+if re.match('consul', data['role']) is not None:
     consul_settings['server'] = True
     consul_settings['ui_dir'] = "/opt/consul/ui"
 

+ 12 - 0
files/supervisord_consul

@@ -0,0 +1,12 @@
+[program:consul]
+command=/bin/bash -c "/usr/local/bin/consul_cloud_setup && /opt/consul/bin/consul agent -config-dir=/opt/consul/etc -bind=0.0.0.0"
+directory=/tmp
+user=consul
+numprocs=1
+stdout_logfile=/opt/consul/log/consul.log
+stderr_logfile=/opt/consul/log/error.log
+autostart=true
+autorestart=true
+startsecs=10
+stopwaitsecs=10
+priority=1