Revert "Perform files creation after all dependencies resolved"
For SSL-enabled deployments file creation should be first, otherwise
start_script.py won't be able to connect to etcd, since ca.pem is
missing.
This reverts commit 55d77ced5d
.
Change-Id: Ic488d837b1dd4f21eae4ad5fe26bfb71b1f8a04d
This commit is contained in:
parent
55d77ced5d
commit
fbbb667354
@ -518,15 +518,14 @@ def do_status(role_name):
|
||||
|
||||
def do_provision(role_name):
|
||||
workflow = get_workflow(role_name)
|
||||
files = workflow.get('files', [])
|
||||
create_files(files)
|
||||
|
||||
dependencies = workflow.get('dependencies')
|
||||
if dependencies:
|
||||
etcd_client = get_etcd_client()
|
||||
wait_for_dependencies(dependencies, etcd_client)
|
||||
|
||||
files = workflow.get('files', [])
|
||||
create_files(files)
|
||||
|
||||
job = workflow.get("job")
|
||||
daemon = workflow.get("daemon")
|
||||
roll = workflow.get("roll")
|
||||
|
Loading…
Reference in New Issue
Block a user