this will all end in tears

This commit is contained in:
Stephen Smoogen 2017-01-09 00:17:45 +00:00
parent 4850596277
commit 5dd3907687
2 changed files with 6 additions and 6 deletions

View file

@ -1,9 +1,9 @@
define hostgroup { # define hostgroup {
hostgroup_name pgbdr # hostgroup_name pgbdr
alias PGBDR servers # alias PGBDR servers
members {% for host in groups['pgbdr'] %}{{host}}{% if not loop.last %},{% endif %} {% endfor %} # members {% for host in groups['pgbdr'] %}{{host}}{% if not loop.last %},{% endif %} {% endfor %}
} # }
define hostgroup { define hostgroup {
hostgroup_name pgbdr-stg hostgroup_name pgbdr-stg

View file

@ -1,5 +1,5 @@
{% for host in groups['all'] %} {% for host in groups['all'] %}
{% if hostvars[host].datacenter == 'cloud' %} {% if hostvars[host].datacenter == 'cloud' || hostvars[host].datacenter == 'fedorainfracloud' %}
define host { define host {
use defaulttemplate use defaulttemplate
host_name {{ host }} host_name {{ host }}