-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
connection/ssh_lxc.py: new invocation method
Now this connection can (also) be used directly indicating the LXC container as the target (or delegated host), if the variables `ansible_lxc_host` and `ansible_lxc_name` are provided, either in invetory, role or task. `ansible_lxc_host` is the inventory hostname of the LXC running physical host. `ansible_lxc_name` is the container name. File `hosts.example` is provided to show how this variables can be set up in an inventory.
- Loading branch information
Showing
2 changed files
with
71 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
localhost ansible_connection=local | ||
gandalf ansible_host=10.150.40.1 ansible_user=root | ||
|
||
# CERTIFICATION AUTHORITIES | ||
authorities ansible_host=10.150.40.8 ansible_user=root | ||
authorities_request ansible_host=10.150.40.8 ansible_user=request | ||
|
||
# PHYSICAL HOST -------------------------------------------------------------- <LVM VG Name> | ||
black ansible_host=10.150.40.42 ansible_user=root vg_name=black-vg | ||
ca ansible_host=10.150.40.8 ansible_user=root | ||
|
||
# LXC GUEST ------------------------------------------------------------------ <LXC Running Host> ------ <LXC Container Name> | ||
#blogs ansible_host=10.150.42.17 ansible_user=root ansible_lxc_host=black ansible_lxc_name=blogs | ||
ldap ansible_host=10.150.42.10 ansible_user=root ansible_lxc_host=black ansible_lxc_name=ldap | ||
#lists ansible_host=10.150.42.15 ansible_user=root | ||
#login ansible_host=10.150.42.100 ansible_user=root | ||
#mail ansible_host=10.150.42.36 ansible_user=root | ||
#matrix ansible_host=10.150.42.26 ansible_user=root | ||
#media ansible_host=10.150.42.104 ansible_user=root | ||
#projects ansible_host=10.150.42.12 ansible_user=root | ||
#status ansible_host=10.150.42.103 ansible_user=root | ||
#users ansible_host=10.150.42.18 ansible_user=root | ||
#webmail ansible_host=10.150.42.14 ansible_user=root | ||
#wiki ansible_host=10.150.42.16 ansible_user=root | ||
|
||
# NETWORK NODES | ||
management_gateway ansible_host=10.150.40.1 ansible_user=root | ||
vm_gateway ansible_host=10.150.42.1 ansible_user=root | ||
reverse_proxy ansible_host=10.150.42.1 ansible_user=root | ||
|
||
[vm_hosts] | ||
black |