genvid.toolbox.LinuxConsulService¶
-
class
genvid.toolbox.
LinuxConsulService
(**kwargs)¶ Bases:
genvid.toolbox.service.ConsulService
Configure Consul as a service on a Linux server.
-
NAME
= 'service-consul-linux'¶
-
CONFIG_FILE
= '/etc/consul.d/config.json'¶
-
add_consul_dns
()¶ Add own IP to resolv.conf, this will get ovewriten by dhclient though
-
restart_dhclient
()¶ Restart dhclient processes using the same commands
-