Skip to content

Instantly share code, notes, and snippets.

@valentinbud
Created October 7, 2013 17:08
Show Gist options
  • Save valentinbud/6871397 to your computer and use it in GitHub Desktop.
Save valentinbud/6871397 to your computer and use it in GitHub Desktop.
# cat /srv/salt/pillar/lxc/init.sls
lxc.profile:
profile:
debian:
template: debian-wheezy
backing: lvm
vgname: vg0
size: 1G
# salt '*' pillar.item lxc.profile
nox:
----------
lxc.profile:
----------
profile:
----------
debian:
----------
backing:
lvm
size:
1G
template:
debian-wheezy
vgname:
vg0
# salt-call -l debug lxc.create lxc209 profile=debian
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Including configuration from '/etc/salt/minion.d/lxc.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/lxc.conf
[DEBUG ] Including configuration from '/etc/salt/minion.d/master.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/master.conf
[DEBUG ] Guessing ID. The id can be explicitly in set /etc/salt/minion
[DEBUG ] loading log_handlers in ['/var/cache/salt/minion/extmods/log_handlers', '/usr/lib/python2.7/dist-packages/salt/log/handlers']
[DEBUG ] Skipping /var/cache/salt/minion/extmods/log_handlers, it is not a directory
[DEBUG ] None of the required configuration sections, 'logstash_udp_handler' and 'logstash_zmq_handler', were found the in the configuration. Not loading the Logstash logging handlers module.
[DEBUG ] Configuration file path: /etc/salt/minion
[DEBUG ] Reading configuration from /etc/salt/minion
[DEBUG ] Including configuration from '/etc/salt/minion.d/lxc.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/lxc.conf
[DEBUG ] Including configuration from '/etc/salt/minion.d/master.conf'
[DEBUG ] Reading configuration from /etc/salt/minion.d/master.conf
[DEBUG ] loading grain in ['/var/cache/salt/minion/extmods/grains', '/usr/lib/python2.7/dist-packages/salt/grains']
[DEBUG ] Skipping /var/cache/salt/minion/extmods/grains, it is not a directory
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG ] Decrypting the current master AES key
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem
[DEBUG ] loading module in ['/var/cache/salt/minion/extmods/modules', '/usr/lib/python2.7/dist-packages/salt/modules']
[DEBUG ] Skipping .llxc.py.swp, it does not end with an expected extension
[DEBUG ] Skipping 1, it does not end with an expected extension
[DEBUG ] Loaded localemod as virtual locale
[DEBUG ] Loaded groupadd as virtual group
[DEBUG ] Loaded linux_sysctl as virtual sysctl
[DEBUG ] Loaded parted as virtual partition
[DEBUG ] Loaded mdadm as virtual raid
[DEBUG ] Loaded linux_acl as virtual acl
[DEBUG ] Loaded apt as virtual pkg
[DEBUG ] Loaded sysmod as virtual sys
[DEBUG ] Loaded djangomod as virtual django
[DEBUG ] Loaded debian_service as virtual service
[DEBUG ] Loaded useradd as virtual user
[DEBUG ] Loaded dpkg as virtual lowpkg
[DEBUG ] Loaded cmdmod as virtual cmd
[INFO ] Package debconf-utils is not installed.
[DEBUG ] Loaded virtualenv_mod as virtual virtualenv
[DEBUG ] Loaded linux_lvm as virtual lvm
[DEBUG ] loading returner in ['/var/cache/salt/minion/extmods/returners', '/usr/lib/python2.7/dist-packages/salt/returners']
[DEBUG ] Skipping /var/cache/salt/minion/extmods/returners, it is not a directory
[DEBUG ] Loaded syslog_return as virtual syslog
[DEBUG ] Loaded couchdb_return as virtual couchdb
[DEBUG ] Loaded carbon_return as virtual carbon
[DEBUG ] Loaded sqlite3_return as virtual sqlite3
[DEBUG ] loading states in ['/var/cache/salt/minion/extmods/states', '/usr/lib/python2.7/dist-packages/salt/states']
[DEBUG ] Skipping /var/cache/salt/minion/extmods/states, it is not a directory
[DEBUG ] Loaded saltmod as virtual salt
[DEBUG ] Loaded mdadm as virtual raid
[DEBUG ] Loaded pip_state as virtual pip
[DEBUG ] Loaded virtualenv_mod as virtual virtualenv
[DEBUG ] loading render in ['/var/cache/salt/minion/extmods/renderers', '/usr/lib/python2.7/dist-packages/salt/renderers']
[DEBUG ] Skipping /var/cache/salt/minion/extmods/renderers, it is not a directory
[INFO ] Executing command 'lxc-list' in directory '/root'
[DEBUG ] output: RUNNING
FROZEN
STOPPED
lxc01
lxc01.orig
lxc02
lxc100
lxc101
lxc103
lxc105
lxc12
lxc200
lxc201
lxc202
[INFO ] Executing command 'lxc-create -n lxc209' in directory '/root'
[DEBUG ] stdout: 'lxc209' created
[INFO ] Executing command 'lxc-list' in directory '/root'
[DEBUG ] output: RUNNING
FROZEN
STOPPED
lxc01
lxc01.orig
lxc02
lxc100
lxc101
lxc103
lxc105
lxc12
lxc200
lxc201
lxc202
lxc209
[DEBUG ] loading output in ['/var/cache/salt/minion/extmods/output', '/usr/lib/python2.7/dist-packages/salt/output']
[DEBUG ] Skipping /var/cache/salt/minion/extmods/output, it is not a directory
[DEBUG ] Loaded no_out as virtual quiet
[DEBUG ] Loaded json_out as virtual json
[DEBUG ] Loaded yaml_out as virtual yaml
[DEBUG ] Loaded pprint_out as virtual pprint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment