system-config/playbooks/remote_puppet_git.yaml
Monty Taylor d039a62045 Move playbooks out of the puppet module
/etc/ansible/playbooks isn't actually a thing, it was just a convenient
place to put things. However, to enable puppet apply, we're going to
want a group_vars directory adjacent to the playbooks, so having them be
a subdirectory of the puppet module and installed by it is just extra
complexity. Also, if we run out of system-config, then it'll be easier
to work with things like what we do with puppet environments for testing
things.

Change-Id: I947521a73051a44036e7f4c45ce74a79637f5a8b
2015-10-30 11:31:05 +09:00

25 lines
731 B
YAML

---
- hosts: localhost
gather_facts: false
connection: local
tasks:
# Note that git module does ls-remote if clone is set to no and places
# the remote_head value in returndict.after
- git: repo=https://git.openstack.org/openstack-infra/project-config clone=no
register: gitinfo
- hosts: git0*
gather_facts: false
max_fail_percentage: 1
roles:
- role: puppet
puppetmaster: puppetmaster.openstack.org
facts:
project_config_ref: "{{ hostvars.localhost.gitinfo.after }}"
- hosts: review.openstack.org
gather_facts: false
roles:
- role: puppet
puppetmaster: puppetmaster.openstack.org
facts:
project_config_ref: "{{ hostvars.localhost.gitinfo.after }}"