Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -bash-4.1# salt -l debug -t 360 vuwunicosasrepd.vuw.ac.nz state.sls rsyslog
- [DEBUG ] Reading configuration from /etc/salt/master
- [DEBUG ] Missing configuration file: /root/.saltrc
- [DEBUG ] Configuration file path: /etc/salt/master
- [DEBUG ] Reading configuration from /etc/salt/master
- [DEBUG ] Missing configuration file: /root/.saltrc
- [DEBUG ] LocalClientEvent PUB socket URI: ipc:///var/run/salt/master/master_event_pub.ipc
- [DEBUG ] LocalClientEvent PULL socket URI: ipc:///var/run/salt/master/master_event_pull.ipc
- [DEBUG ] Loaded no_out as virtual quiet
- [DEBUG ] Loaded json_out as virtual json
- [DEBUG ] Loaded yaml_out as virtual yaml
- [DEBUG ] Loaded pprint_out as virtual pprint
- vuwunicosasrepd.vuw.ac.nz:
- Data failed to compile:
- ----------
- Rendering SLS "base:rsyslog" failed: Unknown yaml render error; line 11
- ---
- [...]
- rhel5
- /etc/syslog.conf: <======================
- file.managed:
- - source: salt://5-syslog.conf
- - source_hash: md5=20249a236e4b3177e87ce3440d74a71d
- - user: root
- - group: root
- [...]
- ---
- -bash-4.1# more rsyslog.sls
- #rhel6
- {% if grains['oscodename'] == 'Santiago' %}
- /etc/rsyslog.conf:
- file.managed:
- - source: salt://6-rsyslog.conf
- - source_hash: md5=69d454b5d8594b2b606886203e4c3db2
- - user: root
- - group: root
- - mode: 644
- - backup: minion
- {% endif %}
- #rhel7
- {% if grains['oscodename'] == 'Maipo' %}
- /etc/rsyslog.conf:
- file.managed:
- - source: salt://7-rsyslog.conf
- - source_hash: md5=257fb2fa730100927df5ee4119996eca
- - user: root
- - group: root
- - mode: 644
- - backup: minion
- {% endif %}
- rhel5
- {% if grains['oscodename'] == 'Tikanga' %}
- /etc/syslog.conf:
- file.managed:
- - source: salt://5-syslog.conf
- - source_hash: md5=20249a236e4b3177e87ce3440d74a71d
- - user: root
- - group: root
- - mode: 644
- - backup: minion
- {% endif %}
- #rhel5
- {% if grains['oscodename'] == 'Tikanga' %}
- syslog-restart:
- cmd.run:
- - name: 'service syslog restart'
- {% endif %}
- #rhel6
- {% if grains['oscodename'] == 'Santiago' %}
- rsyslog-restart:
- cmd.run:
- - name: 'service rsyslog restart'
- {% endif %}
- #rhel7
- {% if grains['oscodename'] == 'Maipo' %}
- rsyslog-restart:
- cmd.run:
- - name: 'service rsyslog restart'
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement