Saltstack Official Syslog-NG Formula
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

47 行
922B

  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. pillars:
  25. top.sls:
  26. base:
  27. '*':
  28. - syslog_ng
  29. platforms:
  30. - name: <%= distrib %>-<%= codename %>
  31. driver_config:
  32. image: "<%= distrib %>:<%= codename %>"
  33. platform: <%= distrib %>
  34. verifier:
  35. name: inspec
  36. format: progress
  37. suites:
  38. - name: syslog_ng