Skip to content

Instantly share code, notes, and snippets.

View thatch45's full-sized avatar

Thomas S Hatch thatch45

View GitHub Profile
@thatch45
thatch45 / gist:2563169
Created April 30, 2012 22:20
Install from source
'make && make install':
cmd.run:
- unless: 'cat /usr/bin/redis'
- require:
- cmd: 'git clone <redis source>'
'git clone <redis source>':
cmd.run:
- unless: 'test -e /usr/src/redis'
- cwd: /usr/src
@thatch45
thatch45 / saltjobcache
Created June 6, 2012 16:38
Salt jobs dirs - 0.9.9
This shows how the job cache directories are laid out, the limit comes because each jid is hashed but each jid directory has subdirs for all minions. These minions are from a minionswarm
[root@ragnarok srv]# ls -l /var/cache/salt/
total 16
drwx------ 2 root root 4096 Apr 19 02:10 extmods
drwx------ 3 root root 4096 Jun 6 08:33 files
drwx------ 121 root root 4096 Jun 6 09:27 jobs
drwxr-xr-x 2 root root 4096 Jun 6 09:27 proc
@thatch45
thatch45 / gist:2938937
Created June 15, 2012 22:07
just a file
/etc/conf.d/iptables.rules:
file.managed:
- source: salt://iptables/iptables.rules
- user: root
- group: root
- mode: 600
Traceback (most recent call last):
File "setup.py", line 880, in <module>
setup(distclass=SaltDistribution)
File "/usr/lib/python3.4/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.4/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "setup.py", line 475, in run