Copy system-config and puppet modules everywhere

If we're going to run puppet apply on all of our nodes, they need
the puppet modules installed on them first.

Change-Id: I84b80818fa54d1ddc4d46fead663ed4212bb6ff3
This commit is contained in:
Monty Taylor 2015-11-24 16:23:06 -05:00
parent 00a0d57847
commit 8ff794f599
2 changed files with 13 additions and 2 deletions

View File

@ -0,0 +1,10 @@
---
- hosts: '!puppetmaster.openstack.org'
gather_facts: false
tasks:
- synchronize:
src: /opt/system-config/production
dest: /opt/system-config
- synchronize:
src: /etc/puppet/modules
dest: /etc/puppet

View File

@ -36,8 +36,9 @@ touch manifests/site.pp
# errexit
set +e
# First run the git/gerrit sequence, since it's important that they all work
# together
# First, sync the puppet repos with all the machines
ansible-playbook -f 20 ${ANSIBLE_PLAYBOOKS}/update_puppet.yaml
# Run the git/gerrit sequence, since it's important that they all work together
ansible-playbook -f 10 ${ANSIBLE_PLAYBOOKS}/remote_puppet_git.yaml
# Run AFS changes separately so we can make sure to only do one at a time
# (turns out quorum is nice to have)