salt.states.lxc.
absent
(name)¶Destroy a container
destroyer:
lxc.absent:
- name: my_instance_name2
salt.states.lxc.
cloned
(name, orig, snapshot=True, size=None, vgname=None, profile=None)¶Clone a container
myclone:
lxc.cloned:
- name: my_instance_name2
- orig: ubuntu
- vgname: lxc
- snapshot: true
salt.states.lxc.
created
(name, template='ubuntu', profile=None, fstype=None, size=None, backing=None, vgname=None, lvname=None)¶Create a container using a template
Which backing
mycreation:
lxc.created:
- name: my_instance_name2
- backing: lvm
- size: 1G
- template: ubuntu
salt.states.lxc.
edited_conf
(name, lxc_conf=None, lxc_conf_unset=None)¶Edit LXC configuration options
setconf:
lxc.edited_conf:
- name: ubuntu
- lxc_conf:
- network.ipv4.ip: 10.0.3.6
- lxc_conf_unset:
- lxc.utsname
salt.states.lxc.
set_pass
(name, password=None, user=None, users=None)¶Set the password of system users inside containers
setpass:
lxc.stopped:
- name: my_instance_name2
- password: s3cret
- user: foo
setpass2:
lxc.stopped:
- name: my_instance_name2
- password: s3cret
- users:
- foo
- bar
salt.states.lxc.
started
(name, restart=False)¶Start a container
destroyer:
lxc.started:
- name: my_instance_name2
salt.states.lxc.
stopped
(name)¶Stop a container
sleepingcontainer:
lxc.stopped:
- name: my_instance_name2