this will all end in tears
This commit is contained in:
parent
4850596277
commit
5dd3907687
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||||
|
|
|
@ -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 }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue