Monty Taylor f1b9b864f7 Translate the rest of run_all.sh to ansible
There are a few things that are run as part of run_all.sh that are
not logged into puppet_run_all.log - namely git cloning, module installation
and ansible role installation. Let's go ahead and do those in a playbook
so that we can see their output while we're watching the log file.

Change-Id: I6982452f1e572b7bc5a7b7d167c1ccc159c94e66
2016-01-10 12:38:22 -05:00

35 lines
879 B
YAML

---
- 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
- hosts: '!puppetmaster.openstack.org:!disabled'
gather_facts: false
tasks:
- synchronize:
src: /opt/system-config/production
dest: /opt/system-config
- synchronize:
src: /etc/puppet/modules
dest: /etc/puppet
- file:
path: /etc/puppet/hieradata
state: directory
mode: 0700
owner: root
group: root
- file:
src: /etc/puppet/hieradata
dest: /opt/system-config/hieradata
state: link