Change the old meta puppetmaster group to the expected 'puppetmaster' group

The code is switching from relying on metadata based groups to
dynamically created groups with add_host.
As such, the group containing puppetmaster is now 'puppetmaster'.

Change-Id: Ic66a68fd7e873816ec27be37ce4842eea8268a47
This commit is contained in:
Ricardo Carrillo Cruz 2016-06-07 11:27:46 +00:00
parent 563123d788
commit 285f884691
6 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
---
# file: bootstrap_puppet_infra_nodes.yml
- hosts: infra:!meta-infra_type_puppetmaster
- hosts: infra:!puppetmaster
user: ubuntu
become: true
roles:

View File

@ -1,6 +1,6 @@
---
# file: bootstrap_puppetmaster.yml
- hosts: meta-infra_type_puppetmaster
- hosts: puppetmaster
gather_facts: no
user: ubuntu
become: true

View File

@ -1,7 +1,7 @@
---
- name: Fetch Gerrit MySQL password from Puppetmaster hiera
command: hiera -c /etc/puppet/hiera.yaml gerrit_mysql_password environment=production
delegate_to: "{{ groups['meta-infra_type_puppetmaster'][0] }}"
delegate_to: "{{ groups['puppetmaster'][0] }}"
register: gerrit_mysql_password
no_log: True

View File

@ -4,7 +4,7 @@
- name: Get JJB password from Puppetmaster Hiera
command: hiera -c /etc/puppet/hiera.yaml jenkins_jobs_password environment=production
delegate_to: "{{ groups['meta-infra_type_puppetmaster'][0] }}"
delegate_to: "{{ groups['puppetmaster'][0] }}"
register: jenkins_jobs_password
no_log: True

View File

@ -1,5 +1,5 @@
[main]
server={{ groups['meta-infra_type_puppetmaster'][0] }}
server={{ groups['puppetmaster'][0] }}
certname={{ inventory_hostname }}
logdir=/var/log/puppet
vardir=/var/lib/puppet

View File

@ -1,5 +1,5 @@
[main]
server={{ groups['meta-infra_type_puppetmaster'][0] }}
server={{ groups['puppetmaster'][0] }}
certname={{ inventory_hostname }}
logdir=/var/log/puppet
vardir=/var/lib/puppet