Skip to content

Commit

Permalink
feat(formula): add node-formula
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed Apr 15, 2020
1 parent b0dd523 commit e5c6890
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 2 deletions.
1 change: 1 addition & 0 deletions pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ ssf:
- nfs
- nginx
- nifi
- node
- ntp
- openldap
- openssh
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 rule:quoted-strings
title: "ci(kitchen+travis): adjust matrix to add '`'3000.1'`' & remove '`'2017.7'`'"
body: '* Automated using https://github.com/myii/ssf-formula/pull/154'
title: "feat(semantic-release): implement for this formula"
body: '* Checked using https://github.com/myii/ssf-formula/pull/150'
# yamllint enable rule:line-length rule:quoted-strings
github:
owner: 'saltstack-formulas'
Expand Down Expand Up @@ -352,6 +352,21 @@ ssf:
nfs: *formula_default
nginx: *formula_default
nifi: *formula_default
node:
<<: *formula_default
context:
<<: *context_default
inspec_suites_kitchen:
<<: *isk_default
1:
<<: *isk_suite_default
name: 'archive'
2:
<<: *isk_suite_default
name: 'source'
3:
<<: *isk_suite_default
name: 'repo'
ntp: *formula_default
openldap: *formula_default
openssh: *formula_default
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 @@ -198,6 +198,7 @@ These formulas are already compatible with semantic-release:
#. `nfs-formula <https://github.com/saltstack-formulas/nfs-formula>`_
#. `nginx-formula <https://github.com/saltstack-formulas/nginx-formula>`_
#. `nifi-formula <https://github.com/saltstack-formulas/nifi-formula>`_
#. `node-formula <https://github.com/saltstack-formulas/node-formula>`_
#. `ntp-formula <https://github.com/saltstack-formulas/ntp-formula>`_
#. `openldap-formula <https://github.com/saltstack-formulas/openldap-formula>`_
#. `openssh-formula <https://github.com/saltstack-formulas/openssh-formula>`_
Expand Down
98 changes: 98 additions & 0 deletions ssf/formulas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,104 @@ ssf:
- [centos , 7 , 2019.2, 3, default]
use_tofs: true
semrel_files: *semrel_files_default
node:
context:
git:
github:
repo: 'node-formula'
inspec_suites_kitchen:
0:
inspec_yml:
summary: >-
Verify that the node formula is setup and configured correctly
provisioner:
pillars_from_files:
- .sls: 'test/salt/pillar/default.sls'
1:
inspec_yml:
summary: >-
Verify that the node formula is setup and configured correctly
provisioner:
pillars_from_files:
- .sls: 'test/salt/pillar/archive.sls'
2:
inspec_yml:
summary: >-
Verify that the node formula is setup and configured correctly
provisioner:
pillars_from_files:
- .sls: 'test/salt/pillar/source.sls'
3:
provisioner:
pillars_from_files:
- .sls: 'test/salt/pillar/repo.sls'
verifier: *verifier_inspec_tests_default
inspec_suites_matrix:
- default
- archive
- source
- repo
platforms: *platforms_new
platforms_matrix:
# Based on `*platforms_matrix_new`
# [os , os_ver, salt_ver, py_ver, inspec_suite]
- [debian , 10 , master, 3, default]
- [centos , 8 , master, 3, default]
- [ubuntu , 18.04, 3000.1, 3, default]
- [opensuse/leap, 15.1 , 3000.1, 3, default]
- [amazonlinux , 2 , 3000.1, 3, archive]
- [fedora , 31 , 2019.2, 3, default]
- [arch-base , latest, 2018.3, 2, default]
# To deal with excessive instances when mimicking `kitchen list -b`
# If values are set, only use these as commented entries in the matrix
platforms_matrix_commented_includes:
# [os , os_ver, salt_ver, py_ver, inspec_suite]
- [debian , 10 , master, 3, default]
- [debian , 10 , master, 3, archive]
- [debian , 10 , master, 3, source]
- [debian , 10 , master, 3, repo]
- [ubuntu , 18.04, master, 3, default]
- [centos , 8 , master, 3, default]
- [fedora , 31 , master, 3, default]
- [opensuse/leap, 15.1 , master, 3, default]
- [amazonlinux , 2 , master, 3, default]
- [arch-base , latest, master, 2, default]
- [debian , 10 , 3000.1, 3, default]
- [ubuntu , 18.04, 3000.1, 3, default]
- [centos , 8 , 3000.1, 3, default]
- [fedora , 31 , 3000.1, 3, default]
- [opensuse/leap, 15.1 , 3000.1, 3, default]
- [amazonlinux , 2 , 3000.1, 3, default]
- [arch-base , latest, 3000.1, 2, default]
- [debian , 10 , 2019.2, 3, default]
- [debian , 9 , 2019.2, 3, default]
- [ubuntu , 18.04, 2019.2, 3, default]
- [ubuntu , 16.04, 2019.2, 3, default]
- [centos , 8 , 2019.2, 3, default]
- [centos , 7 , 2019.2, 3, default]
- [fedora , 31 , 2019.2, 3, default]
- [opensuse/leap, 15.1 , 2019.2, 3, default]
- [amazonlinux , 2 , 2019.2, 3, default]
- [ubuntu , 18.04, 2019.2, 2, default]
- [amazonlinux , 1 , 2019.2, 2, default]
- [arch-base , latest, 2019.2, 2, default]
- [centos , 7 , 2018.3, 3, default]
- [fedora , 30 , 2018.3, 3, default]
- [debian , 9 , 2018.3, 2, default]
- [debian , 8 , 2018.3, 2, default]
- [ubuntu , 18.04, 2018.3, 2, default]
- [ubuntu , 16.04, 2018.3, 2, default]
- [centos , 6 , 2018.3, 2, default]
- [opensuse/leap, 15.1 , 2018.3, 2, default]
- [amazonlinux , 1 , 2018.3, 2, default]
- [arch-base , latest, 2018.3, 2, default]
# Use this to start adopting the latest `platforms_matrix`
use_tofs: true
yamllint:
ignore:
additional:
- node/osfamilymap.yaml
semrel_files: *semrel_files_default
ntp:
context:
git:
Expand Down

0 comments on commit e5c6890

Please sign in to comment.