Go to file
Sergey Bubnov (omg) d89c7ab77e prevent wrong behaviour when more than one dhcp on interfaces
firts we check that the VM has already get some IP address
and if so we just deploy as usual. If VM have no IP address
on any interface we throw all interfaces except first (eth0) to
the `empty vlan` that have no DHCP server enabled. VLAD ID defined
in environment variable. After network configuration inside VM we
restore propper VLAN IDs on all interfaces. This approach should help
in situations when DHCP available on more than one interfaces and those
interfaces configured as dhcp-clients, thus more than one default gw
will be configured with some metrics and all traffic will be routed
to the right one or will be not.
2019-06-27 13:21:48 +04:00
docs inial public version 2018-10-02 10:16:46 +04:00
library support for cloud-init on pve 2019-06-26 16:20:56 +04:00
nix show reason of proxmoxer exceptions 2018-10-29 15:24:46 +04:00
plugins prevent wrong behaviour when more than one dhcp on interfaces 2019-06-27 13:21:48 +04:00
roles prevent wrong behaviour when more than one dhcp on interfaces 2019-06-27 13:21:48 +04:00
vars inial public version 2018-10-02 10:16:46 +04:00
.gitignore inial public version 2018-10-02 10:16:46 +04:00
.gitmodules add opennebula role as a submodule 2018-11-14 11:46:37 +04:00
ansible.cfg inial public version 2018-10-02 10:16:46 +04:00
infra.sh return infra.sh and write pereparation procedure 2019-05-23 12:11:56 +04:00
make-example-stack.yml inial public version 2018-10-02 10:16:46 +04:00
provision.yml another fix 2018-11-21 10:33:33 +04:00
README.md return infra.sh and write pereparation procedure 2019-05-23 12:11:56 +04:00
shell.nix refactor shell.nix 2018-10-25 12:13:36 +04:00

Prepare

install prerequired ansible 2.6+ and python modules

apt-get install ansible python-module-proxmoxer python-module-jmespath python-module-netaddr

init submodules and pull infra-conf repository

export CONF_URI="http://gogs.srt/BaseALT/infra-conf.git"
git submodule update --init --recursive
git subtree add --prefix=vars/conf "${CONF_URI}" master
ssh-add ~/.ssh/robot_key

do not forget to add robot ssh-key and clone passdb

deploy desired stack

./infra.sh test-env test-stack