This commit is contained in:
N committed 2020-06-13 20:33:36 +01:00
commit 419352f6ce
40 files changed
+1239 -247

No files matched your search

@@ -1,28 +0,0 @@
# frozen_string_literal: true
version =
case platform[:family]
when 'redhat'
case platform[:name]
when 'amazon'
'2017.7.8-1.el7'
when 'centos'
'2017.7.8-1.el6'
end
when 'debian'
'2017.7.8+ds-1'
end
control 'salt packages' do
title 'should be installed'
%w[
salt-master
salt-minion
].each do |p|
describe package(p) do
it { should be_installed }
its('version') { should eq version }
end
end
end
@@ -1,23 +1,17 @@
# frozen_string_literal: true
version =
case platform[:family]
when 'redhat'
'2019.2.3-1.el7'
when 'debian'
'2019.2.3+ds-1'
end
control 'salt packages' do
title 'should be installed'
version = '2019.2.5'
%w[
salt-master
salt-minion
].each do |p|
describe package(p) do
it { should be_installed }
its('version') { should eq version }
its('version') { should match(/^#{version}/) }
end
end
end
@@ -8,6 +8,7 @@ control 'salt services' do
salt-minion
].each do |p|
describe service(p) do
it { should be_installed }
it { should be_enabled }
it { should be_running }
end
@@ -1,5 +1,6 @@
# frozen_string_literal: true
<<<<<<< HEAD
version =
case platform[:family]
when 'redhat'
@@ -15,16 +16,20 @@ version =
'2019.2.3+ds-1'
end
=======
>>>>>>> 43dd0c7efc57c6da83477218ba1038bcf42ba945
control 'salt packages' do
title 'should be installed'
version = '2019.2.5'
%w[
salt-master
salt-minion
].each do |p|
describe package(p) do
it { should be_installed }
its('version') { should eq version }
its('version') { should match(/^#{version}/) }
end
end
end
@@ -8,6 +8,7 @@ control 'salt services' do
salt-minion
].each do |p|
describe service(p) do
it { should be_installed }
it { should be_enabled }
it { should be_running }
end
@@ -1,16 +1,16 @@
# InSpec Profile: `v201707-py2`
# InSpec Profile: `v3000-py2`
This shows the implementation of the `v201707-py2` InSpec [profile](https://github.com/inspec/inspec/blob/master/docs/profiles.md).
This shows the implementation of the `v3000-py2` InSpec [profile](https://github.com/inspec/inspec/blob/master/docs/profiles.md).
## Verify a profile
InSpec ships with built-in features to verify a profile structure.
```bash
$ inspec check v201707-py2
$ inspec check v3000-py2
Summary
-------
Location: v201707-py2
Location: v3000-py2
Profile: profile
Controls: 4
Timestamp: 2019-06-24T23:09:01+00:00
@@ -28,7 +28,7 @@ Warnings
To run all **supported** controls on a local machine use `inspec exec /path/to/profile`.
```bash
$ inspec exec v201707-py2
$ inspec exec v3000-py2
..
Finished in 0.0025 seconds (files took 0.12449 seconds to load)
@@ -40,7 +40,7 @@ Finished in 0.0025 seconds (files took 0.12449 seconds to load)
To run one control from the profile use `inspec exec /path/to/profile --controls name`.
```bash
$ inspec exec v201707-py2 --controls package
$ inspec exec v3000-py2 --controls package
.
Finished in 0.0025 seconds (files took 0.12449 seconds to load)
@@ -1,23 +1,17 @@
# frozen_string_literal: true
version =
case platform[:family]
when 'redhat'
'2018.3.5-1.el7'
when 'debian'
'2018.3.5+ds-1'
end
control 'salt packages' do
title 'should be installed'
version = '3000.3'
%w[
salt-master
salt-minion
].each do |p|
describe package(p) do
it { should be_installed }
its('version') { should eq version }
its('version') { should match(/^#{version}/) }
end
end
end
@@ -8,6 +8,7 @@ control 'salt services' do
salt-minion
].each do |p|
describe service(p) do
it { should be_installed }
it { should be_enabled }
it { should be_running }
end
@@ -1,11 +1,11 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
name: v201803-py2
name: v3000-py2
title: salt formula
maintainer: SaltStack Formulas
license: Apache-2.0
summary: Verify that Salt `v201803-py2` is setup and configured
summary: Verify that Salt `v3000-py2` is setup and configured
supports:
- platform-name: debian
- platform-name: ubuntu
@@ -1,16 +1,16 @@
# InSpec Profile: `v201803-py2`
# InSpec Profile: `v3000-py3`
This shows the implementation of the `v201803-py2` InSpec [profile](https://github.com/inspec/inspec/blob/master/docs/profiles.md).
This shows the implementation of the `v3000-py3` InSpec [profile](https://github.com/inspec/inspec/blob/master/docs/profiles.md).
## Verify a profile
InSpec ships with built-in features to verify a profile structure.
```bash
$ inspec check v201803-py2
$ inspec check v3000-py3
Summary
-------
Location: v201803-py2
Location: v3000-py3
Profile: profile
Controls: 4
Timestamp: 2019-06-24T23:09:01+00:00
@@ -28,7 +28,7 @@ Warnings
To run all **supported** controls on a local machine use `inspec exec /path/to/profile`.
```bash
$ inspec exec v201803-py2
$ inspec exec v3000-py3
..
Finished in 0.0025 seconds (files took 0.12449 seconds to load)
@@ -40,7 +40,7 @@ Finished in 0.0025 seconds (files took 0.12449 seconds to load)
To run one control from the profile use `inspec exec /path/to/profile --controls name`.
```bash
$ inspec exec v201803-py2 --controls package
$ inspec exec v3000-py3 --controls package
.
Finished in 0.0025 seconds (files took 0.12449 seconds to load)
@@ -0,0 +1,17 @@
# frozen_string_literal: true
control 'salt packages' do
title 'should be installed'
version = '3000.3'
%w[
salt-master
salt-minion
].each do |p|
describe package(p) do
it { should be_installed }
its('version') { should match(/^#{version}/) }
end
end
end
@@ -8,6 +8,7 @@ control 'salt services' do
salt-minion
].each do |p|
describe service(p) do
it { should be_installed }
it { should be_enabled }
it { should be_running }
end
@@ -1,11 +1,11 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
name: v201707-py2
name: v3000-py3
title: salt formula
maintainer: SaltStack Formulas
license: Apache-2.0
summary: Verify that Salt `v201707-py2` is setup and configured
summary: Verify that Salt `v3000-py3` is setup and configured
supports:
- platform-name: debian
- platform-name: ubuntu
@@ -2,4 +2,4 @@
# vim: ft=yaml
---
salt:
release: '2017.7'
release: '3000'
@@ -2,4 +2,5 @@
# vim: ft=yaml
---
salt:
release: '2018.3'
release: '3000'
py_ver: 'py3'