Advertisement
Guest User

Untitled

a guest
Aug 18th, 2014
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. -bash-4.1# salt -l debug -t 360 vuwunicosasrepd.vuw.ac.nz state.sls rsyslog
  2. [DEBUG ] Reading configuration from /etc/salt/master
  3. [DEBUG ] Missing configuration file: /root/.saltrc
  4. [DEBUG ] Configuration file path: /etc/salt/master
  5. [DEBUG ] Reading configuration from /etc/salt/master
  6. [DEBUG ] Missing configuration file: /root/.saltrc
  7. [DEBUG ] LocalClientEvent PUB socket URI: ipc:///var/run/salt/master/master_event_pub.ipc
  8. [DEBUG ] LocalClientEvent PULL socket URI: ipc:///var/run/salt/master/master_event_pull.ipc
  9. [DEBUG ] Loaded no_out as virtual quiet
  10. [DEBUG ] Loaded json_out as virtual json
  11. [DEBUG ] Loaded yaml_out as virtual yaml
  12. [DEBUG ] Loaded pprint_out as virtual pprint
  13. vuwunicosasrepd.vuw.ac.nz:
  14. Data failed to compile:
  15. ----------
  16. Rendering SLS "base:rsyslog" failed: Unknown yaml render error; line 11
  17.  
  18. ---
  19. [...]
  20.  
  21.  
  22. rhel5
  23.  
  24.  
  25. /etc/syslog.conf: <======================
  26. file.managed:
  27. - source: salt://5-syslog.conf
  28. - source_hash: md5=20249a236e4b3177e87ce3440d74a71d
  29. - user: root
  30. - group: root
  31. [...]
  32. ---
  33. -bash-4.1# more rsyslog.sls
  34.  
  35. #rhel6
  36. {% if grains['oscodename'] == 'Santiago' %}
  37.  
  38. /etc/rsyslog.conf:
  39. file.managed:
  40. - source: salt://6-rsyslog.conf
  41. - source_hash: md5=69d454b5d8594b2b606886203e4c3db2
  42. - user: root
  43. - group: root
  44. - mode: 644
  45. - backup: minion
  46.  
  47.  
  48. {% endif %}
  49.  
  50. #rhel7
  51. {% if grains['oscodename'] == 'Maipo' %}
  52. /etc/rsyslog.conf:
  53. file.managed:
  54. - source: salt://7-rsyslog.conf
  55. - source_hash: md5=257fb2fa730100927df5ee4119996eca
  56. - user: root
  57. - group: root
  58. - mode: 644
  59. - backup: minion
  60.  
  61. {% endif %}
  62.  
  63. rhel5
  64. {% if grains['oscodename'] == 'Tikanga' %}
  65.  
  66. /etc/syslog.conf:
  67. file.managed:
  68. - source: salt://5-syslog.conf
  69. - source_hash: md5=20249a236e4b3177e87ce3440d74a71d
  70. - user: root
  71. - group: root
  72. - mode: 644
  73. - backup: minion
  74. {% endif %}
  75.  
  76.  
  77. #rhel5
  78. {% if grains['oscodename'] == 'Tikanga' %}
  79. syslog-restart:
  80. cmd.run:
  81. - name: 'service syslog restart'
  82. {% endif %}
  83.  
  84. #rhel6
  85. {% if grains['oscodename'] == 'Santiago' %}
  86. rsyslog-restart:
  87. cmd.run:
  88. - name: 'service rsyslog restart'
  89. {% endif %}
  90.  
  91. #rhel7
  92. {% if grains['oscodename'] == 'Maipo' %}
  93. rsyslog-restart:
  94. cmd.run:
  95. - name: 'service rsyslog restart'
  96. {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement