Skip to content

Commit

Permalink
feat(apache): review PR 283
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Oct 6, 2020
1 parent 5bbaf50 commit cd4ddfc
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 19 deletions.
7 changes: 5 additions & 2 deletions ssf/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ ssf_node_anchors:
# An alternative method could be to use:
# `git describe --abbrev=0 --tags`
# yamllint disable rule:line-length rule:quoted-strings
title: "ci(pre-commit): enable/disable '`'rstcheck'`' as relevant [skip ci]"
body: '* Automated using https://github.com/myii/ssf-formula/pull/262'
title: "chore: standardise structure [skip ci]"
body: '* Automated using https://github.com/myii/ssf-formula/pull/264'
# yamllint enable rule:line-length rule:quoted-strings
github:
owner: 'saltstack-formulas'
Expand Down Expand Up @@ -384,6 +384,9 @@ ssf:
1:
<<: *isk_suite_default
name: 'modules'
2:
<<: *isk_suite_default
name: 'arch'
apt:
<<: *formula_default
context:
Expand Down
3 changes: 2 additions & 1 deletion ssf/files/tofs_apache-formula/.salt-lint
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ rules:
ignore: |
apache/files/Debian/ssl.conf.jinja
apache/files/FreeBSD/mod_ssl.conf.jinja
apache/files/tls-defaults.conf.jinja
apache/files/ssl/tls-defaults.conf.jinja
test/salt/pillar/modules.sls
skip_list:
# Using `salt-lint` for linting other files as well, such as Jinja macros/templates
- 205 # Use ".sls" as a Salt State file extension
Expand Down
59 changes: 43 additions & 16 deletions ssf/formulas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,10 @@ ssf:
# - '*': '@javierbertoli'
apache:
context:
codeowners:
entries:
global:
- '*': '@noelmcloughlin'
git:
github:
repo: 'apache-formula'
Expand All @@ -610,37 +614,60 @@ ssf:
provisioner:
pillars_from_files:
- .sls: 'test/salt/pillar/default.sls'
1:
inspec_yml:
summary: >-
Verify that the apache formula manages modules correctly
provisioner:
pillars_from_files:
- .sls: 'test/salt/pillar/modules.sls'
state_top:
- '*':
- .
- .config
1:
- .config.modules
- .config.certificates
- .config.modules.mod_security
- .config.modules.server_status
2:
inspec_yml:
summary: >-
Verify that the apache formula manages modules correctly
includes: *platforms_os_arch_base
# includes: *platforms_os_arch_base_new
provisioner:
pillars_from_files:
- .sls: 'test/salt/pillar/modules.sls'
state_top:
- '*':
- .
- .mod_security
- .server_status
# TODO: Enable this once the matrix is updated to use the `modules` suite
# inspec_suites_matrix:
# - default
# - modules
- .config.modules
- .config.certificates
- .config.modules.mod_security
- .config.modules.server_status
verifier:
inspec_tests:
- nomodsecurity
inspec_suites_matrix:
- default
- modules
- arch
platforms_matrix:
# Comments in `platforms` apply here, too
# [os , os_ver, salt_ver, py_ver, inspec_suite]
- [debian , 10 , master, 3, default]
- [ubuntu , 18.04, 2019.2, 3, default]
- [amazonlinux , 2 , 2019.2, 3, default]
# - [arch-base , latest, 2019.2, 2, default]
- [fedora , 30 , 2018.3, 3, default]
# - [opensuse/leap, 15.1 , 2018.3, 2, default]
- [centos , 6 , 2017.7, 2, default]
- [debian , 10 , master, 3, modules]
- [centos , 8 , master, 3, modules]
- [fedora , 31 , master, 3, modules]
- [opensuse/leap, 15.1 , master, 3, modules]
- [amazonlinux , 2 , master, 3, default]
- [ubuntu , 18.04, 2019.2, 3, modules]
- [centos , 7 , 2019.2, 2, modules]
- [arch-base , latest, 2017.7, 2, arch]
pre_commit: *pre_commit_do_not_use_rstcheck
use_tofs: true
yamllint:
ignore:
additional:
- test/salt/pillar/modules.sls
- pillar.example
semrel_files: *semrel_files_default
apt:
context:
Expand Down
4 changes: 4 additions & 0 deletions ssf/libcimatrix.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@
salt_ver | replace('.', '-'),
py_ver,
) %}
{%- if semrel_formula == 'apache'
and [suite_name, os, os_ver, salt_ver] == ['default', 'amazonlinux', 2, 'master'] %}
# https://community.letsencrypt.org/t/localhost-crt-does-not-exist-or-is-empty/103979
{%- endif %}
{{ comment }}- {{ instance_and_env }}{{ instance }}
{%- endif %}
{%- endif %}
Expand Down

0 comments on commit cd4ddfc

Please sign in to comment.