diff --git a/playbooks/update-system-config.yaml b/playbooks/update-system-config.yaml new file mode 100644 index 0000000000..a0729b36be --- /dev/null +++ b/playbooks/update-system-config.yaml @@ -0,0 +1,21 @@ +--- +- hosts: "localhost:!disabled" + connection: local + gather_facts: false + tasks: + + - name: Make sure system-config repo is up to date + git: + repo: https://git.openstack.org/openstack-infra/system-config + dest: /opt/system-config/production + force: yes + + - name: Clone puppet modules to /etc/puppet/modules + command: ./install_modules.sh + args: + chdir: /opt/system-config/production + + - name: Install ansible roles to /etc/ansible/roles + command: ansible-galaxy install --force -r roles.yaml + args: + chdir: /opt/system-config/production diff --git a/playbooks/update_puppet.yaml b/playbooks/update_puppet.yaml deleted file mode 100644 index e026d1239b..0000000000 --- a/playbooks/update_puppet.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -- hosts: "localhost:!disabled" - connection: local - gather_facts: false - tasks: - - git: - repo: https://git.openstack.org/openstack-infra/system-config - dest: /opt/system-config/production - force: yes - - shell: ./install_modules.sh - args: - chdir: /opt/system-config/production - - shell: ansible-galaxy install --force -r roles.yaml - args: - chdir: /opt/system-config/production diff --git a/run_all.sh b/run_all.sh index fed06832cd..e4fca81774 100755 --- a/run_all.sh +++ b/run_all.sh @@ -31,7 +31,7 @@ set +e # stuck if they are oomkilled # First, sync the puppet repos with all the machines -timeout -k 2m 120m ansible-playbook -f 10 ${ANSIBLE_PLAYBOOKS}/update_puppet.yaml +timeout -k 2m 120m ansible-playbook -f 10 ${ANSIBLE_PLAYBOOKS}/update-system-config.yaml # Update the puppet version timeout -k 2m 120m ansible-playbook -f 10 ${ANSIBLE_PLAYBOOKS}/update_puppet_version.yaml # Run the git/gerrit/zuul sequence, since it's important that they all work together