system-config/playbooks/remote_puppet_git.yaml
Monty Taylor 082c5174b1
Turn off puppet reports
We have puppet configured to write reports when it runs. We used to
collect these and inject them into puppetdb. Since we don't do this
anymore, they're just a giant pile of files we never see.

Enable managing the puppet.conf file from ansible and then also turn off
the reports.

Change-Id: I55bef052bddc9b9ff5de76a4f0b2ec07f93f158c
2018-01-24 09:35:54 -06:00

47 lines
1.2 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
manage_config: True
puppet_reports: none
- hosts: "git0*:!disabled"
strategy: free
gather_facts: true
max_fail_percentage: 1
roles:
- role: puppet
facts:
project_config_ref: "{{ hostvars.localhost.gitinfo.after }}"
manage_config: True
puppet_reports: none
- hosts: "review.openstack.org:!disabled"
strategy: free
gather_facts: true
roles:
- role: puppet
facts:
project_config_ref: "{{ hostvars.localhost.gitinfo.after }}"
puppet_timeout: 60m
manage_config: True
puppet_reports: none
- hosts: "zuul-scheduler:!disabled"
strategy: free
gather_facts: true
roles:
- role: puppet
facts:
project_config_ref: "{{ hostvars.localhost.gitinfo.after }}"
puppet_timeout: 60m
manage_config: True
puppet_reports: none