Sync deployment tasks product-way

Deployment tasks are now stored in both /etc/puppet and /etc/fuel
directories. We have to sync both directories - fortunately we can just
reuse part of fuel master node preparation
Also rewrite it for using SSHManager

Change-Id: I54402f7b8032771d9156da6937df9cfba1d6b534
Closes-bug:1673084
This commit is contained in:
Vladimir Khlyunev 2017-03-15 19:26:40 +04:00
parent be8a739a0c
commit 72c75e8ec1
1 changed files with 6 additions and 3 deletions

View File

@ -306,9 +306,12 @@ def update_fuel(func):
" because of deploying wrong release!"
.format(ubuntu_files_count))
if settings.SYNC_DEPL_TASKS:
with environment.d_env.get_admin_remote() as remote:
remote.execute("fuel release --sync-deployment-tasks"
" --dir /etc/puppet/")
ssh = environment.ssh_manager
admin_ip = environment.get_admin_node_ip()
ssh.check_call(
ip=admin_ip,
command="puppet apply "
"/etc/puppet/*/modules/fuel/examples/client.pp")
return result
return wrapper