Skip to content

Instantly share code, notes, and snippets.

View packeteer's full-sized avatar

packeteer packeteer

  • Down Under
View GitHub Profile
role defaults
inventory vars
inventory group_vars
inventory host_vars
playbook group_vars
playbook host_vars
host facts
registered vars
set_facts
play vars
@packeteer
packeteer / main.yml
Created June 23, 2016 02:36
meta/main.yml
---
dependencies:
- stat: path=/etc/systemd/system/docker.service.d/http-proxy.conf
register: proxypath
- { role: proxy, when: proxypath.stat.exists == False }
@packeteer
packeteer / td-agent.conf
Created September 1, 2015 01:55
td-agent.conf partial - in_tail example
<source>
type tail
format apache2
path /var/log/httpd/access_log
pos_file /var/log/td-agent/access.log.pos
tag access
</source>
<source>
type tail
@packeteer
packeteer / gist:7098830
Created October 22, 2013 11:13
debug2 after creating 'missing' dirs
# salt-minion -l debug
[DEBUG ] Reading configuration from /etc/salt/minion
[INFO ] Using cached minion ID: server1
[DEBUG ] loading log_handlers in ['/var/cache/salt/minion/extmods/log_handlers', '/usr/lib/python2.6/site-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
[INFO ] Setting up the Salt Minion "server1"
[DEBUG ] Created pidfile: /var/run/salt-minion.pid
[DEBUG ] Chowned pidfile: /var/run/salt-minion.pid to user: root
@packeteer
packeteer / gist:7098617
Created October 22, 2013 10:57
debug output
[root@server1 ~]# salt-minion -l debug
[DEBUG ] Reading configuration from /etc/salt/minion
[INFO ] Using cached minion ID: server1
[DEBUG ] loading log_handlers in ['/var/cache/salt/minion/extmods/log_handlers', '/usr/lib/python2.6/site-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
[INFO ] Setting up the Salt Minion "server1"
[DEBUG ] Created pidfile: /var/run/salt-minion.pid
[DEBUG ] Chowned pidfile: /var/run/salt-minion.pid to user: root
ntp:
pkg:
- installed
service:
- name: ntpd
- running
- enable: True
- require:
- pkg: ntp
- watch: