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:
Aleksandr Mogylchenko 2017-02-02 09:55:58 +01:00
parent 55d77ced5d
commit fbbb667354

View File

@ -518,15 +518,14 @@ def do_status(role_name):
def do_provision(role_name): def do_provision(role_name):
workflow = get_workflow(role_name) workflow = get_workflow(role_name)
files = workflow.get('files', [])
create_files(files)
dependencies = workflow.get('dependencies') dependencies = workflow.get('dependencies')
if dependencies: if dependencies:
etcd_client = get_etcd_client() etcd_client = get_etcd_client()
wait_for_dependencies(dependencies, etcd_client) wait_for_dependencies(dependencies, etcd_client)
files = workflow.get('files', [])
create_files(files)
job = workflow.get("job") job = workflow.get("job")
daemon = workflow.get("daemon") daemon = workflow.get("daemon")
roll = workflow.get("roll") roll = workflow.get("roll")