Compare commits

..

No commits in common. "libertacasa" and "v1.2.2" have entirely different histories.

20 changed files with 618 additions and 484 deletions

View File

@ -17,11 +17,11 @@ jobs:
# - default-freebsd-130-master-py3 # - default-freebsd-130-master-py3
# - modules-freebsd-130-master-py3 # - modules-freebsd-130-master-py3
- freebsd-130-master-py3 - freebsd-130-master-py3
# - default-freebsd-123-master-py3 # - default-freebsd-122-master-py3
# - modules-freebsd-123-master-py3 # - modules-freebsd-122-master-py3
- freebsd-123-master-py3 - freebsd-122-master-py3
# - default-freebsd-130-3004-0-py3 # - default-freebsd-130-3003-1-py3
# - default-freebsd-123-3004-0-py3 # - default-freebsd-122-3003-1-py3
steps: steps:
- name: 'Check out code' - name: 'Check out code'
uses: 'actions/checkout@v2' uses: 'actions/checkout@v2'

View File

@ -103,7 +103,7 @@ rubocop:
############################################################################### ###############################################################################
# Define `test` template # Define `test` template
############################################################################### ###############################################################################
.test_instance: &test_instance .test_instance:
stage: *stage_test stage: *stage_test
image: *image_dindruby image: *image_dindruby
services: *services_docker_dind services: *services_docker_dind
@ -118,27 +118,18 @@ rubocop:
# Alternative value to consider: `${CI_JOB_NAME}` # Alternative value to consider: `${CI_JOB_NAME}`
- 'bin/kitchen verify "${DOCKER_ENV_CI_JOB_NAME}"' - 'bin/kitchen verify "${DOCKER_ENV_CI_JOB_NAME}"'
###############################################################################
# Define `test` template (`allow_failure: true`)
###############################################################################
.test_instance_failure_permitted:
<<: *test_instance
allow_failure: true
############################################################################### ###############################################################################
# `test` stage: each instance below uses the `test` template above # `test` stage: each instance below uses the `test` template above
############################################################################### ###############################################################################
## Define the rest of the matrix based on Kitchen testing ## Define the rest of the matrix based on Kitchen testing
# Make sure the instances listed below match up with # Make sure the instances listed below match up with
# the `platforms` defined in `kitchen.yml` # the `platforms` defined in `kitchen.yml`
# yamllint disable rule:line-length
# default-debian-11-tiamat-py3: {extends: '.test_instance'} # default-debian-11-tiamat-py3: {extends: '.test_instance'}
# default-debian-10-tiamat-py3: {extends: '.test_instance'} # default-debian-10-tiamat-py3: {extends: '.test_instance'}
# default-debian-9-tiamat-py3: {extends: '.test_instance'} # default-debian-9-tiamat-py3: {extends: '.test_instance'}
# default-ubuntu-2204-tiamat-py3: {extends: '.test_instance_failure_permitted'}
# default-ubuntu-2004-tiamat-py3: {extends: '.test_instance'} # default-ubuntu-2004-tiamat-py3: {extends: '.test_instance'}
# default-ubuntu-1804-tiamat-py3: {extends: '.test_instance'} # default-ubuntu-1804-tiamat-py3: {extends: '.test_instance'}
# default-centos-stream8-tiamat-py3: {extends: '.test_instance_failure_permitted'} # default-centos-8-tiamat-py3: {extends: '.test_instance'}
# default-centos-7-tiamat-py3: {extends: '.test_instance'} # default-centos-7-tiamat-py3: {extends: '.test_instance'}
# default-amazonlinux-2-tiamat-py3: {extends: '.test_instance'} # default-amazonlinux-2-tiamat-py3: {extends: '.test_instance'}
# default-oraclelinux-8-tiamat-py3: {extends: '.test_instance'} # default-oraclelinux-8-tiamat-py3: {extends: '.test_instance'}
@ -154,33 +145,33 @@ debian-10-master-py3: {extends: '.test_instance'}
# default-debian-9-master-py3: {extends: '.test_instance'} # default-debian-9-master-py3: {extends: '.test_instance'}
# modules-debian-9-master-py3: {extends: '.test_instance'} # modules-debian-9-master-py3: {extends: '.test_instance'}
# debian-9-master-py3: {extends: '.test_instance'} # debian-9-master-py3: {extends: '.test_instance'}
# default-ubuntu-2204-master-py3: {extends: '.test_instance_failure_permitted'}
# modules-ubuntu-2204-master-py3: {extends: '.test_instance_failure_permitted'}
ubuntu-2204-master-py3: {extends: '.test_instance_failure_permitted'}
# default-ubuntu-2004-master-py3: {extends: '.test_instance'} # default-ubuntu-2004-master-py3: {extends: '.test_instance'}
# modules-ubuntu-2004-master-py3: {extends: '.test_instance'} # modules-ubuntu-2004-master-py3: {extends: '.test_instance'}
ubuntu-2004-master-py3: {extends: '.test_instance'} ubuntu-2004-master-py3: {extends: '.test_instance'}
# default-ubuntu-1804-master-py3: {extends: '.test_instance'} # default-ubuntu-1804-master-py3: {extends: '.test_instance'}
# modules-ubuntu-1804-master-py3: {extends: '.test_instance'} # modules-ubuntu-1804-master-py3: {extends: '.test_instance'}
ubuntu-1804-master-py3: {extends: '.test_instance'} ubuntu-1804-master-py3: {extends: '.test_instance'}
# default-centos-stream8-master-py3: {extends: '.test_instance_failure_permitted'} # default-centos-8-master-py3: {extends: '.test_instance'}
# modules-centos-stream8-master-py3: {extends: '.test_instance_failure_permitted'} # modules-centos-8-master-py3: {extends: '.test_instance'}
centos-stream8-master-py3: {extends: '.test_instance_failure_permitted'} centos-8-master-py3: {extends: '.test_instance'}
# default-centos-7-master-py3: {extends: '.test_instance'} # default-centos-7-master-py3: {extends: '.test_instance'}
# modules-centos-7-master-py3: {extends: '.test_instance'} # modules-centos-7-master-py3: {extends: '.test_instance'}
centos-7-master-py3: {extends: '.test_instance'} centos-7-master-py3: {extends: '.test_instance'}
# default-fedora-36-master-py3: {extends: '.test_instance_failure_permitted'} # default-fedora-34-master-py3: {extends: '.test_instance'}
# modules-fedora-36-master-py3: {extends: '.test_instance_failure_permitted'} # modules-fedora-34-master-py3: {extends: '.test_instance'}
fedora-36-master-py3: {extends: '.test_instance_failure_permitted'} fedora-34-master-py3: {extends: '.test_instance'}
# default-fedora-35-master-py3: {extends: '.test_instance'} # default-fedora-33-master-py3: {extends: '.test_instance'}
# modules-fedora-35-master-py3: {extends: '.test_instance'} # modules-fedora-33-master-py3: {extends: '.test_instance'}
fedora-35-master-py3: {extends: '.test_instance'} fedora-33-master-py3: {extends: '.test_instance'}
# default-opensuse-leap-153-master-py3: {extends: '.test_instance'} # default-opensuse-leap-153-master-py3: {extends: '.test_instance'}
# modules-opensuse-leap-153-master-py3: {extends: '.test_instance'} # modules-opensuse-leap-153-master-py3: {extends: '.test_instance'}
opensuse-leap-153-master-py3: {extends: '.test_instance'} opensuse-leap-153-master-py3: {extends: '.test_instance'}
default-opensuse-tmbl-latest-master-py3: {extends: '.test_instance_failure_permitted'} # default-opensuse-leap-152-master-py3: {extends: '.test_instance'}
# modules-opensuse-tmbl-latest-master-py3: {extends: '.test_instance_failure_permitted'} # modules-opensuse-leap-152-master-py3: {extends: '.test_instance'}
# opensuse-tmbl-latest-master-py3: {extends: '.test_instance_failure_permitted'} opensuse-leap-152-master-py3: {extends: '.test_instance'}
default-opensuse-tmbl-latest-master-py3: {extends: '.test_instance'}
# modules-opensuse-tmbl-latest-master-py3: {extends: '.test_instance'}
# opensuse-tmbl-latest-master-py3: {extends: '.test_instance'}
# https://community.letsencrypt.org/t/localhost-crt-does-not-exist-or-is-empty/103979 # https://community.letsencrypt.org/t/localhost-crt-does-not-exist-or-is-empty/103979
default-amazonlinux-2-master-py3: {extends: '.test_instance'} default-amazonlinux-2-master-py3: {extends: '.test_instance'}
# modules-amazonlinux-2-master-py3: {extends: '.test_instance'} # modules-amazonlinux-2-master-py3: {extends: '.test_instance'}
@ -206,37 +197,60 @@ almalinux-8-master-py3: {extends: '.test_instance'}
# default-rockylinux-8-master-py3: {extends: '.test_instance'} # default-rockylinux-8-master-py3: {extends: '.test_instance'}
# modules-rockylinux-8-master-py3: {extends: '.test_instance'} # modules-rockylinux-8-master-py3: {extends: '.test_instance'}
rockylinux-8-master-py3: {extends: '.test_instance'} rockylinux-8-master-py3: {extends: '.test_instance'}
# default-debian-11-3004-1-py3: {extends: '.test_instance'} # default-debian-11-3003-3-py3: {extends: '.test_instance'}
# default-debian-10-3004-1-py3: {extends: '.test_instance'} # default-debian-10-3003-3-py3: {extends: '.test_instance'}
# default-debian-9-3004-1-py3: {extends: '.test_instance'} # default-debian-9-3003-3-py3: {extends: '.test_instance'}
# default-ubuntu-2204-3004-1-py3: {extends: '.test_instance_failure_permitted'} # default-ubuntu-2004-3003-3-py3: {extends: '.test_instance'}
# default-ubuntu-2004-3004-1-py3: {extends: '.test_instance'} # default-ubuntu-1804-3003-3-py3: {extends: '.test_instance'}
# default-ubuntu-1804-3004-1-py3: {extends: '.test_instance'} # default-centos-8-3003-3-py3: {extends: '.test_instance'}
# default-centos-stream8-3004-1-py3: {extends: '.test_instance_failure_permitted'} # default-centos-7-3003-3-py3: {extends: '.test_instance'}
# default-centos-7-3004-1-py3: {extends: '.test_instance'} # default-fedora-34-3003-3-py3: {extends: '.test_instance'}
# default-fedora-36-3004-1-py3: {extends: '.test_instance_failure_permitted'} # default-fedora-33-3003-3-py3: {extends: '.test_instance'}
# default-fedora-35-3004-1-py3: {extends: '.test_instance'} # default-opensuse-leap-153-3003-3-py3: {extends: '.test_instance'}
# default-amazonlinux-2-3004-1-py3: {extends: '.test_instance'} # default-opensuse-leap-152-3003-3-py3: {extends: '.test_instance'}
# default-oraclelinux-8-3004-1-py3: {extends: '.test_instance'} # default-opensuse-tmbl-latest-3003-3-py3: {extends: '.test_instance'}
# default-oraclelinux-7-3004-1-py3: {extends: '.test_instance'} # default-amazonlinux-2-3003-3-py3: {extends: '.test_instance'}
# default-arch-base-latest-3004-1-py3: {extends: '.test_instance'} # default-oraclelinux-8-3003-3-py3: {extends: '.test_instance'}
# default-gentoo-stage3-latest-3004-1-py3: {extends: '.test_instance'} # default-oraclelinux-7-3003-3-py3: {extends: '.test_instance'}
# default-gentoo-stage3-systemd-3004-1-py3: {extends: '.test_instance'} # default-arch-base-latest-3003-3-py3: {extends: '.test_instance'}
# default-almalinux-8-3004-1-py3: {extends: '.test_instance'} # default-gentoo-stage3-latest-3003-3-py3: {extends: '.test_instance'}
# default-rockylinux-8-3004-1-py3: {extends: '.test_instance'} # default-gentoo-stage3-systemd-3003-3-py3: {extends: '.test_instance'}
# default-opensuse-leap-153-3004-0-py3: {extends: '.test_instance'} # default-almalinux-8-3003-3-py3: {extends: '.test_instance'}
# default-opensuse-tmbl-latest-3004-0-py3: {extends: '.test_instance_failure_permitted'} # default-debian-11-3002-7-py3: {extends: '.test_instance'}
# default-debian-10-3003-4-py3: {extends: '.test_instance'} # default-debian-10-3002-7-py3: {extends: '.test_instance'}
# default-debian-9-3003-4-py3: {extends: '.test_instance'} # default-debian-9-3002-7-py3: {extends: '.test_instance'}
# default-ubuntu-2004-3003-4-py3: {extends: '.test_instance'} # default-ubuntu-2004-3002-7-py3: {extends: '.test_instance'}
# default-ubuntu-1804-3003-4-py3: {extends: '.test_instance'} # default-ubuntu-1804-3002-7-py3: {extends: '.test_instance'}
# default-centos-stream8-3003-4-py3: {extends: '.test_instance_failure_permitted'} # default-centos-8-3002-7-py3: {extends: '.test_instance'}
# default-centos-7-3003-4-py3: {extends: '.test_instance'} # default-centos-7-3002-7-py3: {extends: '.test_instance'}
# default-amazonlinux-2-3003-4-py3: {extends: '.test_instance'} # default-fedora-34-3002-7-py3: {extends: '.test_instance'}
# default-oraclelinux-8-3003-4-py3: {extends: '.test_instance'} # default-fedora-33-3002-7-py3: {extends: '.test_instance'}
# default-oraclelinux-7-3003-4-py3: {extends: '.test_instance'} # default-opensuse-leap-153-3002-7-py3: {extends: '.test_instance'}
# default-almalinux-8-3003-4-py3: {extends: '.test_instance'} # default-opensuse-leap-152-3002-7-py3: {extends: '.test_instance'}
# yamllint enable rule:line-length # default-opensuse-tmbl-latest-3002-7-py3: {extends: '.test_instance'}
# default-amazonlinux-2-3002-7-py3: {extends: '.test_instance'}
# default-oraclelinux-8-3002-7-py3: {extends: '.test_instance'}
# default-oraclelinux-7-3002-7-py3: {extends: '.test_instance'}
# default-arch-base-latest-3002-7-py3: {extends: '.test_instance'}
# default-gentoo-stage3-latest-3002-7-py3: {extends: '.test_instance'}
# default-gentoo-stage3-systemd-3002-7-py3: {extends: '.test_instance'}
# default-debian-10-3001-8-py3: {extends: '.test_instance'}
# default-debian-9-3001-8-py3: {extends: '.test_instance'}
# default-ubuntu-2004-3001-8-py3: {extends: '.test_instance'}
# default-ubuntu-1804-3001-8-py3: {extends: '.test_instance'}
# default-centos-8-3001-8-py3: {extends: '.test_instance'}
# default-centos-7-3001-8-py3: {extends: '.test_instance'}
# default-fedora-34-3001-8-py3: {extends: '.test_instance'}
# default-fedora-33-3001-8-py3: {extends: '.test_instance'}
# default-opensuse-leap-153-3001-8-py3: {extends: '.test_instance'}
# default-opensuse-leap-152-3001-8-py3: {extends: '.test_instance'}
# default-opensuse-tmbl-latest-3001-8-py3: {extends: '.test_instance'}
# default-amazonlinux-2-3001-8-py3: {extends: '.test_instance'}
# default-oraclelinux-8-3001-8-py3: {extends: '.test_instance'}
# default-oraclelinux-7-3001-8-py3: {extends: '.test_instance'}
# default-arch-base-latest-3001-8-py3: {extends: '.test_instance'}
# default-gentoo-stage3-latest-3001-8-py3: {extends: '.test_instance'}
# default-gentoo-stage3-systemd-3001-8-py3: {extends: '.test_instance'}
############################################################################### ###############################################################################
# `release` stage: `semantic-release` # `release` stage: `semantic-release`

