Zolfa
8720df17c3
Documentation for refactored roles
And minor improvements/refactoring
5 years ago
Zolfa
dc7ed8acbc
roles/lxc_guest: minor refactoring
using {{ domain }} instead of hardcoder lilik.it in resolv.conf.
5 years ago
Zolfa
cbf22c879c
roles/lxc_guest: xfs fixed
Now xfs is working, `prepare_host.yaml` is modified to add `xfs` to
the list of modules loaded at each boot.
If module is added to that list, than is also loaded with a modprobe
handler.
If xfs is not working with `role/lxc_guest`, run the patched
`prepare_host.yaml` againg.
5 years ago
Zolfa
4ae60f5b94
roles/lxc_guest: improved syntax and upgrades
Debian version upgraded to buster.
New templates compatibile with stable versions of LXC provided with
debian.
Cleaner syntax using `ssh_lxc.py` connection plugin. Now we don't user
`lxc-attach -n ...` in the `shell` module on the host anymore, but we
delegate to `{{ vm_name }}` with `connection: ssh_lxc`, using suitable
Ansible module to do operation directly on the container before it is
online and SSH accessible.
We added an option to force an LVM VG name: if the default naming
convention is not used the vg name can be overriden with the `vg_name`
variable.
The `xfs` filesystem seems to be broken in this release, so we used
`ext4` as default for new container. This point needs further
investigation.
5 years ago
Edoardo Putti
4e6905a3d1
change from GARR's mirror to debian default
7 years ago
Andrea Cimbalo
95f93d6a5d
add basic lxc_guest monitoring
7 years ago
Edoardo Putti
57c3b7fc40
switch to stretch as default image
8 years ago
Edoardo Putti
e1118750ad
[lxc_guest] fix typo in resolv conf setter
8 years ago
Edoardo Putti
ad9a5d2c92
get ip from inventory with filter
8 years ago
Edoardo Putti
c731f86294
use `vm_gateway` group vars in lxc_guest
8 years ago
Edoardo Putti
98f25f858e
get gateway address from group variables
8 years ago
Edoardo Putti
0f66a650b1
[lxc] set container debian mirror during creation
8 years ago
Andrea Cimbalo
dc93d96f48
add dns_record role
8 years ago
Andrea Cimbalo
41a144f0fb
update apt cache in lxc_guest
8 years ago
Andrea Cimbalo
1d0e62b2f3
move vm ssh-server to a separate role and use lxc_ssh connection plugin to execute it on the lxc_guest
8 years ago
Edoardo Putti
a9b4fcf0af
change from a /16 subnet to a /24 subnet
With the transition to the new ninux-compatible network we choose to
have a ip pool for vm that resides on the 10.150.42 network.
As 254 unique addresses are sufficient for our need we reduce the subnet
to a /24
8 years ago
Andrea Cimbalo
f736895c8e
lxc_guest: fix raw command response handling
8 years ago
Edoardo Putti
e83cdbfff5
bugfix, extract stdout then parse as json
8 years ago
Edoardo Putti
4b9f7d7fe7
swith to ca_request instead of iterating on cas
8 years ago
Edoardo Putti
4f9f8e35e7
add check on release variable
8 years ago
Edoardo Putti
e3167c9baf
add fix for lxc_container module and files descriptor leaking
8 years ago
Edoardo Putti
9d2a1b82c4
change from task to handler in restart container
8 years ago
Edoardo Putti
7c7cac4dc4
remove container command from lxc_container task
8 years ago
Edoardo Putti
7d382bf67c
add optional size to container role with default
8 years ago
Edoardo Putti
3161ad2d72
enhance debug task formatting
8 years ago
Edoardo Putti
186649cd8d
use vm_ssh_certificate_exist instead of old variable
8 years ago
Edoardo Putti
f0ef142f87
fix cert_key in set_fact task
8 years ago
Edoardo Putti
99118f6c83
update failed_when policy to use new variabl
8 years ago
Edoardo Putti
b2313d2b37
fix reading output of sign_request when setting fact
8 years ago
Edoardo Putti
b94e0c9a9a
evaluate when sign_request has failed
8 years ago
Edoardo Putti
3f7dcce00a
remov checking for certificate from shell task
8 years ago
Edoardo Putti
13acb1862b
remove updating user ca key from shell command
8 years ago
Edoardo Putti
d3a1348f05
enhance yaml formatting
8 years ago
Edoardo Putti
2a62a025eb
add task to update CA in container
8 years ago
Edoardo Putti
e068a6b869
show public key when retrieved
8 years ago
Edoardo Putti
f7a533b89b
remove task to read public key from shell
8 years ago
Edoardo Putti
684c5a6ce7
use variable from container_read_file
8 years ago
Edoardo Putti
e48e374934
rename variable to distinguish vm from host
8 years ago
Edoardo Putti
15f45accd9
add retrieval of resolv.conf file from container
8 years ago
Edoardo Putti
2797c30998
use module container_file_write in lxc_guest
8 years ago
Edoardo Putti
87a0de0f76
use container_file_read in playbook
8 years ago
Edoardo Putti
3fd7bff4e1
move to general check in container
8 years ago
Edoardo Putti
3a42c4a9cf
draft for checking host certificate task
8 years ago
Edoardo Putti
0d0f0e7330
enhance formatting in lxc_guest playbook
8 years ago
Edoardo Putti
111388d9f3
enhance formatting in lxc_guest playbook
8 years ago
Edoardo Putti
30d3685352
use container_exists module in lxc_guest playbook
8 years ago
Edoardo Putti
1a67a96c0c
enhance formatting in lxc_guest
8 years ago
Edoardo Putti
e9cd74958e
rename task to specify dir instead of name
8 years ago
Andrea Cimbalo
eaada5baf1
move user ca to a separate file
8 years ago
Andrea Cimbalo
c26fbd96fb
remove ca-manager dependencies
8 years ago