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
role defaults | |
inventory vars | |
inventory group_vars | |
inventory host_vars | |
playbook group_vars | |
playbook host_vars | |
host facts | |
registered vars | |
set_facts | |
play vars |
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
--- | |
dependencies: | |
- stat: path=/etc/systemd/system/docker.service.d/http-proxy.conf | |
register: proxypath | |
- { role: proxy, when: proxypath.stat.exists == False } |
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
<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 |
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
# 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 |
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
[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 |
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
ntp: | |
pkg: | |
- installed | |
service: | |
- name: ntpd | |
- running | |
- enable: True | |
- require: | |
- pkg: ntp | |
- watch: |