View File

@ -3,18 +3,6 @@
--- ---
# See https://pre-commit.com for more information # See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks # See https://pre-commit.com/hooks.html for more hooks
ci:
autofix_commit_msg: |
ci(pre-commit.ci): apply auto fixes from pre-commit.com hooks
For more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: ''
autoupdate_commit_msg: |
ci(pre-commit.ci): perform `pre-commit` autoupdate
autoupdate_schedule: quarterly
skip: []
submodules: false
default_stages: [commit] default_stages: [commit]
repos: repos:
- repo: https://github.com/dafyddj/commitlint-pre-commit-hook - repo: https://github.com/dafyddj/commitlint-pre-commit-hook
@ -30,7 +18,7 @@ repos:
additional_dependencies: ['@commitlint/config-conventional@8.3.4'] additional_dependencies: ['@commitlint/config-conventional@8.3.4']
always_run: true always_run: true
- repo: https://github.com/rubocop-hq/rubocop - repo: https://github.com/rubocop-hq/rubocop
rev: v1.30.1 rev: v1.9.1
hooks: hooks:
- id: rubocop - id: rubocop
name: Check Ruby files with rubocop name: Check Ruby files with rubocop
@ -38,14 +26,14 @@ repos:
always_run: true always_run: true
pass_filenames: false pass_filenames: false
- repo: https://github.com/shellcheck-py/shellcheck-py - repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.8.0.4 rev: v0.7.1.1
hooks: hooks:
- id: shellcheck - id: shellcheck
name: Check shell scripts with shellcheck name: Check shell scripts with shellcheck
files: ^.*\.(sh|bash|ksh)$ files: ^.*\.(sh|bash|ksh)$
types: [] types: []
- repo: https://github.com/adrienverge/yamllint - repo: https://github.com/adrienverge/yamllint
rev: v1.26.3 rev: v1.23.0
hooks: hooks:
- id: yamllint - id: yamllint
name: Check YAML syntax with yamllint name: Check YAML syntax with yamllint
@ -53,7 +41,7 @@ repos:
always_run: true always_run: true
pass_filenames: false pass_filenames: false
- repo: https://github.com/warpnet/salt-lint - repo: https://github.com/warpnet/salt-lint
rev: v0.8.0 rev: v0.3.0
hooks: hooks:
- id: salt-lint - id: salt-lint
name: Check Salt files using salt-lint name: Check Salt files using salt-lint

View File

@ -16,8 +16,4 @@ Security/YAMLLoad:
Exclude: Exclude:
- test/integration/**/_mapdata.rb - test/integration/**/_mapdata.rb
# General settings across all cops in this formula
AllCops:
NewCops: enable
# Any offenses that should be fixed, e.g. collected via. `rubocop --auto-gen-config` # Any offenses that should be fixed, e.g. collected via. `rubocop --auto-gen-config`

View File

