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

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

Change-Id: I235e445f9e0f7e94f52a0c9dfc0df80b55d49bc1
This commit is contained in:
Ricardo Carrillo Cruz 2016-06-07 14:29:58 +00:00
parent 285f884691
commit ba3b591b86
4 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
---
# file: boostrap_gerrit.yml
- hosts: meta-infra_type_gerrit
- hosts: gerrit
gather_facts: no
user: ubuntu
become: true

View File

@ -81,7 +81,7 @@
- name: Deploy Gerrit fqdn hiera file
copy: >
src=hiera/fqdn/gerrit.yaml
dest=/etc/puppet/hieradata/production/fqdn/{{ groups['meta-infra_type_gerrit'][0] }}.yaml
dest=/etc/puppet/hieradata/production/fqdn/{{ groups['gerrit'][0] }}.yaml
- name: Deploy Zuul fqdn hiera file
copy: >

View File

@ -4,7 +4,7 @@ class infra-ansible::profiles::zuul {
}
class { '::zuul':
gerrit_server => '{{ groups['meta-infra_type_gerrit'][0] }}',
gerrit_server => '{{ groups['gerrit'][0] }}',
gerrit_user => 'gerrit',
zuul_ssh_private_key => hiera('zuul_ssh_private_key_contents'),
zuul_url => 'http://{{ groups['meta-infra_type_zuul'][0] }}/p',

View File

@ -1,5 +1,5 @@
---
- hosts: meta-infra_type_gerrit
- hosts: gerrit
user: ubuntu
gather_facts: no
become: true