Saltstack Official Logrotate Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. # -*- coding: utf-8 -*-
  2. # vim: ft=yaml
  3. ---
  4. # For help on this file's format, see https://kitchen.ci/
  5. driver:
  6. name: docker
  7. use_sudo: false
  8. privileged: true
  9. run_command: /lib/systemd/systemd
  10. # Make sure the platforms listed below match up with
  11. # the `env.matrix` instances defined in `.travis.yml`
  12. platforms:
  13. ## SALT `master`
  14. - name: debian-10-master-py3
  15. driver:
  16. image: saltimages/salt-master-py3:debian-10
  17. - name: ubuntu-2004-master-py3
  18. driver:
  19. image: saltimages/salt-master-py3:ubuntu-20.04
  20. - name: ubuntu-1804-master-py3
  21. driver:
  22. image: saltimages/salt-master-py3:ubuntu-18.04
  23. - name: centos-8-master-py3
  24. driver:
  25. image: saltimages/salt-master-py3:centos-8
  26. - name: fedora-32-master-py3
  27. driver:
  28. image: saltimages/salt-master-py3:fedora-32
  29. - name: fedora-31-master-py3
  30. driver:
  31. image: saltimages/salt-master-py3:fedora-31
  32. - name: opensuse-leap-152-master-py3
  33. driver:
  34. image: saltimages/salt-master-py3:opensuse-leap-15.2
  35. run_command: /usr/lib/systemd/systemd
  36. # Workaround to avoid intermittent failures on `opensuse-leap-15.2`:
  37. # => SCP did not finish successfully (255): (Net::SCP::Error)
  38. transport:
  39. max_ssh_sessions: 1
  40. - name: amazonlinux-2-master-py3
  41. driver:
  42. image: saltimages/salt-master-py3:amazonlinux-2
  43. ## SALT `3000.3`
  44. - name: debian-10-3000-3-py3
  45. driver:
  46. image: saltimages/salt-3000.3-py3:debian-10
  47. - name: debian-9-3000-3-py3
  48. driver:
  49. image: saltimages/salt-3000.3-py3:debian-9
  50. - name: ubuntu-1804-3000-3-py3
  51. driver:
  52. image: saltimages/salt-3000.3-py3:ubuntu-18.04
  53. - name: centos-8-3000-3-py3
  54. driver:
  55. image: saltimages/salt-3000.3-py3:centos-8
  56. - name: centos-7-3000-3-py3
  57. driver:
  58. image: saltimages/salt-3000.3-py3:centos-7
  59. - name: fedora-31-3000-3-py3
  60. driver:
  61. image: saltimages/salt-3000.3-py3:fedora-31
  62. - name: opensuse-leap-152-3000-3-py3
  63. driver:
  64. image: saltimages/salt-3000.3-py3:opensuse-leap-15.2
  65. run_command: /usr/lib/systemd/systemd
  66. # Workaround to avoid intermittent failures on `opensuse-leap-15.2`:
  67. # => SCP did not finish successfully (255): (Net::SCP::Error)
  68. transport:
  69. max_ssh_sessions: 1
  70. - name: amazonlinux-2-3000-3-py3
  71. driver:
  72. image: saltimages/salt-3000.3-py3:amazonlinux-2
  73. - name: ubuntu-1804-3000-3-py2
  74. driver:
  75. image: saltimages/salt-3000.3-py2:ubuntu-18.04
  76. - name: ubuntu-1604-3000-3-py2
  77. driver:
  78. image: saltimages/salt-3000.3-py2:ubuntu-16.04
  79. - name: arch-base-latest-3000-3-py2
  80. driver:
  81. image: saltimages/salt-3000.3-py2:arch-base-latest
  82. run_command: /usr/lib/systemd/systemd
  83. ## SALT `2019.2`
  84. - name: debian-10-2019-2-py3
  85. driver:
  86. image: saltimages/salt-2019.2-py3:debian-10
  87. - name: debian-9-2019-2-py3
  88. driver:
  89. image: saltimages/salt-2019.2-py3:debian-9
  90. - name: ubuntu-1804-2019-2-py3
  91. driver:
  92. image: saltimages/salt-2019.2-py3:ubuntu-18.04
  93. - name: ubuntu-1604-2019-2-py3
  94. driver:
  95. image: saltimages/salt-2019.2-py3:ubuntu-16.04
  96. - name: centos-8-2019-2-py3
  97. driver:
  98. image: saltimages/salt-2019.2-py3:centos-8
  99. - name: centos-7-2019-2-py3
  100. driver:
  101. image: saltimages/salt-2019.2-py3:centos-7
  102. - name: fedora-31-2019-2-py3
  103. driver:
  104. image: saltimages/salt-2019.2-py3:fedora-31
  105. - name: opensuse-leap-152-2019-2-py3
  106. driver:
  107. image: saltimages/salt-2019.2-py3:opensuse-leap-15.2
  108. run_command: /usr/lib/systemd/systemd
  109. # Workaround to avoid intermittent failures on `opensuse-leap-15.2`:
  110. # => SCP did not finish successfully (255): (Net::SCP::Error)
  111. transport:
  112. max_ssh_sessions: 1
  113. - name: amazonlinux-2-2019-2-py3
  114. driver:
  115. image: saltimages/salt-2019.2-py3:amazonlinux-2
  116. - name: centos-6-2019-2-py2
  117. driver:
  118. image: saltimages/salt-2019.2-py2:centos-6
  119. run_command: /sbin/init
  120. - name: amazonlinux-1-2019-2-py2
  121. driver:
  122. image: saltimages/salt-2019.2-py2:amazonlinux-1
  123. run_command: /sbin/init
  124. - name: arch-base-latest-2019-2-py2
  125. driver:
  126. image: saltimages/salt-2019.2-py2:arch-base-latest
  127. run_command: /usr/lib/systemd/systemd
  128. provisioner:
  129. name: salt_solo
  130. log_level: debug
  131. salt_install: none
  132. require_chef: false
  133. formula: logrotate
  134. salt_copy_filter:
  135. - .kitchen
  136. - .git
  137. verifier:
  138. # https://www.inspec.io/
  139. name: inspec
  140. sudo: true
  141. # cli, documentation, html, progress, json, json-min, json-rspec, junit
  142. reporter:
  143. - cli
  144. suites:
  145. - name: default
  146. provisioner:
  147. state_top:
  148. base:
  149. 'G@os_family:Suse or G@os_family:Debian':
  150. - states.cron
  151. '*':
  152. - logrotate
  153. - logrotate.jobs
  154. pillars:
  155. top.sls:
  156. base:
  157. '*':
  158. - logrotate
  159. pillars_from_files:
  160. logrotate.sls: pillar.example
  161. dependencies:
  162. - name: states
  163. path: ./test/salt
  164. verifier:
  165. inspec_tests:
  166. - path: test/integration/default