Skip to content

Commit

Permalink
feat(formula): add nut-formula
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Jun 1, 2020
1 parent eb42247 commit 5253c03
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 9 deletions.
1 change: 1 addition & 0 deletions pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ ssf:
- nifi
- node
- ntp
- nut
- openldap
- openssh
- openvpn
Expand Down
5 changes: 3 additions & 2 deletions ssf/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,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(kitchen+travis): use latest pre-salted images"
body: '* Automated using https://github.com/myii/ssf-formula/pull/210'
title: "chore: use standardised structure"
body: '* Semi-automated using https://github.com/myii/ssf-formula/pull/211'
# yamllint enable rule:line-length rule:quoted-strings
github:
owner: 'saltstack-formulas'
Expand Down Expand Up @@ -556,6 +556,7 @@ ssf:
<<: *isk_suite_default
name: 'repo'
ntp: *formula_default
nut: *formula_default
openldap: *formula_default
openssh: *formula_default
openvpn: *formula_default
Expand Down
3 changes: 2 additions & 1 deletion ssf/files/tofs_template-formula/docs/CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ These formulas are already compatible with semantic-release *and* have global ``
#. `mongodb-formula <https://github.com/saltstack-formulas/mongodb-formula>`_
#. `nginx-formula <https://github.com/saltstack-formulas/nginx-formula>`_
#. `nifi-formula <https://github.com/saltstack-formulas/nifi-formula>`_
#. `nut-formula <https://github.com/saltstack-formulas/nut-formula>`_
#. `openldap-formula <https://github.com/saltstack-formulas/openldap-formula>`_
#. `openvpn-formula <https://github.com/saltstack-formulas/openvpn-formula>`_
#. `packages-formula <https://github.com/saltstack-formulas/packages-formula>`_
Expand All @@ -203,7 +204,7 @@ These formulas are already compatible with semantic-release *and* have global ``

These formulas are also compatible with semantic-release:

38. `apache-formula <https://github.com/saltstack-formulas/apache-formula>`_
39. `apache-formula <https://github.com/saltstack-formulas/apache-formula>`_
#. `apt-cacher-formula <https://github.com/saltstack-formulas/apt-cacher-formula>`_
#. `cert-formula <https://github.com/saltstack-formulas/cert-formula>`_
#. `chrony-formula <https://github.com/saltstack-formulas/chrony-formula>`_
Expand Down
51 changes: 45 additions & 6 deletions ssf/formulas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ ssf_node_anchors:
- centos
- fedora
- amazon
supports_all_except_amazon: &supports_all_except_amazon
- debian
- ubuntu
- centos
- fedora
- opensuse
- suse
- freebsd
- arch
provisioner:
dependencies_epel: &dependencies_epel
- name: 'epel'
Expand Down Expand Up @@ -2403,12 +2412,42 @@ ssf:
key-duplicates:
ignore: *ignore_pillar_example
semrel_files: *semrel_files_default
# nut:
# context:
# codeowners:
# entries:
# global:
# - '*': '@javierbertoli'
nut:
context:
codeowners:
entries:
global:
- '*': '@javierbertoli'
git:
github:
repo: 'nut-formula'
inspec_suites_kitchen:
0:
inspec_yml:
summary: >-
Verify that the nut formula is setup and configured correctly
supports: *supports_all_except_amazon
provisioner:
pillars_from_files:
- .sls: 'test/salt/pillar/default.sls'
platforms: *platforms_new
platforms_matrix:
# [os , os_ver, salt_ver, py_ver, inspec_suite]
# - [debian , 10 , master, 3, default]
- [ubuntu , 20.04, master, 3, default]
# - [centos , 8 , master, 3, default]
- [fedora , 32 , master, 3, default]
- [debian , 10 , 3000.3, 3, default]
- [centos , 7 , 3000.3, 3, default]
- [opensuse/leap, 15.2 , 3000.3, 3, default]
# # - [amazonlinux , 2 , 3000.3, 3, default]
# # - [arch-base , latest, 2019.2, 2, default]
use_tofs: true
yamllint:
ignore:
additional:
- test/salt/pillar/default.sls
semrel_files: *semrel_files_default
openldap:
context:
codeowners:
Expand Down

0 comments on commit 5253c03

Please sign in to comment.