system-config/playbooks/remote_puppet_git.yaml
Jeremy Stanley 9cc99d4b47 Glob zuulv3 and zuul01 as zuul* in playbooks
To avoid the need for regular expression matching, switch to a
simple glob of zuul* covering zuulv3 and zuul01 servers. Now that
zuul-dev and zuulv3-dev are gone, this glob will only match the two
remaining hosts mentioned.

Change-Id: I2749ffa6c0e4d2ea6626d1ebde1d7b3ab49378bb
2018-01-16 23:40:48 +00:00

41 lines
1.0 KiB
YAML

---
- hosts: "localhost:!disabled"
strategy: free
gather_facts: true
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
roles:
- role: puppet
copy_hieradata: False
copy_puppet: False
- hosts: "git0*:!disabled"
strategy: free
gather_facts: true
max_fail_percentage: 1
roles:
- role: puppet
facts:
project_config_ref: "{{ hostvars.localhost.gitinfo.after }}"
- hosts: "review.openstack.org:!disabled"
strategy: free
gather_facts: true
roles:
- role: puppet
facts:
project_config_ref: "{{ hostvars.localhost.gitinfo.after }}"
vars:
puppet_timeout: 60m
- hosts: "zuul*.openstack.org:!disabled"
strategy: free
gather_facts: true
roles:
- role: puppet
facts:
project_config_ref: "{{ hostvars.localhost.gitinfo.after }}"
vars:
puppet_timeout: 60m