Last active
August 29, 2015 14:18
-
-
Save ashmckenzie/eccd0317632cf8393830 to your computer and use it in GitHub Desktop.
SaltStack state file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DEBUG ] Reading configuration from /etc/salt/master | |
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: master1 | |
[DEBUG ] Missing configuration file: ~/.saltrc | |
[DEBUG ] Configuration file path: /etc/salt/master | |
[DEBUG ] Reading configuration from /etc/salt/master | |
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: master1 | |
[DEBUG ] Missing configuration file: ~/.saltrc | |
[DEBUG ] MasterEvent PUB socket URI: ipc:///var/run/salt/master/master_event_pub.ipc | |
[DEBUG ] MasterEvent PULL socket URI: ipc:///var/run/salt/master/master_event_pull.ipc | |
[DEBUG ] LazyLoaded local_cache.get_load | |
[DEBUG ] get_iter_returns for jid 20150410052628800338 sent to set(['master1']) will timeout at 05:26:33.811110 | |
[DEBUG ] jid 20150410052628800338 return from master1 | |
[DEBUG ] jid 20150410052628800338 found all minions set(['master1']) | |
master1: | |
---------- | |
module_|-test_syslog_|-test.ping_|-run: | |
---------- | |
__run_num__: | |
6 | |
changes: | |
---------- | |
ret: | |
True | |
comment: | |
Module function test.ping executed | |
duration: | |
1.143 | |
name: | |
test.ping | |
result: | |
True | |
start_time: | |
05:26:31.447741 | |
pkg_|-packages_to_install_|-packages_to_install_|-installed: | |
---------- | |
__run_num__: | |
1 | |
changes: | |
---------- | |
comment: | |
All specified packages are already installed. | |
duration: | |
1427.979 | |
name: | |
packages_to_install | |
result: | |
True | |
start_time: | |
05:26:29.956558 | |
pkg_|-packages_to_remove_|-packages_to_remove_|-removed: | |
---------- | |
__run_num__: | |
2 | |
changes: | |
---------- | |
comment: | |
None of the targeted packages are installed | |
duration: | |
0.631 | |
name: | |
packages_to_remove | |
result: | |
True | |
start_time: | |
05:26:31.385304 | |
pkgrepo_|-ubuntu_multiverse_|-deb http://archive.ubuntu.com/ubuntu trusty multiverse_|-managed: | |
---------- | |
__run_num__: | |
0 | |
changes: | |
---------- | |
comment: | |
Package repo 'deb http://archive.ubuntu.com/ubuntu trusty multiverse' already configured | |
duration: | |
64.966 | |
name: | |
deb http://archive.ubuntu.com/ubuntu trusty multiverse | |
result: | |
True | |
start_time: | |
05:26:29.891470 | |
schedule_|-check_reboot_required_|-check_reboot_required_|-present: | |
---------- | |
__run_num__: | |
4 | |
changes: | |
---------- | |
diff: | |
--- | |
+++ | |
@@ -1,5 +1,3 @@ | |
-_when:1428658200 | |
-_when_run:True | |
args:['[ -f /var/run/reboot-required ] && uname -a | mailx vagrant@localhost -s "Reboot required for `uname -n`"'] | |
function:cmd.run | |
jid_include:True | |
comment: | |
Modifying job check_reboot_required in schedule | |
duration: | |
33.387 | |
name: | |
check_reboot_required | |
result: | |
True | |
start_time: | |
05:26:31.386761 | |
schedule_|-checkin_|-checkin_|-present: | |
---------- | |
__run_num__: | |
3 | |
changes: | |
---------- | |
comment: | |
Job checkin in correct state | |
duration: | |
0.696 | |
name: | |
checkin | |
result: | |
True | |
start_time: | |
05:26:31.386004 | |
schedule_|-package_upgrades_|-package_upgrades_|-present: | |
---------- | |
__run_num__: | |
5 | |
changes: | |
---------- | |
diff: | |
--- | |
+++ | |
@@ -1,5 +1,3 @@ | |
-_when:1428654600 | |
-_when_run:True | |
args:['salt --out=json "*" pkg.list_upgrades | mailx vagrant@localhost -s "Package report"'] | |
function:cmd.run | |
jid_include:True | |
comment: | |
Modifying job package_upgrades in schedule | |
duration: | |
27.355 | |
name: | |
package_upgrades | |
result: | |
True | |
start_time: | |
05:26:31.420283 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DEBUG ] Reading configuration from /etc/salt/minion | |
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: master1 | |
[DEBUG ] Configuration file path: /etc/salt/minion | |
[DEBUG ] Reading configuration from /etc/salt/minion | |
[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 ] Mako not available | |
[DEBUG ] Decrypting the current master AES key | |
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem | |
[DEBUG ] Reading configuration from /etc/salt/minion | |
[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 | |
[INFO ] Loading fresh modules for state activity | |
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://top.sls' | |
[DEBUG ] Jinja search path: ['/var/cache/salt/minion/files/base'] | |
[DEBUG ] Rendered data from file: /var/cache/salt/minion/files/base/top.sls: | |
base: | |
'*': | |
- repos | |
- packages | |
- schedule | |
[DEBUG ] Results of YAML rendering: | |
OrderedDict([('base', OrderedDict([('*', ['repos', 'packages', 'schedule'])]))]) | |
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem | |
[DEBUG ] Syncing all | |
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/modules' | |
[INFO ] Syncing modules for environment 'base' | |
[INFO ] Loading cache from salt://_modules, for base) | |
[DEBUG ] Decrypting the current master AES key | |
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem | |
[INFO ] Caching directory '_modules/' for environment 'base' | |
[DEBUG ] Local cache dir: '/var/cache/salt/minion/files/base/_modules' | |
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/states' | |
[INFO ] Syncing states for environment 'base' | |
[INFO ] Loading cache from salt://_states, for base) | |
[INFO ] Caching directory '_states/' for environment 'base' | |
[DEBUG ] Local cache dir: '/var/cache/salt/minion/files/base/_states' | |
[INFO ] Syncing grains for environment 'base' | |
[INFO ] Loading cache from salt://_grains, for base) | |
[INFO ] Caching directory '_grains/' for environment 'base' | |
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://_grains/reboot_required.py' | |
[DEBUG ] Local cache dir: '/var/cache/salt/minion/files/base/_grains' | |
[INFO ] Copying '/var/cache/salt/minion/files/base/_grains/reboot_required.py' to '/var/cache/salt/minion/extmods/grains/reboot_required.py' | |
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/renderers' | |
[INFO ] Syncing renderers for environment 'base' | |
[INFO ] Loading cache from salt://_renderers, for base) | |
[INFO ] Caching directory '_renderers/' for environment 'base' | |
[DEBUG ] Local cache dir: '/var/cache/salt/minion/files/base/_renderers' | |
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/returners' | |
[INFO ] Syncing returners for environment 'base' | |
[INFO ] Loading cache from salt://_returners, for base) | |
[INFO ] Caching directory '_returners/' for environment 'base' | |
[DEBUG ] Local cache dir: '/var/cache/salt/minion/files/base/_returners' | |
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/outputters' | |
[INFO ] Syncing outputters for environment 'base' | |
[INFO ] Loading cache from salt://_outputters, for base) | |
[INFO ] Caching directory '_outputters/' for environment 'base' | |
[DEBUG ] Local cache dir: '/var/cache/salt/minion/files/base/_outputters' | |
[INFO ] Creating module dir '/var/cache/salt/minion/extmods/utils' | |
[INFO ] Syncing utils for environment 'base' | |
[INFO ] Loading cache from salt://_utils, for base) | |
[INFO ] Caching directory '_utils/' for environment 'base' | |
[DEBUG ] Local cache dir: '/var/cache/salt/minion/files/base/_utils' | |
[DEBUG ] Refreshing modules... | |
[INFO ] Loading fresh modules for state activity | |
[DEBUG ] SaltEvent PUB socket URI: ipc:///var/run/salt/minion/minion_event_d5802d05bb_pub.ipc | |
[DEBUG ] SaltEvent PULL socket URI: ipc:///var/run/salt/minion/minion_event_d5802d05bb_pull.ipc | |
[DEBUG ] Sending event - data = {'_stamp': '2015-04-10T05:27:54.265566'} | |
[DEBUG ] Fetching file from saltenv 'base', ** attempting ** 'salt://repos.sls' | |
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://repos/init.sls' | |
[DEBUG ] Jinja search path: ['/var/cache/salt/minion/files/base'] | |
[DEBUG ] Rendered data from file: /var/cache/salt/minion/files/base/repos/init.sls: | |
include: | |
- repos.ubuntu | |
[DEBUG ] Results of YAML rendering: | |
OrderedDict([('include', ['repos.ubuntu'])]) | |
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://repos/ubuntu.sls' | |
[DEBUG ] Jinja search path: ['/var/cache/salt/minion/files/base'] | |
[DEBUG ] Rendered data from file: /var/cache/salt/minion/files/base/repos/ubuntu.sls: | |
ubuntu_multiverse: | |
pkgrepo.managed: | |
- name: deb http://archive.ubuntu.com/ubuntu trusty multiverse | |
- dist: trusty | |
- file: /etc/apt/sources.list.d/ubuntu.list | |
- enabled: true | |
- disabled: false | |
- refresh_db: true | |
[DEBUG ] Results of YAML rendering: | |
OrderedDict([('ubuntu_multiverse', OrderedDict([('pkgrepo.managed', [OrderedDict([('name', 'deb http://archive.ubuntu.com/ubuntu trusty multiverse')]), OrderedDict([('dist', 'trusty')]), OrderedDict([('file', '/etc/apt/sources.list.d/ubuntu.list')]), OrderedDict([('enabled', True)]), OrderedDict([('disabled', False)]), OrderedDict([('refresh_db', True)])])]))]) | |
[DEBUG ] Fetching file from saltenv 'base', ** attempting ** 'salt://packages.sls' | |
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://packages/init.sls' | |
[DEBUG ] Fetching file from saltenv 'base', ** attempting ** 'salt://schedule.sls' | |
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://schedule/init.sls' | |
[DEBUG ] Jinja search path: ['/var/cache/salt/minion/files/base'] | |
[DEBUG ] Rendered data from file: /var/cache/salt/minion/files/base/schedule/init.sls: | |
include: | |
- schedule.minion | |
- schedule.master | |
- schedule.test_syslog | |
[DEBUG ] Results of YAML rendering: | |
OrderedDict([('include', ['schedule.minion', 'schedule.master', 'schedule.test_syslog'])]) | |
[DEBUG ] Fetching file from saltenv 'base', ** attempting ** 'salt://schedule/minion.sls' | |
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://schedule/minion/init.sls' | |
[DEBUG ] Jinja search path: ['/var/cache/salt/minion/files/base'] | |
[DEBUG ] Rendered data from file: /var/cache/salt/minion/files/base/schedule/minion/init.sls: | |
include: | |
- schedule.minion.common | |
- schedule.minion.debian | |
[DEBUG ] Results of YAML rendering: | |
OrderedDict([('include', ['schedule.minion.common', 'schedule.minion.debian'])]) | |
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://schedule/minion/common.sls' | |
[DEBUG ] Jinja search path: ['/var/cache/salt/minion/files/base'] | |
[DEBUG ] Rendered data from file: /var/cache/salt/minion/files/base/schedule/minion/common.sls: | |
checkin: | |
schedule.present: | |
- function: state.highstate | |
- minutes: 30 | |
- seconds: 0 | |
- splay: 30 | |
[DEBUG ] Results of YAML rendering: | |
OrderedDict([('checkin', OrderedDict([('schedule.present', [OrderedDict([('function', 'state.highstate')]), OrderedDict([('minutes', 30)]), OrderedDict([('seconds', 0)]), OrderedDict([('splay', 30)])])]))]) | |
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://schedule/minion/debian.sls' | |
[DEBUG ] Jinja search path: ['/var/cache/salt/minion/files/base'] | |
[DEBUG ] Rendered data from file: /var/cache/salt/minion/files/base/schedule/minion/debian.sls: | |
check_reboot_required: | |
schedule.present: | |
- function: cmd.run | |
- when: 9:30am | |
- job_args: | |
- '[ -f /var/run/reboot-required ] && uname -a | mailx vagrant@localhost -s "Reboot required for `uname -n`"' | |
[DEBUG ] Results of YAML rendering: | |
OrderedDict([('check_reboot_required', OrderedDict([('schedule.present', [OrderedDict([('function', 'cmd.run')]), OrderedDict([('when', '9:30am')]), OrderedDict([('job_args', ['[ -f /var/run/reboot-required ] && uname -a | mailx vagrant@localhost -s "Reboot required for `uname -n`"'])])])]))]) | |
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://schedule/master.sls' | |
[DEBUG ] Jinja search path: ['/var/cache/salt/minion/files/base'] | |
[DEBUG ] Rendered data from file: /var/cache/salt/minion/files/base/schedule/master.sls: | |
package_upgrades: | |
schedule.present: | |
- function: cmd.run | |
- when: 8:30am | |
- job_args: | |
- 'salt --out=json "*" pkg.list_upgrades | mailx vagrant@localhost -s "Package report"' | |
[DEBUG ] Results of YAML rendering: | |
OrderedDict([('package_upgrades', OrderedDict([('schedule.present', [OrderedDict([('function', 'cmd.run')]), OrderedDict([('when', '8:30am')]), OrderedDict([('job_args', ['salt --out=json "*" pkg.list_upgrades | mailx vagrant@localhost -s "Package report"'])])])]))]) | |
[INFO ] Fetching file from saltenv 'base', ** skipped ** latest already in cache 'salt://schedule/test_syslog.sls' | |
[DEBUG ] Jinja search path: ['/var/cache/salt/minion/files/base'] | |
[DEBUG ] Rendered data from file: /var/cache/salt/minion/files/base/schedule/test_syslog.sls: | |
test_syslog: | |
module.run: | |
- name: test.ping | |
- returner: syslog | |
[DEBUG ] Results of YAML rendering: | |
OrderedDict([('test_syslog', OrderedDict([('module.run', [OrderedDict([('name', 'test.ping')]), OrderedDict([('returner', 'syslog')])])]))]) | |
[INFO ] Running state [deb http://archive.ubuntu.com/ubuntu trusty multiverse] at time 05:27:54.617933 | |
[INFO ] Executing state pkgrepo.managed for deb http://archive.ubuntu.com/ubuntu trusty multiverse | |
[INFO ] Package repo 'deb http://archive.ubuntu.com/ubuntu trusty multiverse' already configured | |
[INFO ] Completed state [deb http://archive.ubuntu.com/ubuntu trusty multiverse] at time 05:27:54.654861 | |
[INFO ] Running state [packages_to_install] at time 05:27:54.655569 | |
[INFO ] Executing state pkg.installed for packages_to_install | |
[INFO ] Executing command ['dpkg-query', '--showformat', '${Status} ${Package} ${Version} ${Architecture}\n', '-W'] in directory '/root' | |
[INFO ] All specified packages are already installed. | |
[INFO ] Completed state [packages_to_install] at time 05:27:55.126947 | |
[INFO ] Running state [packages_to_remove] at time 05:27:55.127747 | |
[INFO ] Executing state pkg.removed for packages_to_remove | |
[INFO ] None of the targeted packages are installed | |
[INFO ] Completed state [packages_to_remove] at time 05:27:55.130046 | |
[INFO ] Running state [checkin] at time 05:27:55.130824 | |
[INFO ] Executing state schedule.present for checkin | |
[DEBUG ] SaltEvent PUB socket URI: ipc:///var/run/salt/minion/minion_event_d5802d05bb_pub.ipc | |
[DEBUG ] SaltEvent PULL socket URI: ipc:///var/run/salt/minion/minion_event_d5802d05bb_pull.ipc | |
[DEBUG ] Sending event - data = {'_stamp': '2015-04-10T05:27:55.134476', 'name': 'checkin', 'func': 'add', 'schedule': {'checkin': OrderedDict([('function', 'state.highstate'), ('seconds', 0), ('minutes', 30), ('maxrunning', 1), ('name', 'checkin'), ('jid_include', True), ('splay', 30)])}} | |
[INFO ] Adding new job checkin to schedule | |
[INFO ] Completed state [checkin] at time 05:27:55.162895 | |
[INFO ] Running state [check_reboot_required] at time 05:27:55.163703 | |
[INFO ] Executing state schedule.present for check_reboot_required | |
[DEBUG ] SaltEvent PUB socket URI: ipc:///var/run/salt/minion/minion_event_d5802d05bb_pub.ipc | |
[DEBUG ] SaltEvent PULL socket URI: ipc:///var/run/salt/minion/minion_event_d5802d05bb_pull.ipc | |
[DEBUG ] Sending event - data = {'_stamp': '2015-04-10T05:27:55.166614', 'name': 'check_reboot_required', 'func': 'add', 'schedule': {'check_reboot_required': OrderedDict([('function', 'cmd.run'), ('args', ['[ -f /var/run/reboot-required ] && uname -a | mailx vagrant@localhost -s "Reboot required for `uname -n`"']), ('maxrunning', 1), ('name', 'check_reboot_required'), ('jid_include', True), ('when', '9:30am')])}} | |
[INFO ] Adding new job check_reboot_required to schedule | |
[INFO ] Completed state [check_reboot_required] at time 05:27:55.194068 | |
[INFO ] Running state [package_upgrades] at time 05:27:55.194775 | |
[INFO ] Executing state schedule.present for package_upgrades | |
[DEBUG ] SaltEvent PUB socket URI: ipc:///var/run/salt/minion/minion_event_d5802d05bb_pub.ipc | |
[DEBUG ] SaltEvent PULL socket URI: ipc:///var/run/salt/minion/minion_event_d5802d05bb_pull.ipc | |
[DEBUG ] Sending event - data = {'_stamp': '2015-04-10T05:27:55.197767', 'name': 'package_upgrades', 'func': 'add', 'schedule': {'package_upgrades': OrderedDict([('function', 'cmd.run'), ('args', ['salt --out=json "*" pkg.list_upgrades | mailx vagrant@localhost -s "Package report"']), ('maxrunning', 1), ('name', 'package_upgrades'), ('jid_include', True), ('when', '8:30am')])}} | |
[INFO ] Adding new job package_upgrades to schedule | |
[INFO ] Completed state [package_upgrades] at time 05:27:55.226525 | |
[INFO ] Running state [test.ping] at time 05:27:55.227652 | |
[INFO ] Executing state module.run for test.ping | |
[INFO ] {'ret': True} | |
[INFO ] Completed state [test.ping] at time 05:27:55.231175 | |
[DEBUG ] File /var/cache/salt/minion/accumulator/139985397920528 does not exist, no need to cleanup. | |
[DEBUG ] Decrypting the current master AES key | |
[DEBUG ] Loaded minion key: /etc/salt/pki/minion/minion.pem | |
local: | |
---------- | |
module_|-test_syslog_|-test.ping_|-run: | |
---------- | |
__run_num__: | |
6 | |
changes: | |
---------- | |
ret: | |
True | |
comment: | |
Module function test.ping executed | |
duration: | |
3.523 | |
name: | |
test.ping | |
result: | |
True | |
start_time: | |
05:27:55.227652 | |
pkg_|-packages_to_install_|-packages_to_install_|-installed: | |
---------- | |
__run_num__: | |
1 | |
changes: | |
---------- | |
comment: | |
All specified packages are already installed. | |
duration: | |
471.378 | |
name: | |
packages_to_install | |
result: | |
True | |
start_time: | |
05:27:54.655569 | |
pkg_|-packages_to_remove_|-packages_to_remove_|-removed: | |
---------- | |
__run_num__: | |
2 | |
changes: | |
---------- | |
comment: | |
None of the targeted packages are installed | |
duration: | |
2.299 | |
name: | |
packages_to_remove | |
result: | |
True | |
start_time: | |
05:27:55.127747 | |
pkgrepo_|-ubuntu_multiverse_|-deb http://archive.ubuntu.com/ubuntu trusty multiverse_|-managed: | |
---------- | |
__run_num__: | |
0 | |
changes: | |
---------- | |
comment: | |
Package repo 'deb http://archive.ubuntu.com/ubuntu trusty multiverse' already configured | |
duration: | |
36.928 | |
name: | |
deb http://archive.ubuntu.com/ubuntu trusty multiverse | |
result: | |
True | |
start_time: | |
05:27:54.617933 | |
schedule_|-check_reboot_required_|-check_reboot_required_|-present: | |
---------- | |
__run_num__: | |
4 | |
changes: | |
---------- | |
comment: | |
Adding new job check_reboot_required to schedule | |
duration: | |
30.365 | |
name: | |
check_reboot_required | |
result: | |
True | |
start_time: | |
05:27:55.163703 | |
schedule_|-checkin_|-checkin_|-present: | |
---------- | |
__run_num__: | |
3 | |
changes: | |
---------- | |
comment: | |
Adding new job checkin to schedule | |
duration: | |
32.071 | |
name: | |
checkin | |
result: | |
True | |
start_time: | |
05:27:55.130824 | |
schedule_|-package_upgrades_|-package_upgrades_|-present: | |
---------- | |
__run_num__: | |
5 | |
changes: | |
---------- | |
comment: | |
Adding new job package_upgrades to schedule | |
duration: | |
31.75 | |
name: | |
package_upgrades | |
result: | |
True | |
start_time: | |
05:27:55.194775 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test_syslog: | |
module.run: | |
- name: test.ping | |
- returner: syslog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to http://docs.saltstack.com/en/latest/ref/states/all/salt.states.module.html#salt.states.module.run, this should work?