Skip to content

Commit

Permalink
feat(system.rb): add support for mac_os_x
Browse files Browse the repository at this point in the history
  • Loading branch information
myii committed May 17, 2022
1 parent 35f07ea commit 2780d25
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssf/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ ssf_node_anchors:
upstream: 'upstream'
commit:
# yamllint disable rule:line-length rule:quoted-strings
title: "ci(vagrant): use '`'linked_clone'`' at all times (inc. CI) [skip ci]"
body: '* Automated using https://github.com/myii/ssf-formula/pull/441'
title: "test(system.rb): add support for '`'mac_os_x'`' [skip ci]"
body: '* Automated using https://github.com/myii/ssf-formula/pull/442'
# yamllint enable rule:line-length rule:quoted-strings
github:
owner: 'saltstack-formulas'
Expand Down
1 change: 1 addition & 0 deletions ssf/files/default/test/integration/share/inspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ supports:
- platform-name: gentoo
- platform-name: almalinux
- platform-name: rocky
- platform-name: mac_os_x
- platform: windows
2 changes: 2 additions & 0 deletions ssf/files/default/test/integration/share/libraries/system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ def build_platform_release
'base-latest'
when 'gentoo'
"#{inspec.platform[:release].split('.')[0]}-#{derive_gentoo_init_system}"
when 'mac_os_x'
inspec.command('sw_vers -productVersion').stdout.to_s
when 'opensuse'
# rubocop:disable Style/NumericLiterals,Layout/LineLength
inspec.platform[:release].to_i > 20210101 ? 'tumbleweed' : inspec.platform[:release]
Expand Down

0 comments on commit 2780d25

Please sign in to comment.