92c9a7c869
The puppet playbooks were some of the first we wrote, so they're slightly wonky. Remove '---' lines that are completely unnecessary. Fix indentation. Move some variables that are the same everywhere into ansible variables. Put puppet related variables into the puppet group_vars. Stop running puppet on localhost in the git playbook. Change-Id: I2d2a4acccd3523f1931ebec5977771d5a310a0c7
42 lines
969 B
YAML
42 lines
969 B
YAML
- hosts: "localhost:!disabled"
|
|
strategy: free
|
|
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
|
|
- name: Grab project-config repo info
|
|
git:
|
|
repo: https://git.openstack.org/openstack-infra/project-config
|
|
clone: no
|
|
register: gitinfo
|
|
|
|
- hosts: "git-server:!disabled"
|
|
strategy: free
|
|
max_fail_percentage: 1
|
|
roles:
|
|
|
|
- role: puppet
|
|
facts:
|
|
project_config_ref: "{{ hostvars.localhost.gitinfo.after }}"
|
|
|
|
- hosts: "review:!disabled"
|
|
strategy: free
|
|
gather_facts: true
|
|
roles:
|
|
|
|
- role: puppet
|
|
facts:
|
|
project_config_ref: "{{ hostvars.localhost.gitinfo.after }}"
|
|
puppet_timeout: 60m
|
|
|
|
- hosts: "zuul-scheduler:!disabled"
|
|
strategy: free
|
|
gather_facts: true
|
|
roles:
|
|
|
|
- role: puppet
|
|
facts:
|
|
project_config_ref: "{{ hostvars.localhost.gitinfo.after }}"
|
|
puppet_timeout: 60m
|