Skip to content

Commit

Permalink
feat(formula): add letsencrypt-formula
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Oct 24, 2019
1 parent fbd537a commit 39bd576
Show file tree
Hide file tree
Showing 4 changed files with 110 additions and 2 deletions.
1 change: 1 addition & 0 deletions pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ ssf:
- iptables
- iscsi
- keepalived
- letsencrypt
- libvirt
- locale
- logrotate
Expand Down
19 changes: 17 additions & 2 deletions ssf/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ ssf_node_anchors:
# An alternative method could be to use:
# `git describe --abbrev=0 --tags`
# yamllint disable rule:line-length
title: 'ci(kitchen): use `debian-10-master-py3` instead of `develop` [skip ci]'
body: '* Automated using https://github.com/myii/ssf-formula/pull/84'
title: 'feat(semantic-release): implement for this formula'
body: '* Automated using https://github.com/myii/ssf-formula/pull/85'
# yamllint enable rule:line-length
github:
owner: 'saltstack-formulas'
Expand Down Expand Up @@ -309,6 +309,21 @@ ssf:
<<: *isk_suite_default
name: 'centarch'
keepalived: *formula_default
letsencrypt:
<<: *formula_default
context:
<<: *context_default
inspec_suites_kitchen:
<<: *isk_default
0:
<<: *isk_suite_default
name: 'git'
1:
<<: *isk_suite_default
name: 'deb'
2:
<<: *isk_suite_default
name: 'rpm'
libvirt:
<<: *formula_default
context:
Expand Down
1 change: 1 addition & 0 deletions ssf/files/tofs_template-formula/docs/CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ These formulas are already compatible with semantic-release:
* `iptables-formula <https://github.com/saltstack-formulas/iptables-formula>`_
* `iscsi-formula <https://github.com/saltstack-formulas/iscsi-formula>`_
* `keepalived-formula <https://github.com/saltstack-formulas/keepalived-formula>`_
* `letsencrypt-formula <https://github.com/saltstack-formulas/letsencrypt-formula>`_
* `libvirt-formula <https://github.com/saltstack-formulas/libvirt-formula>`_
* `locale-formula <https://github.com/saltstack-formulas/locale-formula>`_
* `logrotate-formula <https://github.com/saltstack-formulas/logrotate-formula>`_
Expand Down
91 changes: 91 additions & 0 deletions ssf/formulas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,18 @@ ssf_node_anchors:
- [arch-base , latest, 2018.3, 2]
- [centos , 6 , 2017.7, 2]
- [arch-base , latest, 2017.7, 2]
platforms_2017_7: &platforms_2017_7
# [os , os_ver, salt_ver, py_ver]
# - [debian , 9 , 2017.7, 2]
- [debian , 8 , 2017.7, 2]
- [ubuntu , 16.04, 2017.7, 2]
- [centos , 6 , 2017.7, 2]
- [fedora , 29 , 2017.7, 2]
# - [fedora , 28 , 2017.7, 2]
- [opensuse/leap, 15 , 2017.7, 2]
# - [opensuse/leap, 42 , 2017.7, 2]
- [amazonlinux , 2 , 2017.7, 2]
- [arch-base , latest, 2017.7, 2]
platforms_matrix_osfamily_suites: &platforms_matrix_osfamily_suites
# [os , os_ver, salt_ver, py_ver, inspec_suite]
- [debian , 10 , master, 3, debian]
Expand Down Expand Up @@ -770,6 +782,85 @@ ssf:
- ipvsadm
use_tofs: true
semrel_files: *semrel_files_default
letsencrypt:
context:
git:
github:
repo: 'letsencrypt-formula'
inspec_suites_kitchen:
0:
# `2017.7` don't have the `git.cloned` state so will have to use one of
# the other suites
excludes: *platforms_2017_7
inspec_yml:
summary: >-
Verify that the letsencrypt formula is setup and configured correctly
using `git`
provisioner:
pillars:
- '*':
- .
pillars_from_files:
- .sls: 'test/salt/pillar/git.sls'
state_top:
- '*':
- .install
- .config
1:
includes: *platforms_os_debian
inspec_yml:
summary: >-
Verify that the letsencrypt formula is setup and configured correctly
on Debian
provisioner:
dependencies:
- name: 'apt'
repo: 'git'
source: 'https://github.com/saltstack-formulas/apt-formula.git'
pillars:
- '*':
- apt
- .
pillars_from_files:
- apt.sls: 'test/salt/pillar/apt.sls'
- .sls: 'test/salt/pillar/deb.sls'
state_top:
- '*':
- apt.repositories
- apt.preferences
- apt.update
- .install
- .config
2:
includes: *platforms_osfamily_redhat
inspec_yml:
summary: >-
Verify that the letsencrypt formula is setup and configured correctly
on RedHat (and derivatives)
provisioner:
pillars:
- '*':
- .
pillars_from_files:
- .sls: 'test/salt/pillar/rpm.sls'
state_top:
- '*':
- .install
- .config
inspec_suites_matrix:
- git
- deb
- rpm
platforms_matrix:
# [os , os_ver, salt_ver, py_ver, inspec_suite]
- [debian , 10 , master, 3, deb]
- [ubuntu , 18.04, 2019.2, 3, git]
- [centos , 7 , 2019.2, 3, rpm]
- [arch-base , latest, 2019.2, 2, git]
- [fedora , 29 , 2018.3, 2, rpm]
- [opensuse/leap, 15 , 2018.3, 2, git]
- [amazonlinux , 2 , 2017.7, 2, rpm]
semrel_files: *semrel_files_default
libvirt:
context:
git:
Expand Down

0 comments on commit 39bd576

Please sign in to comment.