Saltstack Official Syslog-NG Formula
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

56 lines
1.1KB

  1. <%
  2. distrib, infos = ENV.fetch('DISTRIB', 'debian:stretch/9').split(':')
  3. codename, version = infos.split('/')
  4. %>
  5. ---
  6. driver:
  7. name: docker
  8. use_sudo: false
  9. provisioner:
  10. name: salt_solo
  11. formula: syslog_ng
  12. # Install Salt from official repositories
  13. salt_install: apt
  14. salt_version: latest
  15. salt_apt_repo: http://repo.saltstack.com/apt/<%= distrib %>/<%= version %>/amd64
  16. salt_apt_repo_key: http://repo.saltstack.com/apt/<%= distrib %>/<%= version %>/amd64/latest/SALTSTACK-GPG-KEY.pub
  17. # Don't install Chef
  18. require_chef: false
  19. # Configure Salt
  20. state_top:
  21. base:
  22. '*':
  23. - syslog_ng.config
  24. <% if %w[wheezy jessie xenial].include?(codename) %>
  25. pillars:
  26. top.sls:
  27. base:
  28. '*':
  29. - syslog_ng
  30. syslog_ng.sls:
  31. syslog_ng:
  32. source:
  33. - s_src:
  34. - unix-stream:
  35. - /dev/log
  36. - internal: null
  37. <% end %>
  38. platforms:
  39. - name: <%= distrib %>-<%= codename %>
  40. driver_config:
  41. image: "<%= distrib %>:<%= codename %>"
  42. platform: <%= distrib %>
  43. verifier:
  44. name: inspec
  45. format: progress
  46. suites:
  47. - name: syslog_ng