mc_cloud_lxc / lxc registry for compute nodes¶
-
mc_states.modules.mc_cloud_lxc.
is_lxc
()¶ Return true if we find a system or grain flag that explicitly shows us we are in a LXC context
-
mc_states.modules.mc_cloud_lxc.
sync_image_reference_containers
(builder_ref, img, ret=None, template='ubuntu', snapshot=True, force=False)¶ Sapshot container (copy to img & impersonate)
-
mc_states.modules.mc_cloud_lxc.
vm_extpillar
(vm, data, *args, **kw)¶ Get per LXC container specific settings
-
mc_states.modules.mc_cloud_lxc.
vt_default_settings
(cloudSettings, imgSettings)¶ Default lxc container settings
- clone_from
- default image
- image
- LXC template to use ‘ubuntu’
- profile
- default profile to use. see saltstack definition of container profiles
- network_profile
- default net profile to use. see saltstack definition of container networking profiles
- bridge
- we install via states a bridge in 10.5/16 lxcbr1) ‘lxcbr1’
- backing
- (lvm, overlayfs, dir, brtfs) ‘lvm’
- vgname
- ‘data’
- fstab
- list of fstab entries
- lvname
- ‘data’
- lxc_conf
- []
- lxc_conf_unset
- []
- vms
List of containers ids classified by host ids:
(Mapping of {hostid: [vmid]})
The settings are not stored here for obvious performance reasons
-
mc_states.modules.mc_cloud_lxc.
vt_extpillar
(target, data, *args, **kw)¶ LXC extpillar