Skip to content

Instantly share code, notes, and snippets.

View kula's full-sized avatar

Thomas L. Kula kula

View GitHub Profile
### Keybase proof
I hereby claim:
* I am kula on github.
* I am thomaskula (https://keybase.io/thomaskula) on keybase.
* I have a public key ASBzqfml9hqVK4sB2C9S6EcC226UasCcFC1_lQXbHCcSoAo
To claim this, I am signing this object:
@kula
kula / Output
Created July 12, 2015 01:04
Disappearing custom grains under Salt
saltmaster@salt-w1:~/master/config/local_base_files/_grains$ salt 'keymaster.tproa.net' saltutil.sync_grains
keymaster.tproa.net:
- grains.tproa_os_path
saltmaster@salt-w1:~/master/config/local_base_files/_grains$ salt 'keymaster.tproa.net' grains.item tproa_os_path
keymaster.tproa.net:
----------
tproa_os_path:
os.debian.jessie
saltmaster@salt-w1:~/master/config/local_base_files/_grains$ salt 'keymaster.tproa.net' state.highstate > /dev/null
saltmaster@salt-w1:~/master/config/local_base_files/_grains$ echo $?
2013-09-30 19:09:47,903 [salt.minion ][WARNING ] The minion function caused an exception: Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/salt/minion.py", line 633, in _thread_return
ret['return'] = func(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/salt/modules/yumpkg.py", line 839, in get_repo
repos = list_repos(basedir)
File "/usr/lib/python2.6/site-packages/salt/modules/yumpkg.py", line 818, in list_repos
for repofile in os.listdir(basedir):
NameError: global name 'os' is not defined
top.sls:
production:
'*':
- salted
salted.sls: