Slide 13
Slide 13 text
HOW?
DYNAMIC INVENTORY
{
"all" : {
"hosts" : [
"web1.example.com",
"web2.example.com",
"lb1.example.com",
"db1.example.com",
"db2.example.com"
],
"vars" : {
"load_balancer": "lb1.example.com"
}
},
"_meta" : {
"hostvars" : {
"db2.example.com": {
"slave": "true"
}
}
},
"webservers": {
"hosts": [ "web1.example.com", "web2.example.com" ]
},
"lbservers": {
"hosts": [ "lb1.example.com" ]
},
"dbservers": {
"hosts": [ "db1.example.com", "db2.example.com" ]
},
"ruby": {
"hosts": [ "web1.example.com", "web2.example.com", "lb1.example.com" ]
},
"east": {
"hosts": [ "web1.example.com", "db1.example.com", "lb1.example.com" ]
},
"west": {
"hosts": [ "web2.example.com", "db2.example.com" ]
}
}