Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

openstack-ansible tips and tricks

3 thoughts
last posted July 18, 2015, 2:32 a.m.
0
get stream as: markdown or atom
0

Running a command across all physical hosts, such as seeing the IP addresses for all containers on all through lxc.

ansible "hosts:is_metal" -m "shell" -a "lxc-ls -f"

0

Running a command against all containers

ansible "hosts:all_containers" -m "shell" -a "ip a"

0

Building an inventory file without executing playbooks

Icehouse/Juno:

$ cd rpc_deployment
$ inventory/dynamic_inventory.py \
 --file /etc/rpc_deploy/rpc_user_config.yml

Kilo/Liberty

$ cd playbooks
$ inventory/dynamic_inventory.py \
--file /etc/openstack_deploy/openstack_user_config.yml