@ -86,10 +86,9 @@ jobs:
# - env: INSTANCE=default-debian-11-tiamat-py3 # - env: INSTANCE=default-debian-11-tiamat-py3
# - env: INSTANCE=default-debian-10-tiamat-py3 # - env: INSTANCE=default-debian-10-tiamat-py3
# - env: INSTANCE=default-debian-9-tiamat-py3 # - env: INSTANCE=default-debian-9-tiamat-py3
# - env: INSTANCE=default-ubuntu-2204-tiamat-py3
# - env: INSTANCE=default-ubuntu-2004-tiamat-py3 # - env: INSTANCE=default-ubuntu-2004-tiamat-py3
# - env: INSTANCE=default-ubuntu-1804-tiamat-py3 # - env: INSTANCE=default-ubuntu-1804-tiamat-py3
# - env: INSTANCE=default-centos-stream8-tiamat-py3 # - env: INSTANCE=default-centos-8-tiamat-py3
# - env: INSTANCE=default-centos-7-tiamat-py3 # - env: INSTANCE=default-centos-7-tiamat-py3
# - env: INSTANCE=default-amazonlinux-2-tiamat-py3 # - env: INSTANCE=default-amazonlinux-2-tiamat-py3
# - env: INSTANCE=default-oraclelinux-8-tiamat-py3 # - env: INSTANCE=default-oraclelinux-8-tiamat-py3
@ -105,30 +104,30 @@ jobs:
# - env: INSTANCE=default-debian-9-master-py3 # - env: INSTANCE=default-debian-9-master-py3
# - env: INSTANCE=modules-debian-9-master-py3 # - env: INSTANCE=modules-debian-9-master-py3
# - env: INSTANCE=debian-9-master-py3 # - env: INSTANCE=debian-9-master-py3
# - env: INSTANCE=default-ubuntu-2204-master-py3
# - env: INSTANCE=modules-ubuntu-2204-master-py3
- env: INSTANCE=ubuntu-2204-master-py3
# - env: INSTANCE=default-ubuntu-2004-master-py3 # - env: INSTANCE=default-ubuntu-2004-master-py3
# - env: INSTANCE=modules-ubuntu-2004-master-py3 # - env: INSTANCE=modules-ubuntu-2004-master-py3
- env: INSTANCE=ubuntu-2004-master-py3 - env: INSTANCE=ubuntu-2004-master-py3
# - env: INSTANCE=default-ubuntu-1804-master-py3 # - env: INSTANCE=default-ubuntu-1804-master-py3
# - env: INSTANCE=modules-ubuntu-1804-master-py3 # - env: INSTANCE=modules-ubuntu-1804-master-py3
- env: INSTANCE=ubuntu-1804-master-py3 - env: INSTANCE=ubuntu-1804-master-py3
# - env: INSTANCE=default-centos-stream8-master-py3 # - env: INSTANCE=default-centos-8-master-py3
# - env: INSTANCE=modules-centos-stream8-master-py3 # - env: INSTANCE=modules-centos-8-master-py3
- env: INSTANCE=centos-stream8-master-py3 - env: INSTANCE=centos-8-master-py3
# - env: INSTANCE=default-centos-7-master-py3 # - env: INSTANCE=default-centos-7-master-py3
# - env: INSTANCE=modules-centos-7-master-py3 # - env: INSTANCE=modules-centos-7-master-py3
- env: INSTANCE=centos-7-master-py3 - env: INSTANCE=centos-7-master-py3
# - env: INSTANCE=default-fedora-36-master-py3 # - env: INSTANCE=default-fedora-34-master-py3
# - env: INSTANCE=modules-fedora-36-master-py3 # - env: INSTANCE=modules-fedora-34-master-py3
- env: INSTANCE=fedora-36-master-py3 - env: INSTANCE=fedora-34-master-py3
# - env: INSTANCE=default-fedora-35-master-py3 # - env: INSTANCE=default-fedora-33-master-py3
# - env: INSTANCE=modules-fedora-35-master-py3 # - env: INSTANCE=modules-fedora-33-master-py3
- env: INSTANCE=fedora-35-master-py3 - env: INSTANCE=fedora-33-master-py3
# - env: INSTANCE=default-opensuse-leap-153-master-py3 # - env: INSTANCE=default-opensuse-leap-153-master-py3
# - env: INSTANCE=modules-opensuse-leap-153-master-py3 # - env: INSTANCE=modules-opensuse-leap-153-master-py3
- env: INSTANCE=opensuse-leap-153-master-py3 - env: INSTANCE=opensuse-leap-153-master-py3
# - env: INSTANCE=default-opensuse-leap-152-master-py3
# - env: INSTANCE=modules-opensuse-leap-152-master-py3
- env: INSTANCE=opensuse-leap-152-master-py3
- env: INSTANCE=default-opensuse-tmbl-latest-master-py3 - env: INSTANCE=default-opensuse-tmbl-latest-master-py3
# - env: INSTANCE=modules-opensuse-tmbl-latest-master-py3 # - env: INSTANCE=modules-opensuse-tmbl-latest-master-py3
# - env: INSTANCE=opensuse-tmbl-latest-master-py3 # - env: INSTANCE=opensuse-tmbl-latest-master-py3
@ -157,36 +156,60 @@ jobs:
# - env: INSTANCE=default-rockylinux-8-master-py3 # - env: INSTANCE=default-rockylinux-8-master-py3
# - env: INSTANCE=modules-rockylinux-8-master-py3 # - env: INSTANCE=modules-rockylinux-8-master-py3
- env: INSTANCE=rockylinux-8-master-py3 - env: INSTANCE=rockylinux-8-master-py3
# - env: INSTANCE=default-debian-11-3004-1-py3 # - env: INSTANCE=default-debian-11-3003-3-py3
# - env: INSTANCE=default-debian-10-3004-1-py3 # - env: INSTANCE=default-debian-10-3003-3-py3
# - env: INSTANCE=default-debian-9-3004-1-py3 # - env: INSTANCE=default-debian-9-3003-3-py3
# - env: INSTANCE=default-ubuntu-2204-3004-1-py3 # - env: INSTANCE=default-ubuntu-2004-3003-3-py3
# - env: INSTANCE=default-ubuntu-2004-3004-1-py3 # - env: INSTANCE=default-ubuntu-1804-3003-3-py3
# - env: INSTANCE=default-ubuntu-1804-3004-1-py3 # - env: INSTANCE=default-centos-8-3003-3-py3
# - env: INSTANCE=default-centos-stream8-3004-1-py3 # - env: INSTANCE=default-centos-7-3003-3-py3
# - env: INSTANCE=default-centos-7-3004-1-py3 # - env: INSTANCE=default-fedora-34-3003-3-py3
# - env: INSTANCE=default-fedora-36-3004-1-py3 # - env: INSTANCE=default-fedora-33-3003-3-py3
# - env: INSTANCE=default-fedora-35-3004-1-py3 # - env: INSTANCE=default-opensuse-leap-153-3003-3-py3
# - env: INSTANCE=default-amazonlinux-2-3004-1-py3 # - env: INSTANCE=default-opensuse-leap-152-3003-3-py3
# - env: INSTANCE=default-oraclelinux-8-3004-1-py3 # - env: INSTANCE=default-opensuse-tmbl-latest-3003-3-py3
# - env: INSTANCE=default-oraclelinux-7-3004-1-py3 # - env: INSTANCE=default-amazonlinux-2-3003-3-py3
# - env: INSTANCE=default-arch-base-latest-3004-1-py3 # - env: INSTANCE=default-oraclelinux-8-3003-3-py3
# - env: INSTANCE=default-gentoo-stage3-latest-3004-1-py3 # - env: INSTANCE=default-oraclelinux-7-3003-3-py3
# - env: INSTANCE=default-gentoo-stage3-systemd-3004-1-py3 # - env: INSTANCE=default-arch-base-latest-3003-3-py3
# - env: INSTANCE=default-almalinux-8-3004-1-py3 # - env: INSTANCE=default-gentoo-stage3-latest-3003-3-py3
# - env: INSTANCE=default-rockylinux-8-3004-1-py3 # - env: INSTANCE=default-gentoo-stage3-systemd-3003-3-py3
# - env: INSTANCE=default-opensuse-leap-153-3004-0-py3 # - env: INSTANCE=default-almalinux-8-3003-3-py3
# - env: INSTANCE=default-opensuse-tmbl-latest-3004-0-py3 # - env: INSTANCE=default-debian-11-3002-7-py3
# - env: INSTANCE=default-debian-10-3003-4-py3 # - env: INSTANCE=default-debian-10-3002-7-py3
# - env: INSTANCE=default-debian-9-3003-4-py3 # - env: INSTANCE=default-debian-9-3002-7-py3
# - env: INSTANCE=default-ubuntu-2004-3003-4-py3 # - env: INSTANCE=default-ubuntu-2004-3002-7-py3
# - env: INSTANCE=default-ubuntu-1804-3003-4-py3 # - env: INSTANCE=default-ubuntu-1804-3002-7-py3
# - env: INSTANCE=default-centos-stream8-3003-4-py3 # - env: INSTANCE=default-centos-8-3002-7-py3
# - env: INSTANCE=default-centos-7-3003-4-py3 # - env: INSTANCE=default-centos-7-3002-7-py3
# - env: INSTANCE=default-amazonlinux-2-3003-4-py3 # - env: INSTANCE=default-fedora-34-3002-7-py3
# - env: INSTANCE=default-oraclelinux-8-3003-4-py3 # - env: INSTANCE=default-fedora-33-3002-7-py3
# - env: INSTANCE=default-oraclelinux-7-3003-4-py3 # - env: INSTANCE=default-opensuse-leap-153-3002-7-py3
# - env: INSTANCE=default-almalinux-8-3003-4-py3 # - env: INSTANCE=default-opensuse-leap-152-3002-7-py3
# - env: INSTANCE=default-opensuse-tmbl-latest-3002-7-py3
# - env: INSTANCE=default-amazonlinux-2-3002-7-py3
# - env: INSTANCE=default-oraclelinux-8-3002-7-py3
# - env: INSTANCE=default-oraclelinux-7-3002-7-py3
# - env: INSTANCE=default-arch-base-latest-3002-7-py3
# - env: INSTANCE=default-gentoo-stage3-latest-3002-7-py3
# - env: INSTANCE=default-gentoo-stage3-systemd-3002-7-py3
# - env: INSTANCE=default-debian-10-3001-8-py3
# - env: INSTANCE=default-debian-9-3001-8-py3
# - env: INSTANCE=default-ubuntu-2004-3001-8-py3
# - env: INSTANCE=default-ubuntu-1804-3001-8-py3
# - env: INSTANCE=default-centos-8-3001-8-py3
# - env: INSTANCE=default-centos-7-3001-8-py3
# - env: INSTANCE=default-fedora-34-3001-8-py3
# - env: INSTANCE=default-fedora-33-3001-8-py3
# - env: INSTANCE=default-opensuse-leap-153-3001-8-py3
# - env: INSTANCE=default-opensuse-leap-152-3001-8-py3
# - env: INSTANCE=default-opensuse-tmbl-latest-3001-8-py3
# - env: INSTANCE=default-amazonlinux-2-3001-8-py3
# - env: INSTANCE=default-oraclelinux-8-3001-8-py3
# - env: INSTANCE=default-oraclelinux-7-3001-8-py3
# - env: INSTANCE=default-arch-base-latest-3001-8-py3
# - env: INSTANCE=default-gentoo-stage3-latest-3001-8-py3
# - env: INSTANCE=default-gentoo-stage3-systemd-3001-8-py3
## Define the release stage that runs `semantic-release` ## Define the release stage that runs `semantic-release`
- stage: 'release' - stage: 'release'

View File

@ -22,7 +22,6 @@
/test/integration/**/libraries/system.rb @saltstack-formulas/ssf /test/integration/**/libraries/system.rb @saltstack-formulas/ssf
/test/integration/**/inspec.yml @saltstack-formulas/ssf /test/integration/**/inspec.yml @saltstack-formulas/ssf
/test/integration/**/README.md @saltstack-formulas/ssf /test/integration/**/README.md @saltstack-formulas/ssf
/test/salt/pillar/top.sls @saltstack-formulas/ssf
/.gitignore @saltstack-formulas/ssf /.gitignore @saltstack-formulas/ssf
/.cirrus.yml @saltstack-formulas/ssf /.cirrus.yml @saltstack-formulas/ssf
/.gitlab-ci.yml @saltstack-formulas/ssf /.gitlab-ci.yml @saltstack-formulas/ssf

View File

@ -1,6 +1,6 @@
# frozen_string_literal: true # frozen_string_literal: true
source ENV.fetch('PROXY_RUBYGEMSORG', 'https://rubygems.org') source 'https://rubygems.org'
# Install the `inspec` gem using `git` because versions after `4.22.22` # Install the `inspec` gem using `git` because versions after `4.22.22`
# suppress diff output; this version fixes this for our uses. # suppress diff output; this version fixes this for our uses.
@ -16,7 +16,7 @@ gem 'kitchen-docker', git: 'https://gitlab.com/saltstack-formulas/infrastructure
# rubocop:enable Layout/LineLength # rubocop:enable Layout/LineLength
gem 'kitchen-inspec', '>= 2.5.0' gem 'kitchen-inspec', '>= 2.5.0'
gem 'kitchen-salt', '>= 0.7.2' gem 'kitchen-salt', '>= 0.6.3'
group :vagrant do group :vagrant do
gem 'kitchen-vagrant' gem 'kitchen-vagrant'

View File

