def download_consul_web_ui_files(self):
""" installs the consul web ui files """
log_green('install web ui for consul...')
with settings(
hide('stdout', 'running'),
host_string=self.host_string,
private_key_filename=self.private_key,
):
if 'dist' not in sudo('ls /home/consul/'):
with cd('/home/consul'):
sudo(
'wget -c '
'https://releases.hashicorp.com/consul/'
'%s/consul_%s_web_ui.zip' % (
self.version, self.version),
user='consul'
)
sudo('unzip -o *.zip', user='consul')
sudo('rm -f *.zip', user='consul')
评论列表
文章目录