Module Expr Str Import alias ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad Str attr NameLoad FunctionDef arguments args defaults body Return Call SubscriptLoad NameLoad Index Str NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Return Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Str If Call SubscriptLoad NameLoad Index Str body Assign NameStore Str Assign NameStore Call SubscriptLoad NameLoad Index Str Call SubscriptLoad NameLoad Index Str NameLoad NameLoad Dict Str Str Str NameLoad Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Dict Str Str NameLoad NameLoad Dict Str Dict Str Str Str Str Str Str NameLoad Str NameLoad ListLoad ListLoad ListLoad ListLoad Dict Str Str Str Str Str Str Str Str Str Dict Str Num Dict Dict Dict Str Str Dict Dict Dict Dict Dict Str Str Str Str NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str Str Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str SubscriptLoad NameLoad Index Str If CompareIsNot Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str ListLoad Assign NameStore NameLoad For NameStore SubscriptLoad NameLoad Index Str body If CompareIn Str NameLoad body Assign NameStore NameLoad If NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str If BoolOpOr CompareIn Str NameLoad CompareIn Str NameLoad body For NameStore ListLoad Str Str Str body If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list
N/A N/A 

.. _module_mc_cloud_lxc:

mc_cloud_lxc / lxc registry for compute nodes
===============================================



 N/A logging mc_states saltapi mc_states.grains.makina_grains _is_lxc N/A _errmsg N/A saltapi _errmsg N/A __name mc_cloud_lxc N/A log N/A N/A logging getLogger __name__ N/A VT lxc N/A PREFIX N/A N/A makina-states.cloud.{0} format VT vt N/A N/A N/A N/A N/A N/A N/A __salt__ N/A mc_cloud_vm.vt VT N/A is_lxc N/A N/A N/A N/A N/A 
    Return true if we find a system or grain flag
    that explicitly shows us we are in a LXC context
     N/A N/A _is_lxc N/A vt_default_settings N/A N/A cloudSettings imgSettings N/A N/A N/A 
    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
     N/A _s __salt__ N/A clone_from N/A N/A imgSettings N/A lxc N/A default N/A backing dir N/A N/A N/A _s N/A mc_nodetypes.is_devhost N/A N/A backing overlayfs N/A vmSettings N/A N/A _s N/A mc_utils.dictupdate N/A N/A _s N/A mc_cloud_vm.vt_default_settings cloudSettings imgSettings N/A vt defaults host_confs VT N/A profile network_profile gateway netmask network netmask_full fstab vgname lvname volumes mounts lxc_conf lxc_conf_unset N/A clone_from backing clone_from backing N/A eth0 N/A link lxcbr1 10.5.0.1 16 10.5.0.0 255.255.0.0 None lxc None N/A N/A N/A N/A N/A /etc/apparmor.d/lxc/lxc-default /etc/default/lxc /etc/default/magicbridge_lxcbr1 /etc/default/lxc-net-makina /etc/dnsmasq.lxcbr1/conf.d/makinastates_lxc /etc/dnsmasq.d/lxcbr1 /etc/dnsmasq.d/lxcbr0 /etc/reset-net-bridges /usr/bin/lxc-net-makina.sh N/A mode 644 N/A N/A N/A source salt://makina-states/files/etc/default/magicbridge_lxcbr1 N/A N/A N/A N/A N/A mode template source 755 False salt://makina-states/files/usr/bin/magicbridge.sh N/A vmSettings N/A vt_extpillar N/A N/A target data N/A args kw N/A N/A 
    LXC extpillar
     N/A data N/A vm_extpillar N/A N/A vm data N/A args kw N/A N/A 
    Get per LXC container specific settings
     N/A backing N/A N/A N/A data N/A profile setdefault backing dir N/A N/A N/A N/A data N/A network_profile N/A eth0 N/A hwaddr N/A data N/A mac N/A N/A N/A N/A N/A data N/A profile get clone_from None N/A N/A N/A N/A data pop image None N/A N/A N/A N/A data get fstab N/A N/A N/A data N/A fstab N/A N/A shm True N/A i N/A data N/A fstab N/A N/A N/A dev/shm i N/A N/A shm False N/A shm N/A N/A N/A N/A N/A data N/A fstab append none dev/shm tmpfs rw,nosuid,nodev,create=dir N/A N/A N/A overlayfs backing N/A dir backing N/A N/A k N/A lvname vgname size N/A N/A N/A k data N/A N/A N/A N/A data pop k None N/A data N/A