diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-01-04 15:04:54 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-01-04 15:06:49 +0100 |
commit | cc70c3640eeb06d9129cd624c0750f2db70648a7 (patch) | |
tree | 864b088bc0149cc6e19d9c0e3f67e5b5f3916af1 /ansible/roles/lxc-host/defaults | |
parent | 33700d2b70a1f3fbfd412a0483865f930cb2facc (diff) | |
download | infra-cc70c3640eeb06d9129cd624c0750f2db70648a7.tar.gz infra-cc70c3640eeb06d9129cd624c0750f2db70648a7.tar.bz2 infra-cc70c3640eeb06d9129cd624c0750f2db70648a7.tar.xz infra-cc70c3640eeb06d9129cd624c0750f2db70648a7.zip |
lxc-host: Major refactoring.
o Removing radvd support, should be handled by itself. Better support
for setting ipv6 addresses instead.
o Moving out UFW stupport, should be moved to the ufw package.
o Better variables, default and file names.
Diffstat (limited to 'ansible/roles/lxc-host/defaults')
-rw-r--r-- | ansible/roles/lxc-host/defaults/main.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ansible/roles/lxc-host/defaults/main.yml b/ansible/roles/lxc-host/defaults/main.yml index 462ba8c..cf747f3 100644 --- a/ansible/roles/lxc-host/defaults/main.yml +++ b/ansible/roles/lxc-host/defaults/main.yml @@ -1 +1,29 @@ lxc_host__backing_store: dir +lxc_host__br_if: lxc0-br +lxc_host__internal_if: lxc0-int +lxc_host__default_container_if_name: veth0 +lxc_host__networkd_number: 50 + +# You have to fill the dict in host_vars/$hostname/lxc.yml +lxc_host__containers: +# test1: # The name of the container +# state: started # The state passed to lxc_container. +# interface: veth0 # The name of the ethernet interface inside the +# # container (optional) +# host_database: # The key used to look up IP info in the +# # global 'host_database' dict (optional, +# # defaults to the name of the container). + +# The host_database must have an entry that looks like: + +# my-container: +# interfaces: +# lxc0-int: # This key must be what is specified +# # by lxc_host__containers.$container.interface +# # or lxc_host__internal_if. +# ipv4: # Optional +# address: aa.bb.cc.dd +# netmask: 24 +# ipv6: # Optional +# address: aaaa::1 +# netmask: 64 |