@ -1,20 +1,18 @@
GIT GIT
remote: https://gitlab.com/saltstack-formulas/infrastructure/inspec remote: https://gitlab.com/saltstack-formulas/infrastructure/inspec
revision: aaef842906a5666f0fc0b4f186b4dd3498f5b28c revision: 1cd64079dbbafa1bf19bbc08a2ea977aa1db7ebe
branch: ssf branch: ssf
specs: specs:
inspec (5.18.15) inspec (4.49.0)
cookstyle cookstyle
faraday_middleware (>= 0.12.2, < 1.1) faraday_middleware (>= 0.12.2, < 1.1)
inspec-core (= 5.18.15) inspec-core (= 4.49.0)
mongo (= 2.13.2) mongo (= 2.13.2)
progress_bar (~> 1.3.3) train (~> 3.0)
rake
train (~> 3.10)
train-aws (~> 0.2) train-aws (~> 0.2)
train-habitat (~> 0.1) train-habitat (~> 0.1)
train-winrm (~> 0.2) train-winrm (~> 0.2)
inspec-core (5.18.15) inspec-core (4.49.0)
addressable (~> 2.4) addressable (~> 2.4)
chef-telemetry (~> 1.0, >= 1.0.8) chef-telemetry (~> 1.0, >= 1.0.8)
faraday (>= 0.9.0, < 1.5) faraday (>= 0.9.0, < 1.5)
@ -27,55 +25,56 @@ GIT
parallel (~> 1.9) parallel (~> 1.9)
parslet (>= 1.5, < 2.0) parslet (>= 1.5, < 2.0)
pry (~> 0.13) pry (~> 0.13)
rspec (>= 3.9, <= 3.11) rspec (>= 3.9, < 3.11)
rspec-its (~> 1.2) rspec-its (~> 1.2)
rubyzip (>= 1.2.2, < 3.0) rubyzip (>= 1.2.2, < 3.0)
semverse (~> 3.0) semverse (~> 3.0)
sslshake (~> 1.2) sslshake (~> 1.2)
thor (>= 0.20, < 2.0) thor (>= 0.20, < 2.0)
tomlrb (>= 1.2, < 2.1) tomlrb (>= 1.2, < 2.1)
train-core (~> 3.10) train-core (~> 3.0)
tty-prompt (~> 0.17) tty-prompt (~> 0.17)
tty-table (~> 0.10) tty-table (~> 0.10)
GIT GIT
remote: https://gitlab.com/saltstack-formulas/infrastructure/kitchen-docker remote: https://gitlab.com/saltstack-formulas/infrastructure/kitchen-docker
revision: 9a09bc1e571e25f3ccabf4725ca2048d970fff82 revision: 428c89fc250b3790abad5ecb0afe0c3d4956084c
branch: ssf branch: ssf
specs: specs:
kitchen-docker (2.12.0) kitchen-docker (2.11.0)
test-kitchen (>= 1.0.0) test-kitchen (>= 1.0.0)
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
activesupport (7.0.3.1) activesupport (6.1.4.1)
concurrent-ruby (~> 1.0, >= 1.0.2) concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2) i18n (>= 1.6, < 2)
minitest (>= 5.1) minitest (>= 5.1)
tzinfo (~> 2.0) tzinfo (~> 2.0)
zeitwerk (~> 2.3)
addressable (2.8.0) addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0) public_suffix (>= 2.0.2, < 5.0)
ast (2.4.2) ast (2.4.2)
aws-eventstream (1.2.0) aws-eventstream (1.2.0)
aws-partitions (1.607.0) aws-partitions (1.519.0)
aws-sdk-alexaforbusiness (1.56.0) aws-sdk-alexaforbusiness (1.51.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-amplify (1.32.0) aws-sdk-amplify (1.32.0)
aws-sdk-core (~> 3, >= 3.120.0) aws-sdk-core (~> 3, >= 3.120.0)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-apigateway (1.78.0) aws-sdk-apigateway (1.68.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-apigatewayv2 (1.42.0) aws-sdk-apigatewayv2 (1.37.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-applicationautoscaling (1.51.0) aws-sdk-applicationautoscaling (1.51.0)
aws-sdk-core (~> 3, >= 3.112.0) aws-sdk-core (~> 3, >= 3.112.0)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-athena (1.55.0) aws-sdk-athena (1.42.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-autoscaling (1.63.0) aws-sdk-autoscaling (1.63.0)
aws-sdk-core (~> 3, >= 3.112.0) aws-sdk-core (~> 3, >= 3.112.0)
@ -83,41 +82,41 @@ GEM
aws-sdk-batch (1.47.0) aws-sdk-batch (1.47.0)
aws-sdk-core (~> 3, >= 3.112.0) aws-sdk-core (~> 3, >= 3.112.0)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-budgets (1.50.0) aws-sdk-budgets (1.42.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-cloudformation (1.70.0) aws-sdk-cloudformation (1.59.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-cloudfront (1.65.0) aws-sdk-cloudfront (1.57.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-cloudhsm (1.39.0) aws-sdk-cloudhsm (1.34.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-cloudhsmv2 (1.42.0) aws-sdk-cloudhsmv2 (1.37.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-cloudtrail (1.49.0) aws-sdk-cloudtrail (1.39.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-cloudwatch (1.64.0) aws-sdk-cloudwatch (1.56.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-cloudwatchevents (1.46.0) aws-sdk-cloudwatchevents (1.46.0)
aws-sdk-core (~> 3, >= 3.112.0) aws-sdk-core (~> 3, >= 3.112.0)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-cloudwatchlogs (1.53.0) aws-sdk-cloudwatchlogs (1.46.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-codecommit (1.51.0) aws-sdk-codecommit (1.46.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-codedeploy (1.49.0) aws-sdk-codedeploy (1.44.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-codepipeline (1.53.0) aws-sdk-codepipeline (1.48.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-cognitoidentity (1.31.0) aws-sdk-cognitoidentity (1.31.0)
aws-sdk-core (~> 3, >= 3.112.0) aws-sdk-core (~> 3, >= 3.112.0)
@ -125,55 +124,55 @@ GEM
aws-sdk-cognitoidentityprovider (1.53.0) aws-sdk-cognitoidentityprovider (1.53.0)
aws-sdk-core (~> 3, >= 3.112.0) aws-sdk-core (~> 3, >= 3.112.0)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-configservice (1.79.0) aws-sdk-configservice (1.68.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-core (3.131.2) aws-sdk-core (3.121.3)
aws-eventstream (~> 1, >= 1.0.2) aws-eventstream (~> 1, >= 1.0.2)
aws-partitions (~> 1, >= 1.525.0) aws-partitions (~> 1, >= 1.239.0)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
jmespath (~> 1, >= 1.6.1) jmespath (~> 1.0)
aws-sdk-costandusagereportservice (1.40.0) aws-sdk-costandusagereportservice (1.35.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-databasemigrationservice (1.53.0) aws-sdk-databasemigrationservice (1.53.0)
aws-sdk-core (~> 3, >= 3.112.0) aws-sdk-core (~> 3, >= 3.112.0)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-dynamodb (1.75.0) aws-sdk-dynamodb (1.64.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-ec2 (1.322.0) aws-sdk-ec2 (1.272.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-ecr (1.56.0) aws-sdk-ecr (1.48.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-ecrpublic (1.12.0) aws-sdk-ecrpublic (1.7.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-ecs (1.100.0) aws-sdk-ecs (1.87.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-efs (1.54.0) aws-sdk-efs (1.47.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-eks (1.75.0) aws-sdk-eks (1.64.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-elasticache (1.78.0) aws-sdk-elasticache (1.63.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-elasticbeanstalk (1.51.0) aws-sdk-elasticbeanstalk (1.46.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-elasticloadbalancing (1.40.0) aws-sdk-elasticloadbalancing (1.35.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-elasticloadbalancingv2 (1.78.0) aws-sdk-elasticloadbalancingv2 (1.71.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-elasticsearchservice (1.65.0) aws-sdk-elasticsearchservice (1.57.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-emr (1.53.0) aws-sdk-emr (1.53.0)
aws-sdk-core (~> 3, >= 3.121.2) aws-sdk-core (~> 3, >= 3.121.2)
@ -181,38 +180,38 @@ GEM
aws-sdk-eventbridge (1.24.0) aws-sdk-eventbridge (1.24.0)
aws-sdk-core (~> 3, >= 3.112.0) aws-sdk-core (~> 3, >= 3.112.0)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-firehose (1.48.0) aws-sdk-firehose (1.43.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-glue (1.88.0) aws-sdk-glue (1.88.0)
aws-sdk-core (~> 3, >= 3.112.0) aws-sdk-core (~> 3, >= 3.112.0)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-guardduty (1.58.0) aws-sdk-guardduty (1.49.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-iam (1.69.0) aws-sdk-iam (1.62.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-kafka (1.50.0) aws-sdk-kafka (1.42.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-kinesis (1.41.0) aws-sdk-kinesis (1.36.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-kms (1.57.0) aws-sdk-kms (1.50.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-lambda (1.84.0) aws-sdk-lambda (1.70.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-mq (1.40.0) aws-sdk-mq (1.40.0)
aws-sdk-core (~> 3, >= 3.120.0) aws-sdk-core (~> 3, >= 3.120.0)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-networkfirewall (1.17.0) aws-sdk-networkfirewall (1.9.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-networkmanager (1.24.0) aws-sdk-networkmanager (1.15.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-organizations (1.59.0) aws-sdk-organizations (1.59.0)
aws-sdk-core (~> 3, >= 3.112.0) aws-sdk-core (~> 3, >= 3.112.0)
@ -220,33 +219,30 @@ GEM
aws-sdk-ram (1.26.0) aws-sdk-ram (1.26.0)
aws-sdk-core (~> 3, >= 3.112.0) aws-sdk-core (~> 3, >= 3.112.0)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-rds (1.148.0) aws-sdk-rds (1.129.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-redshift (1.84.0) aws-sdk-redshift (1.70.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-route53 (1.63.0) aws-sdk-route53 (1.56.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-route53domains (1.40.0) aws-sdk-route53domains (1.34.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-route53resolver (1.37.0) aws-sdk-route53resolver (1.32.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.114.0) aws-sdk-s3 (1.104.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sdk-kms (~> 1) aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.4) aws-sigv4 (~> 1.4)
aws-sdk-s3control (1.43.0)
aws-sdk-core (~> 3, >= 3.122.0)
aws-sigv4 (~> 1.1)
aws-sdk-secretsmanager (1.46.0) aws-sdk-secretsmanager (1.46.0)
aws-sdk-core (~> 3, >= 3.112.0) aws-sdk-core (~> 3, >= 3.112.0)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-securityhub (1.67.0) aws-sdk-securityhub (1.55.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-servicecatalog (1.60.0) aws-sdk-servicecatalog (1.60.0)
aws-sdk-core (~> 3, >= 3.112.0) aws-sdk-core (~> 3, >= 3.112.0)
@ -254,8 +250,8 @@ GEM
aws-sdk-ses (1.41.0) aws-sdk-ses (1.41.0)
aws-sdk-core (~> 3, >= 3.120.0) aws-sdk-core (~> 3, >= 3.120.0)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-shield (1.48.0) aws-sdk-shield (1.42.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-signer (1.32.0) aws-sdk-signer (1.32.0)
aws-sdk-core (~> 3, >= 3.120.0) aws-sdk-core (~> 3, >= 3.120.0)
@ -263,17 +259,17 @@ GEM
aws-sdk-simpledb (1.29.0) aws-sdk-simpledb (1.29.0)
aws-sdk-core (~> 3, >= 3.120.0) aws-sdk-core (~> 3, >= 3.120.0)
aws-sigv2 (~> 1.0) aws-sigv2 (~> 1.0)
aws-sdk-sms (1.40.0) aws-sdk-sms (1.33.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-sns (1.53.0) aws-sdk-sns (1.46.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-sqs (1.51.1) aws-sdk-sqs (1.45.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-ssm (1.137.0) aws-sdk-ssm (1.120.0)
aws-sdk-core (~> 3, >= 3.127.0) aws-sdk-core (~> 3, >= 3.121.2)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-states (1.39.0) aws-sdk-states (1.39.0)
aws-sdk-core (~> 3, >= 3.112.0) aws-sdk-core (~> 3, >= 3.112.0)
@ -284,11 +280,8 @@ GEM
aws-sdk-transfer (1.34.0) aws-sdk-transfer (1.34.0)
aws-sdk-core (~> 3, >= 3.112.0) aws-sdk-core (~> 3, >= 3.112.0)
aws-sigv4 (~> 1.1) aws-sigv4 (~> 1.1)
aws-sdk-waf (1.43.0)
aws-sdk-core (~> 3, >= 3.122.0)
aws-sigv4 (~> 1.1)
aws-sigv2 (1.1.0) aws-sigv2 (1.1.0)
aws-sigv4 (1.5.0) aws-sigv4 (1.4.0)
aws-eventstream (~> 1, >= 1.0.2) aws-eventstream (~> 1, >= 1.0.2)
azure_graph_rbac (0.17.2) azure_graph_rbac (0.17.2)
ms_rest_azure (~> 0.12.0) ms_rest_azure (~> 0.12.0)
@ -301,11 +294,11 @@ GEM
azure_mgmt_storage (0.23.0) azure_mgmt_storage (0.23.0)
ms_rest_azure (~> 0.12.0) ms_rest_azure (~> 0.12.0)
bcrypt_pbkdf (1.1.0) bcrypt_pbkdf (1.1.0)
bson (4.15.0) bson (4.12.1)
builder (3.2.4) builder (3.2.4)
chef-config (17.10.0) chef-config (17.6.18)
addressable addressable
chef-utils (= 17.10.0) chef-utils (= 17.6.18)
fuzzyurl fuzzyurl
mixlib-config (>= 2.2.12, < 4.0) mixlib-config (>= 2.2.12, < 4.0)
mixlib-shellout (>= 2.0, < 4.0) mixlib-shellout (>= 2.0, < 4.0)
@ -313,22 +306,22 @@ GEM
chef-telemetry (1.1.1) chef-telemetry (1.1.1)
chef-config chef-config
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
chef-utils (17.10.0) chef-utils (17.6.18)
concurrent-ruby concurrent-ruby
coderay (1.1.3) coderay (1.1.3)
concurrent-ruby (1.1.10) concurrent-ruby (1.1.9)
cookstyle (7.32.1) cookstyle (7.25.8)
rubocop (= 1.25.1) rubocop (= 1.22.2)
declarative (0.0.20) declarative (0.0.20)
diff-lcs (1.5.0) diff-lcs (1.4.4)
docker-api (2.2.0) docker-api (2.2.0)
excon (>= 0.47.0) excon (>= 0.47.0)
multi_json multi_json
domain_name (0.5.20190701) domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0) unf (>= 0.0.5, < 1.0.0)
ed25519 (1.3.0) ed25519 (1.2.4)
erubi (1.10.0) erubi (1.10.0)
excon (0.92.3) excon (0.87.0)
faraday (1.4.3) faraday (1.4.3)
faraday-em_http (~> 1.0) faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0) faraday-em_synchrony (~> 1.0)
@ -347,7 +340,7 @@ GEM
faraday-net_http_persistent (1.2.0) faraday-net_http_persistent (1.2.0)
faraday_middleware (1.0.0) faraday_middleware (1.0.0)
faraday (~> 1.0) faraday (~> 1.0)
ffi (1.15.5) ffi (1.15.4)
fuzzyurl (0.9.0) fuzzyurl (0.9.0)
google-api-client (0.52.0) google-api-client (0.52.0)
addressable (~> 2.5, >= 2.5.1) addressable (~> 2.5, >= 2.5.1)
@ -367,28 +360,26 @@ GEM
signet (~> 0.14) signet (~> 0.14)
gssapi (1.3.1) gssapi (1.3.1)
ffi (>= 1.0.1) ffi (>= 1.0.1)
gyoku (1.4.0) gyoku (1.3.1)
builder (>= 2.1.2) builder (>= 2.1.2)
rexml (~> 3.0)
hashie (4.1.0) hashie (4.1.0)
highline (2.0.3) http-cookie (1.0.4)
http-cookie (1.0.5)
domain_name (~> 0.5) domain_name (~> 0.5)
httpclient (2.8.3) httpclient (2.8.3)
i18n (1.12.0) i18n (1.8.10)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
inifile (3.0.0) inifile (3.0.0)
jmespath (1.6.1) jmespath (1.4.0)
json (2.6.2) json (2.6.1)
jwt (2.4.1) jwt (2.3.0)
kitchen-inspec (2.6.1) kitchen-inspec (2.5.0)
hashie (>= 3.4, <= 5.0) hashie (>= 3.4, <= 5.0)
inspec (>= 2.2.64, < 7.0) inspec (>= 2.2.64, < 5.0)
test-kitchen (>= 2.7, < 4) test-kitchen (>= 2.7, < 4)
kitchen-salt (0.7.2) kitchen-salt (0.6.3)
hashie (>= 3.5) hashie (>= 3.5)
test-kitchen (>= 1.4) test-kitchen (>= 1.4)
kitchen-vagrant (1.12.0) kitchen-vagrant (1.10.0)
test-kitchen (>= 1.4, < 4) test-kitchen (>= 1.4, < 4)
license-acceptance (2.1.13) license-acceptance (2.1.13)
pastel (~> 0.7) pastel (~> 0.7)
@ -396,21 +387,21 @@ GEM
tty-box (~> 0.6) tty-box (~> 0.6)
tty-prompt (~> 0.20) tty-prompt (~> 0.20)
little-plugger (1.1.4) little-plugger (1.1.4)
logging (2.3.1) logging (2.3.0)
little-plugger (~> 1.1) little-plugger (~> 1.1)
multi_json (~> 1.14) multi_json (~> 1.14)
memoist (0.16.2) memoist (0.16.2)
method_source (1.0.0) method_source (1.0.0)
mini_mime (1.1.2) mini_mime (1.1.2)
minitest (5.16.2) minitest (5.14.4)
mixlib-config (3.0.27) mixlib-config (3.0.9)
tomlrb tomlrb
mixlib-install (3.12.19) mixlib-install (3.12.16)
mixlib-shellout mixlib-shellout
mixlib-versioning mixlib-versioning
thor thor
mixlib-log (3.0.9) mixlib-log (3.0.9)
mixlib-shellout (3.2.7) mixlib-shellout (3.2.5)
chef-utils chef-utils
mixlib-versioning (1.2.12) mixlib-versioning (1.2.12)
mongo (2.13.2) mongo (2.13.2)
@ -425,72 +416,67 @@ GEM
faraday-cookie_jar (~> 0.0.6) faraday-cookie_jar (~> 0.0.6)
ms_rest (~> 0.7.6) ms_rest (~> 0.7.6)
multi_json (1.15.0) multi_json (1.15.0)
multipart-post (2.2.3) multipart-post (2.1.1)
net-scp (3.0.0) net-scp (3.0.0)
net-ssh (>= 2.6.5, < 7.0.0) net-ssh (>= 2.6.5, < 7.0.0)
net-ssh (6.1.0) net-ssh (6.1.0)
net-ssh-gateway (2.0.0) net-ssh-gateway (2.0.0)
net-ssh (>= 4.0.0) net-ssh (>= 4.0.0)
nori (2.6.0) nori (2.6.0)
options (2.3.2) os (1.1.1)
os (1.1.4) parallel (1.21.0)
parallel (1.22.1) parser (3.0.2.0)
parser (3.1.2.0)
ast (~> 2.4.1) ast (~> 2.4.1)
parslet (1.8.2) parslet (1.8.2)
pastel (0.8.0) pastel (0.8.0)
tty-color (~> 0.5) tty-color (~> 0.5)
progress_bar (1.3.3)
highline (>= 1.6, < 3)
options (~> 2.3.0)
pry (0.14.1) pry (0.14.1)
coderay (~> 1.1) coderay (~> 1.1)
method_source (~> 1.0) method_source (~> 1.0)
public_suffix (4.0.7) public_suffix (4.0.6)
rainbow (3.1.1) rainbow (3.0.0)
rake (13.0.6) regexp_parser (2.1.1)
regexp_parser (2.5.0) representable (3.1.1)
representable (3.2.0)
declarative (< 0.1.0) declarative (< 0.1.0)
trailblazer-option (>= 0.1.1, < 0.2.0) trailblazer-option (>= 0.1.1, < 0.2.0)
uber (< 0.2.0) uber (< 0.2.0)
retriable (3.1.2) retriable (3.1.2)
rexml (3.2.5) rexml (3.2.5)
rspec (3.11.0) rspec (3.10.0)
rspec-core (~> 3.11.0) rspec-core (~> 3.10.0)
rspec-expectations (~> 3.11.0) rspec-expectations (~> 3.10.0)
rspec-mocks (~> 3.11.0) rspec-mocks (~> 3.10.0)
rspec-core (3.11.0) rspec-core (3.10.1)
rspec-support (~> 3.11.0) rspec-support (~> 3.10.0)
rspec-expectations (3.11.0) rspec-expectations (3.10.1)
diff-lcs (>= 1.2.0, < 2.0) diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0) rspec-support (~> 3.10.0)
rspec-its (1.3.0) rspec-its (1.3.0)
rspec-core (>= 3.0.0) rspec-core (>= 3.0.0)
rspec-expectations (>= 3.0.0) rspec-expectations (>= 3.0.0)
rspec-mocks (3.11.1) rspec-mocks (3.10.2)
diff-lcs (>= 1.2.0, < 2.0) diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0) rspec-support (~> 3.10.0)
rspec-support (3.11.0) rspec-support (3.10.2)
rubocop (1.25.1) rubocop (1.22.2)
parallel (~> 1.10) parallel (~> 1.10)
parser (>= 3.1.0.0) parser (>= 3.0.0.0)
rainbow (>= 2.2.2, < 4.0) rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0) regexp_parser (>= 1.8, < 3.0)
rexml rexml
rubocop-ast (>= 1.15.1, < 2.0) rubocop-ast (>= 1.12.0, < 2.0)
ruby-progressbar (~> 1.7) ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0) unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.19.1) rubocop-ast (1.12.0)
parser (>= 3.1.1.0) parser (>= 3.0.1.1)
ruby-progressbar (1.11.0) ruby-progressbar (1.11.0)
ruby2_keywords (0.0.5) ruby2_keywords (0.0.5)
rubyntlm (0.6.3) rubyntlm (0.6.3)
rubyzip (2.3.2) rubyzip (2.3.2)
semverse (3.0.2) semverse (3.0.0)
signet (0.17.0) signet (0.16.0)
addressable (~> 2.8) addressable (~> 2.8)
faraday (>= 0.17.5, < 3.a) faraday (>= 0.17.3, < 2.0)
jwt (>= 1.5, < 3.0) jwt (>= 1.5, < 3.0)
multi_json (~> 1.10) multi_json (~> 1.10)
sslshake (1.3.1) sslshake (1.3.1)
@ -499,7 +485,7 @@ GEM
unicode-display_width (>= 1.5, < 3.0) unicode-display_width (>= 1.5, < 3.0)
unicode_utils (~> 1.4) unicode_utils (~> 1.4)
strings-ansi (0.2.0) strings-ansi (0.2.0)
test-kitchen (3.3.1) test-kitchen (3.1.0)
bcrypt_pbkdf (~> 1.0) bcrypt_pbkdf (~> 1.0)
chef-utils (>= 16.4.35) chef-utils (>= 16.4.35)
ed25519 (~> 1.2) ed25519 (~> 1.2)
@ -513,11 +499,11 @@ GEM
winrm (~> 2.0) winrm (~> 2.0)
winrm-elevated (~> 1.0) winrm-elevated (~> 1.0)
winrm-fs (~> 1.1) winrm-fs (~> 1.1)
thor (1.2.1) thor (1.1.0)
timeliness (0.3.10) timeliness (0.3.10)
tomlrb (1.3.0) tomlrb (1.3.0)
trailblazer-option (0.1.2) trailblazer-option (0.1.1)
train (3.10.1) train (3.8.1)
activesupport (>= 6.0.3.1) activesupport (>= 6.0.3.1)
azure_graph_rbac (~> 0.16) azure_graph_rbac (~> 0.16)
azure_mgmt_key_vault (~> 0.17) azure_mgmt_key_vault (~> 0.17)
@ -528,9 +514,9 @@ GEM
google-api-client (>= 0.23.9, <= 0.52.0) google-api-client (>= 0.23.9, <= 0.52.0)
googleauth (>= 0.6.6, <= 0.14.0) googleauth (>= 0.6.6, <= 0.14.0)
inifile (~> 3.0) inifile (~> 3.0)
train-core (= 3.10.1) train-core (= 3.8.1)
train-winrm (~> 0.2) train-winrm (~> 0.2)
train-aws (0.2.24) train-aws (0.2.22)
aws-sdk-alexaforbusiness (~> 1.0) aws-sdk-alexaforbusiness (~> 1.0)
aws-sdk-amplify (~> 1.32.0) aws-sdk-amplify (~> 1.32.0)
aws-sdk-apigateway (~> 1.0) aws-sdk-apigateway (~> 1.0)
@ -590,7 +576,6 @@ GEM
aws-sdk-route53domains (~> 1.0) aws-sdk-route53domains (~> 1.0)
aws-sdk-route53resolver (~> 1.0) aws-sdk-route53resolver (~> 1.0)
aws-sdk-s3 (~> 1.30) aws-sdk-s3 (~> 1.30)
aws-sdk-s3control (~> 1.43.0)
aws-sdk-secretsmanager (>= 1.42, < 1.47) aws-sdk-secretsmanager (>= 1.42, < 1.47)
aws-sdk-securityhub (~> 1.0) aws-sdk-securityhub (~> 1.0)
aws-sdk-servicecatalog (>= 1.48, < 1.61) aws-sdk-servicecatalog (>= 1.48, < 1.61)
@ -605,8 +590,7 @@ GEM
aws-sdk-states (>= 1.35, < 1.40) aws-sdk-states (>= 1.35, < 1.40)
aws-sdk-synthetics (~> 1.19.0) aws-sdk-synthetics (~> 1.19.0)
aws-sdk-transfer (>= 1.26, < 1.35) aws-sdk-transfer (>= 1.26, < 1.35)
aws-sdk-waf (~> 1.43.0) train-core (3.8.1)
train-core (3.10.1)
addressable (~> 2.5) addressable (~> 2.5)
ffi (!= 1.13.0) ffi (!= 1.13.0)
json (>= 1.8, < 3.0) json (>= 1.8, < 3.0)
@ -614,7 +598,7 @@ GEM
net-scp (>= 1.2, < 4.0) net-scp (>= 1.2, < 4.0)
net-ssh (>= 2.9, < 7.0) net-ssh (>= 2.9, < 7.0)
train-habitat (0.2.22) train-habitat (0.2.22)
train-winrm (0.2.13) train-winrm (0.2.12)
winrm (>= 2.3.6, < 3.0) winrm (>= 2.3.6, < 3.0)
winrm-elevated (~> 1.2.2) winrm-elevated (~> 1.2.2)
winrm-fs (~> 1.0) winrm-fs (~> 1.0)
@ -641,8 +625,8 @@ GEM
uber (0.1.0) uber (0.1.0)
unf (0.1.4) unf (0.1.4)
unf_ext unf_ext
unf_ext (0.0.8.2) unf_ext (0.0.8)
unicode-display_width (2.2.0) unicode-display_width (2.1.0)
unicode_utils (1.4.0) unicode_utils (1.4.0)
winrm (2.3.6) winrm (2.3.6)
builder (>= 2.1.2) builder (>= 2.1.2)
@ -663,6 +647,7 @@ GEM
rubyzip (~> 2.0) rubyzip (~> 2.0)
winrm (~> 2.0) winrm (~> 2.0)
wisper (2.0.1) wisper (2.0.1)
zeitwerk (2.5.1)
PLATFORMS PLATFORMS
ruby ruby
@ -671,7 +656,7 @@ DEPENDENCIES
inspec! inspec!
kitchen-docker! kitchen-docker!
kitchen-inspec (>= 2.5.0) kitchen-inspec (>= 2.5.0)
kitchen-salt (>= 0.7.2) kitchen-salt (>= 0.6.3)
kitchen-vagrant kitchen-vagrant
BUNDLED WITH BUNDLED WITH

View File

@ -2,4 +2,14 @@
# vim: ft=sls # vim: ft=sls
include: include:
- .file
# .modules.clean # disable (exclude from init state)
# .modules # enable by default (read pillars)
# .debian_full
- .flags
- .logrotate
- .manage_security
- .no_default_vhost
# .own_default_vhost
- .register_site
- .vhosts - .vhosts

View File

@ -30,6 +30,10 @@ apache-config-vhosts-standard-{{ id }}:
- require: - require:
- pkg: apache-package-install-pkg-installed - pkg: apache-package-install-pkg-installed
- watch_in: - watch_in:
- module: apache-service-running-reload
- require_in:
- module: apache-service-running-restart
- module: apache-service-running-reload
- service: apache-service-running - service: apache-service-running
{%- if site.get('DocumentRoot') != False %} {%- if site.get('DocumentRoot') != False %}
@ -53,6 +57,10 @@ apache-config-vhosts-standard-{{ id }}-cmd-run-a2en:
- require: - require:
- file: apache-config-vhosts-standard-{{ id }} - file: apache-config-vhosts-standard-{{ id }}
- watch_in: - watch_in:
- module: apache-service-running-reload
- require_in:
- module: apache-service-running-restart
- module: apache-service-running-reload
- service: apache-service-running - service: apache-service-running
{%- else %} {%- else %}
@ -64,6 +72,10 @@ apache-config-vhosts-standard-{{ id }}-cmd-run-a2dis:
- require: - require:
- file: apache-config-vhosts-standard-{{ id }} - file: apache-config-vhosts-standard-{{ id }}
- watch_in: - watch_in:
- module: apache-service-running-reload
- require_in:
- module: apache-service-running-restart
- module: apache-service-running-reload
- service: apache-service-running - service: apache-service-running
{%- endif %} {%- endif %}

View File

@ -4,7 +4,6 @@
{%- set tplroot = tpldir.split('/')[0] %} {%- set tplroot = tpldir.split('/')[0] %}
{%- from tplroot ~ "/map.jinja" import apache with context %} {%- from tplroot ~ "/map.jinja" import apache with context %}
{#- consider moving this to an optional state or enabling it with a pillar option
{%- if 'deps' in apache.pkg and apache.pkg.deps and apache.pkg.deps is iterable and apache.pkg.deps is not string %} {%- if 'deps' in apache.pkg and apache.pkg.deps and apache.pkg.deps is iterable and apache.pkg.deps is not string %}
apache-package-install-deps-pkg-installed: apache-package-install-deps-pkg-installed:
pkg.installed: pkg.installed:
@ -12,7 +11,6 @@ apache-package-install-deps-pkg-installed:
- require: - require:
- apache-package-install-pkg-installed - apache-package-install-pkg-installed
{%- endif %} {%- endif %}
#}
apache-package-install-pkg-installed: apache-package-install-pkg-installed:
{%- if grains.os_family == 'Windows' %} {%- if grains.os_family == 'Windows' %}

View File

@ -2,10 +2,63 @@
# vim: ft=sls # vim: ft=sls
{%- set tplroot = tpldir.split('/')[0] %} {%- set tplroot = tpldir.split('/')[0] %}
{%- set sls_config_file = tplroot ~ '.config.file' %}
{%- set sls_config_registersite = tplroot ~ '.config.register_site' %}
{%- from tplroot ~ "/map.jinja" import apache with context %} {%- from tplroot ~ "/map.jinja" import apache with context %}
include:
- {{ sls_config_file }}
- {{ sls_config_registersite }}
apache-service-running: apache-service-running:
{%- if salt['pillar.get']('apache:manage_service_states', True) %}
{# By default run apache service states (unless pillar is false) #}
service.running: service.running:
- name: {{ apache.service.name }} - name: {{ apache.service.name }}
- enable: True - enable: True
- reload: True - watch:
- sls: {{ sls_config_file }}
- retry: {{ apache.retry_option|json }}
cmd.run:
- names:
- journalctl -xe -u {{ apache.service.name }} || tail -20 /var/log/messages || true
- (service {{ apache.service.name }} restart && service {{ apache.service.name }} status) || true
- cat {{ apache.config }}
- onfail:
- service: apache-service-running
{%- endif %}
{# The following states are by default inert and can be used #}
{# by other states to trigger a restart or reload as needed. #}
apache-service-running-restart:
module.wait:
{%- if apache.service_state in ['running'] %}
- name: service.restart
- m_name: {{ apache.service.name }}
{%- else %}
- name: cmd.run
- cmd: {{ apache.custom_reload_command|default('apachectl graceful') }}
- python_shell: True
{%- endif %}
- watch:
- sls: {{ sls_config_file }}
- require:
- sls: {{ sls_config_file }}
- service: apache-service-running
apache-service-running-reload:
module.wait:
{%- if apache.service_state in ['running'] %}
- name: service.reload
- m_name: {{ apache.service.name }}
{%- else %}
- name: cmd.run
- cmd: {{ apache.custom_reload_command|default('apachectl graceful') }}
- python_shell: True
{%- endif %}
- watch:
- sls: {{ sls_config_file }}
- require:
- sls: {{ sls_config_file }}
- service: apache-service-running

View File

@ -19,8 +19,8 @@ if File.file?(bundle_binstub)
load(bundle_binstub) load(bundle_binstub)
else else
abort( abort(
'Your `bin/bundle` was not generated by Bundler, ' \ 'Your `bin/bundle` was not generated by Bundler, '\
'so this binstub cannot run. Replace `bin/bundle` by running ' \ 'so this binstub cannot run. Replace `bin/bundle` by running '\
'`bundle binstubs bundler --force`, then run this command again.' '`bundle binstubs bundler --force`, then run this command again.'
) )
end end

View File

@ -9,8 +9,8 @@ driver:
gui: false gui: false
ssh: ssh:
shell: /bin/sh shell: /bin/sh
linked_clone: true
<% unless ENV['CI'] %> <% unless ENV['CI'] %>
linked_clone: true
synced_folders: synced_folders:
- - '.kitchen/kitchen-vagrant/%{instance_name}/vagrant' - - '.kitchen/kitchen-vagrant/%{instance_name}/vagrant'
- '/vagrant' - '/vagrant'
@ -21,12 +21,14 @@ platforms:
- name: freebsd-130-master-py3 - name: freebsd-130-master-py3
driver: driver:
box: myii/freebsd-13.0-master-py3 box: myii/freebsd-13.0-master-py3
- name: freebsd-123-master-py3 synced_folders: [] # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255208
- name: freebsd-122-master-py3
driver: driver:
box: myii/freebsd-12.3-master-py3 box: myii/freebsd-12.2-master-py3
- name: freebsd-130-3004-0-py3 - name: freebsd-130-3003-1-py3
driver: driver:
box: myii/freebsd-13.0-3004.0-py3 box: myii/freebsd-13.0-3003.1-py3
- name: freebsd-123-3004-0-py3 synced_folders: [] # https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255208
- name: freebsd-122-3003-1-py3
driver: driver:
box: myii/freebsd-12.3-3004.0-py3 box: myii/freebsd-12.2-3003.1-py3

View File

@ -32,10 +32,6 @@ platforms:
driver: driver:
image: saltimages/salt-tiamat-py3:debian-9 image: saltimages/salt-tiamat-py3:debian-9
run_command: /lib/systemd/systemd run_command: /lib/systemd/systemd
- name: ubuntu-2204-tiamat-py3
driver:
image: saltimages/salt-tiamat-py3:ubuntu-22.04
run_command: /lib/systemd/systemd
- name: ubuntu-2004-tiamat-py3 - name: ubuntu-2004-tiamat-py3
driver: driver:
image: saltimages/salt-tiamat-py3:ubuntu-20.04 image: saltimages/salt-tiamat-py3:ubuntu-20.04
@ -44,9 +40,9 @@ platforms:
driver: driver:
image: saltimages/salt-tiamat-py3:ubuntu-18.04 image: saltimages/salt-tiamat-py3:ubuntu-18.04
run_command: /lib/systemd/systemd run_command: /lib/systemd/systemd
- name: centos-stream8-tiamat-py3 - name: centos-8-tiamat-py3
driver: driver:
image: saltimages/salt-tiamat-py3:centos-stream8 image: saltimages/salt-tiamat-py3:centos-8
- name: centos-7-tiamat-py3 - name: centos-7-tiamat-py3
driver: driver:
image: saltimages/salt-tiamat-py3:centos-7 image: saltimages/salt-tiamat-py3:centos-7
@ -79,10 +75,6 @@ platforms:
driver: driver:
image: saltimages/salt-master-py3:debian-9 image: saltimages/salt-master-py3:debian-9
run_command: /lib/systemd/systemd run_command: /lib/systemd/systemd
- name: ubuntu-2204-master-py3
driver:
image: saltimages/salt-master-py3:ubuntu-22.04
run_command: /lib/systemd/systemd
- name: ubuntu-2004-master-py3 - name: ubuntu-2004-master-py3
driver: driver:
image: saltimages/salt-master-py3:ubuntu-20.04 image: saltimages/salt-master-py3:ubuntu-20.04
@ -91,18 +83,18 @@ platforms:
driver: driver:
image: saltimages/salt-master-py3:ubuntu-18.04 image: saltimages/salt-master-py3:ubuntu-18.04
run_command: /lib/systemd/systemd run_command: /lib/systemd/systemd
- name: centos-stream8-master-py3 - name: centos-8-master-py3
driver: driver:
image: saltimages/salt-master-py3:centos-stream8 image: saltimages/salt-master-py3:centos-8
- name: centos-7-master-py3 - name: centos-7-master-py3
driver: driver:
image: saltimages/salt-master-py3:centos-7 image: saltimages/salt-master-py3:centos-7
- name: fedora-36-master-py3 - name: fedora-34-master-py3
driver: driver:
image: saltimages/salt-master-py3:fedora-36 image: saltimages/salt-master-py3:fedora-34
- name: fedora-35-master-py3 - name: fedora-33-master-py3
driver: driver:
image: saltimages/salt-master-py3:fedora-35 image: saltimages/salt-master-py3:fedora-33
- name: opensuse-leap-153-master-py3 - name: opensuse-leap-153-master-py3
driver: driver:
image: saltimages/salt-master-py3:opensuse-leap-15.3 image: saltimages/salt-master-py3:opensuse-leap-15.3
@ -110,6 +102,13 @@ platforms:
# => SCP did not finish successfully (255): (Net::SCP::Error) # => SCP did not finish successfully (255): (Net::SCP::Error)
transport: transport:
max_ssh_sessions: 1 max_ssh_sessions: 1
- name: opensuse-leap-152-master-py3
driver:
image: saltimages/salt-master-py3:opensuse-leap-15.2
# Workaround to avoid intermittent failures on `opensuse-leap-15.2`:
# => SCP did not finish successfully (255): (Net::SCP::Error)
transport:
max_ssh_sessions: 1
- name: opensuse-tmbl-latest-master-py3 - name: opensuse-tmbl-latest-master-py3
driver: driver:
image: saltimages/salt-master-py3:opensuse-tumbleweed-latest image: saltimages/salt-master-py3:opensuse-tumbleweed-latest
@ -143,120 +142,226 @@ platforms:
driver: driver:
image: saltimages/salt-master-py3:rockylinux-8 image: saltimages/salt-master-py3:rockylinux-8
## SALT `3004.1` ## SALT `3003.3`
- name: debian-11-3004-1-py3 - name: debian-11-3003-3-py3
driver: driver:
image: saltimages/salt-3004.1-py3:debian-11 image: saltimages/salt-3003.3-py3:debian-11
run_command: /lib/systemd/systemd run_command: /lib/systemd/systemd
- name: debian-10-3004-1-py3 - name: debian-10-3003-3-py3
driver: driver:
image: saltimages/salt-3004.1-py3:debian-10 image: saltimages/salt-3003.3-py3:debian-10
run_command: /lib/systemd/systemd run_command: /lib/systemd/systemd
- name: debian-9-3004-1-py3 - name: debian-9-3003-3-py3
driver: driver:
image: saltimages/salt-3004.1-py3:debian-9 image: saltimages/salt-3003.3-py3:debian-9
run_command: /lib/systemd/systemd run_command: /lib/systemd/systemd
- name: ubuntu-2204-3004-1-py3 - name: ubuntu-2004-3003-3-py3
driver: driver:
image: saltimages/salt-3004.1-py3:ubuntu-22.04 image: saltimages/salt-3003.3-py3:ubuntu-20.04
run_command: /lib/systemd/systemd run_command: /lib/systemd/systemd
- name: ubuntu-2004-3004-1-py3 - name: ubuntu-1804-3003-3-py3
driver: driver:
image: saltimages/salt-3004.1-py3:ubuntu-20.04 image: saltimages/salt-3003.3-py3:ubuntu-18.04
run_command: /lib/systemd/systemd run_command: /lib/systemd/systemd
- name: ubuntu-1804-3004-1-py3 - name: centos-8-3003-3-py3
driver: driver:
image: saltimages/salt-3004.1-py3:ubuntu-18.04 image: saltimages/salt-3003.3-py3:centos-8
run_command: /lib/systemd/systemd - name: centos-7-3003-3-py3
- name: centos-stream8-3004-1-py3
driver: driver:
image: saltimages/salt-3004.1-py3:centos-stream8 image: saltimages/salt-3003.3-py3:centos-7
- name: centos-7-3004-1-py3 - name: fedora-34-3003-3-py3
driver: driver:
image: saltimages/salt-3004.1-py3:centos-7 image: saltimages/salt-3003.3-py3:fedora-34
- name: fedora-36-3004-1-py3 - name: fedora-33-3003-3-py3
driver: driver:
image: saltimages/salt-3004.1-py3:fedora-36 image: saltimages/salt-3003.3-py3:fedora-33
- name: fedora-35-3004-1-py3 - name: opensuse-leap-153-3003-3-py3
driver: driver:
image: saltimages/salt-3004.1-py3:fedora-35 image: saltimages/salt-3003.3-py3:opensuse-leap-15.3
- name: amazonlinux-2-3004-1-py3
driver:
image: saltimages/salt-3004.1-py3:amazonlinux-2
- name: oraclelinux-8-3004-1-py3
driver:
image: saltimages/salt-3004.1-py3:oraclelinux-8
- name: oraclelinux-7-3004-1-py3
driver:
image: saltimages/salt-3004.1-py3:oraclelinux-7
- name: arch-base-latest-3004-1-py3
driver:
image: saltimages/salt-3004.1-py3:arch-base-latest
- name: gentoo-stage3-latest-3004-1-py3
driver:
image: saltimages/salt-3004.1-py3:gentoo-stage3-latest
run_command: /sbin/init
- name: gentoo-stage3-systemd-3004-1-py3
driver:
image: saltimages/salt-3004.1-py3:gentoo-stage3-systemd
- name: almalinux-8-3004-1-py3
driver:
image: saltimages/salt-3004.1-py3:almalinux-8
- name: rockylinux-8-3004-1-py3
driver:
image: saltimages/salt-3004.1-py3:rockylinux-8
## SALT `3004.0`
- name: opensuse-leap-153-3004-0-py3
driver:
image: saltimages/salt-3004.0-py3:opensuse-leap-15.3
# Workaround to avoid intermittent failures on `opensuse-leap-15.3`: # Workaround to avoid intermittent failures on `opensuse-leap-15.3`:
# => SCP did not finish successfully (255): (Net::SCP::Error) # => SCP did not finish successfully (255): (Net::SCP::Error)
transport: transport:
max_ssh_sessions: 1 max_ssh_sessions: 1
- name: opensuse-tmbl-latest-3004-0-py3 - name: opensuse-leap-152-3003-3-py3
driver: driver:
image: saltimages/salt-3004.0-py3:opensuse-tumbleweed-latest image: saltimages/salt-3003.3-py3:opensuse-leap-15.2
# Workaround to avoid intermittent failures on `opensuse-leap-15.2`:
# => SCP did not finish successfully (255): (Net::SCP::Error)
transport:
max_ssh_sessions: 1
- name: opensuse-tmbl-latest-3003-3-py3
driver:
image: saltimages/salt-3003.3-py3:opensuse-tumbleweed-latest
# Workaround to avoid intermittent failures on `opensuse-tumbleweed`: # Workaround to avoid intermittent failures on `opensuse-tumbleweed`:
# => SCP did not finish successfully (255): (Net::SCP::Error) # => SCP did not finish successfully (255): (Net::SCP::Error)
transport: transport:
max_ssh_sessions: 1 max_ssh_sessions: 1
- name: amazonlinux-2-3003-3-py3
driver:
image: saltimages/salt-3003.3-py3:amazonlinux-2
- name: oraclelinux-8-3003-3-py3
driver:
image: saltimages/salt-3003.3-py3:oraclelinux-8
- name: oraclelinux-7-3003-3-py3
driver:
image: saltimages/salt-3003.3-py3:oraclelinux-7
- name: arch-base-latest-3003-3-py3
driver:
image: saltimages/salt-3003.3-py3:arch-base-latest
- name: gentoo-stage3-latest-3003-3-py3
driver:
image: saltimages/salt-3003.3-py3:gentoo-stage3-latest
run_command: /sbin/init
- name: gentoo-stage3-systemd-3003-3-py3
driver:
image: saltimages/salt-3003.3-py3:gentoo-stage3-systemd
- name: almalinux-8-3003-3-py3
driver:
image: saltimages/salt-3003.3-py3:almalinux-8
## SALT `3003.4` ## SALT `3002.7`
- name: debian-10-3003-4-py3 - name: debian-11-3002-7-py3
driver: driver:
image: saltimages/salt-3003.4-py3:debian-10 image: saltimages/salt-3002.7-py3:debian-11
run_command: /lib/systemd/systemd run_command: /lib/systemd/systemd
- name: debian-9-3003-4-py3 - name: debian-10-3002-7-py3
driver: driver:
image: saltimages/salt-3003.4-py3:debian-9 image: saltimages/salt-3002.7-py3:debian-10
run_command: /lib/systemd/systemd run_command: /lib/systemd/systemd
- name: ubuntu-2004-3003-4-py3 - name: debian-9-3002-7-py3
driver: driver:
image: saltimages/salt-3003.4-py3:ubuntu-20.04 image: saltimages/salt-3002.7-py3:debian-9
run_command: /lib/systemd/systemd run_command: /lib/systemd/systemd
- name: ubuntu-1804-3003-4-py3 - name: ubuntu-2004-3002-7-py3
driver: driver:
image: saltimages/salt-3003.4-py3:ubuntu-18.04 image: saltimages/salt-3002.7-py3:ubuntu-20.04
run_command: /lib/systemd/systemd run_command: /lib/systemd/systemd
- name: centos-stream8-3003-4-py3 - name: ubuntu-1804-3002-7-py3
driver: driver:
image: saltimages/salt-3003.4-py3:centos-stream8 image: saltimages/salt-3002.7-py3:ubuntu-18.04
- name: centos-7-3003-4-py3 run_command: /lib/systemd/systemd
- name: centos-8-3002-7-py3
driver: driver:
image: saltimages/salt-3003.4-py3:centos-7 image: saltimages/salt-3002.7-py3:centos-8
- name: amazonlinux-2-3003-4-py3 - name: centos-7-3002-7-py3
driver: driver:
image: saltimages/salt-3003.4-py3:amazonlinux-2 image: saltimages/salt-3002.7-py3:centos-7
- name: oraclelinux-8-3003-4-py3 - name: fedora-34-3002-7-py3
driver: driver:
image: saltimages/salt-3003.4-py3:oraclelinux-8 image: saltimages/salt-3002.7-py3:fedora-34
- name: oraclelinux-7-3003-4-py3 - name: fedora-33-3002-7-py3
driver: driver:
image: saltimages/salt-3003.4-py3:oraclelinux-7 image: saltimages/salt-3002.7-py3:fedora-33
- name: almalinux-8-3003-4-py3 - name: opensuse-leap-153-3002-7-py3
driver: driver:
image: saltimages/salt-3003.4-py3:almalinux-8 image: saltimages/salt-3002.7-py3:opensuse-leap-15.3
# Workaround to avoid intermittent failures on `opensuse-leap-15.3`:
# => SCP did not finish successfully (255): (Net::SCP::Error)
transport:
max_ssh_sessions: 1
- name: opensuse-leap-152-3002-7-py3
driver:
image: saltimages/salt-3002.7-py3:opensuse-leap-15.2
# Workaround to avoid intermittent failures on `opensuse-leap-15.2`:
# => SCP did not finish successfully (255): (Net::SCP::Error)
transport:
max_ssh_sessions: 1
- name: opensuse-tmbl-latest-3002-7-py3
driver:
image: saltimages/salt-3002.7-py3:opensuse-tumbleweed-latest
# Workaround to avoid intermittent failures on `opensuse-tumbleweed`:
# => SCP did not finish successfully (255): (Net::SCP::Error)
transport:
max_ssh_sessions: 1
- name: amazonlinux-2-3002-7-py3
driver:
image: saltimages/salt-3002.7-py3:amazonlinux-2
- name: oraclelinux-8-3002-7-py3
driver:
image: saltimages/salt-3002.7-py3:oraclelinux-8
- name: oraclelinux-7-3002-7-py3
driver:
image: saltimages/salt-3002.7-py3:oraclelinux-7
- name: arch-base-latest-3002-7-py3
driver:
image: saltimages/salt-3002.7-py3:arch-base-latest
- name: gentoo-stage3-latest-3002-7-py3
driver:
image: saltimages/salt-3002.7-py3:gentoo-stage3-latest
run_command: /sbin/init
- name: gentoo-stage3-systemd-3002-7-py3
driver:
image: saltimages/salt-3002.7-py3:gentoo-stage3-systemd
## SALT `3001.8`
- name: debian-10-3001-8-py3
driver:
image: saltimages/salt-3001.8-py3:debian-10
run_command: /lib/systemd/systemd
- name: debian-9-3001-8-py3
driver:
image: saltimages/salt-3001.8-py3:debian-9
run_command: /lib/systemd/systemd
- name: ubuntu-2004-3001-8-py3
driver:
image: saltimages/salt-3001.8-py3:ubuntu-20.04
run_command: /lib/systemd/systemd
- name: ubuntu-1804-3001-8-py3
driver:
image: saltimages/salt-3001.8-py3:ubuntu-18.04
run_command: /lib/systemd/systemd
- name: centos-8-3001-8-py3
driver:
image: saltimages/salt-3001.8-py3:centos-8
- name: centos-7-3001-8-py3
driver:
image: saltimages/salt-3001.8-py3:centos-7
- name: fedora-34-3001-8-py3
driver:
image: saltimages/salt-3001.8-py3:fedora-34
- name: fedora-33-3001-8-py3
driver:
image: saltimages/salt-3001.8-py3:fedora-33
- name: opensuse-leap-153-3001-8-py3
driver:
image: saltimages/salt-3001.8-py3:opensuse-leap-15.3
# Workaround to avoid intermittent failures on `opensuse-leap-15.3`:
# => SCP did not finish successfully (255): (Net::SCP::Error)
transport:
max_ssh_sessions: 1
- name: opensuse-leap-152-3001-8-py3
driver:
image: saltimages/salt-3001.8-py3:opensuse-leap-15.2
# Workaround to avoid intermittent failures on `opensuse-leap-15.2`:
# => SCP did not finish successfully (255): (Net::SCP::Error)
transport:
max_ssh_sessions: 1
- name: opensuse-tmbl-latest-3001-8-py3
driver:
image: saltimages/salt-3001.8-py3:opensuse-tumbleweed-latest
# Workaround to avoid intermittent failures on `opensuse-tumbleweed`:
# => SCP did not finish successfully (255): (Net::SCP::Error)
transport:
max_ssh_sessions: 1
- name: amazonlinux-2-3001-8-py3
driver:
image: saltimages/salt-3001.8-py3:amazonlinux-2
- name: oraclelinux-8-3001-8-py3
driver:
image: saltimages/salt-3001.8-py3:oraclelinux-8
- name: oraclelinux-7-3001-8-py3
driver:
image: saltimages/salt-3001.8-py3:oraclelinux-7
- name: arch-base-latest-3001-8-py3
driver:
image: saltimages/salt-3001.8-py3:arch-base-latest
- name: gentoo-stage3-latest-3001-8-py3
driver:
image: saltimages/salt-3001.8-py3:gentoo-stage3-latest
run_command: /sbin/init
- name: gentoo-stage3-systemd-3001-8-py3
driver:
image: saltimages/salt-3001.8-py3:gentoo-stage3-systemd
verifier: verifier:
# https://www.inspec.io/ # https://www.inspec.io/

View File

@ -7,16 +7,16 @@ sed -i -e "s_^\(version:\).*_\1 ${1}_" FORMULA
############################################################################### ###############################################################################
# (B) Use `m2r2` to convert automatically produced `.md` docs to `.rst` # (B) Use `m2r` to convert automatically produced `.md` docs to `.rst`
############################################################################### ###############################################################################
# Install `m2r2` # Install `m2r`
pip3 install m2r2 pip3 install m2r
# Copy and then convert the `.md` docs # Copy and then convert the `.md` docs
cp ./*.md docs/ cp ./*.md docs/
cd docs/ || exit cd docs/ || exit
m2r2 --overwrite ./*.md m2r --overwrite ./*.md
# Change excess `H1` headings to `H2` in converted `CHANGELOG.rst` # Change excess `H1` headings to `H2` in converted `CHANGELOG.rst`
sed -i -e '/^=.*$/s/=/-/g' CHANGELOG.rst sed -i -e '/^=.*$/s/=/-/g' CHANGELOG.rst

View File

@ -24,5 +24,4 @@ supports:
- platform-name: gentoo - platform-name: gentoo
- platform-name: almalinux - platform-name: almalinux
- platform-name: rocky - platform-name: rocky
- platform-name: mac_os_x
- platform: windows - platform: windows

View File

@ -24,5 +24,4 @@ supports:
- platform-name: gentoo - platform-name: gentoo
- platform-name: almalinux - platform-name: almalinux
- platform-name: rocky - platform-name: rocky
- platform-name: mac_os_x
- platform: windows - platform: windows

View File

@ -21,5 +21,4 @@ supports:
- platform-name: gentoo - platform-name: gentoo
- platform-name: almalinux - platform-name: almalinux
- platform-name: rocky - platform-name: rocky
- platform-name: mac_os_x
- platform: windows - platform: windows

View File

@ -4,7 +4,6 @@
# Author: Daniel Dehennin <daniel.dehennin@ac-dijon.fr> # Author: Daniel Dehennin <daniel.dehennin@ac-dijon.fr>
# Copyright (C) 2020 Daniel Dehennin <daniel.dehennin@ac-dijon.fr> # Copyright (C) 2020 Daniel Dehennin <daniel.dehennin@ac-dijon.fr>
# rubocop:disable Metrics/ClassLength
class SystemResource < Inspec.resource(1) class SystemResource < Inspec.resource(1)
name 'system' name 'system'
@ -22,8 +21,7 @@ class SystemResource < Inspec.resource(1)
family: build_platform_family, family: build_platform_family,
name: build_platform_name, name: build_platform_name,
release: build_platform_release, release: build_platform_release,
finger: build_platform_finger, finger: build_platform_finger
codename: build_platform_codename
} }
end end
@ -57,16 +55,12 @@ class SystemResource < Inspec.resource(1)
'base-latest' 'base-latest'
when 'gentoo' when 'gentoo'
"#{inspec.platform[:release].split('.')[0]}-#{derive_gentoo_init_system}" "#{inspec.platform[:release].split('.')[0]}-#{derive_gentoo_init_system}"
when 'mac_os_x'
inspec.command('sw_vers -productVersion').stdout.to_s
when 'opensuse' when 'opensuse'
# rubocop:disable Style/NumericLiterals,Layout/LineLength # rubocop:disable Style/NumericLiterals,Layout/LineLength
inspec.platform[:release].to_i > 20210101 ? 'tumbleweed' : inspec.platform[:release] inspec.platform[:release].to_i > 20210101 ? 'tumbleweed' : inspec.platform[:release]
# rubocop:enable Style/NumericLiterals,Layout/LineLength # rubocop:enable Style/NumericLiterals,Layout/LineLength
when 'windows_8.1_pro' when 'windows_8.1_pro'
'8.1' '8.1'
when 'windows_server_2022_datacenter'
'2022-server'
when 'windows_server_2019_datacenter' when 'windows_server_2019_datacenter'
'2019-server' '2019-server'
when 'windows_server_2016_datacenter' when 'windows_server_2016_datacenter'
@ -93,46 +87,4 @@ class SystemResource < Inspec.resource(1)
build_platform_release.split('.')[0] build_platform_release.split('.')[0]
end end
end end
# rubocop:disable Metrics/MethodLength,Metrics/CyclomaticComplexity
def build_platform_codename
case build_platform_finger
when 'ubuntu-22.04'
'jammy'
when 'ubuntu-20.04'
'focal'
when 'ubuntu-18.04'
'bionic'
when 'debian-11'
'bullseye'
when 'debian-10'
'buster'
when 'debian-9'
'stretch'
when 'almalinux-8'
"AlmaLinux #{build_platform_release} (Arctic Sphynx)"
when 'amazonlinux-2'
'Amazon Linux 2'
when 'arch-base-latest'
'Arch Linux'
when 'centos-7'
'CentOS Linux 7 (Core)'
when 'centos-8'
'CentOS Stream 8'
when 'opensuse-tumbleweed'
'openSUSE Tumbleweed'
when 'opensuse-15'
"openSUSE Leap #{build_platform_release}"
when 'oraclelinux-8', 'oraclelinux-7'
"Oracle Linux Server #{build_platform_release}"
when 'gentoo-2-sysd', 'gentoo-2-sysv'
'Gentoo/Linux'
when 'rockylinux-8'
"Rocky Linux #{build_platform_release} (Green Obsidian)"
else
''
end
end
# rubocop:enable Metrics/MethodLength,Metrics/CyclomaticComplexity
end end
# rubocop:enable Metrics/ClassLength