Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6c2f16
commit ba95e46
Showing
26 changed files
with
284 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
driver: | ||
name: vagrant | ||
|
||
provisioner: | ||
name: chef_solo | ||
|
||
verifier: | ||
name: inspec | ||
sudo: true | ||
|
||
platforms: | ||
- name: centos-7.1 | ||
- name: centos-6.7 | ||
- name: centos-6.7-i386 | ||
- name: centos-5.11 | ||
- name: centos-5.11-i386 | ||
- name: debian-6.0.10 | ||
- name: debian-6.0.10-i386 | ||
- name: debian-7.8 | ||
- name: debian-7.8-i386 | ||
- name: debian-8.1 | ||
- name: debian-8.1-i386 | ||
- name: fedora-21 | ||
- name: fedora-21-i386 | ||
- name: fedora-22 | ||
- name: freebsd-9.3 | ||
- name: freebsd-10.2 | ||
- name: opensuse-13.2-x86_64 | ||
- name: opensuse-13.2-i386 | ||
- name: ubuntu-14.04 | ||
- name: ubuntu-14.04-i386 | ||
- name: ubuntu-12.04 | ||
- name: ubuntu-12.04-i386 | ||
- name: ubuntu-10.04 | ||
- name: ubuntu-10.04-i386 | ||
- name: mint-17.2-cinnamon | ||
driver_config: | ||
box: artem-sidorenko/mint-17.2-cinnamon | ||
|
||
suites: | ||
- name: default | ||
run_list: | ||
- recipe[os_prepare] | ||
attributes: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,80 @@ | ||
--- | ||
driver: | ||
name: vagrant | ||
name: dokken | ||
chef_version: 12.5.1 | ||
privileged: true # because Docker and SystemD/Upstart | ||
|
||
transport: | ||
name: dokken | ||
|
||
provisioner: | ||
name: chef_solo | ||
name: dokken | ||
|
||
verifier: | ||
name: inspec | ||
sudo: true | ||
|
||
platforms: | ||
- name: centos-7.1 | ||
- name: centos-6.7 | ||
- name: centos-6.7-i386 | ||
- name: centos-5.11 | ||
- name: centos-5.11-i386 | ||
- name: debian-6.0.10 | ||
- name: debian-6.0.10-i386 | ||
- name: debian-7.8 | ||
- name: debian-7.8-i386 | ||
- name: debian-8.1 | ||
- name: debian-8.1-i386 | ||
- name: fedora-21 | ||
- name: fedora-21-i386 | ||
- name: fedora-22 | ||
- name: freebsd-9.3 | ||
- name: freebsd-10.2 | ||
- name: opensuse-13.2-x86_64 | ||
- name: opensuse-13.2-i386 | ||
- name: ubuntu-14.04 | ||
- name: ubuntu-14.04-i386 | ||
- name: ubuntu-12.04 | ||
- name: ubuntu-12.04-i386 | ||
- name: ubuntu-10.04 | ||
- name: ubuntu-10.04-i386 | ||
- name: mint-17.2-cinnamon | ||
driver_config: | ||
box: artem-sidorenko/mint-17.2-cinnamon | ||
- name: ubuntu-12.04 | ||
driver: | ||
image: ubuntu:12.04 | ||
- name: ubuntu-14.04 | ||
driver: | ||
image: ubuntu:14.04 | ||
- name: ubuntu-15.10 | ||
driver: | ||
image: ubuntu:15.10 | ||
pid_one_command: /bin/systemd | ||
- name: ubuntu-16.04 | ||
driver: | ||
image: ubuntu:16.04 | ||
intermediate_instructions: | ||
- RUN /usr/bin/apt-get update | ||
pid_one_command: /bin/systemd | ||
- name: centos-6.6 | ||
driver: | ||
image: centos:6.6 | ||
- name: centos-6.7 | ||
driver: | ||
image: centos:6.7 | ||
intermediate_instructions: | ||
- RUN yum install -y initscripts | ||
- name: centos-7 | ||
driver: | ||
image: centos:7 | ||
pid_one_command: /usr/lib/systemd/systemd | ||
- name: oracle-6.6 | ||
driver: | ||
image: oraclelinux:6.6 | ||
- name: oracle-6.7 | ||
driver: | ||
image: oraclelinux:6.7 | ||
- name: oracle-7.1 | ||
driver: | ||
image: oraclelinux:7.1 | ||
pid_one_command: /usr/lib/systemd/systemd | ||
- name: debian-7 | ||
driver: | ||
image: debian:7 | ||
intermediate_instructions: | ||
- RUN /usr/bin/apt-get update | ||
- RUN /usr/bin/apt-get install -y procps | ||
- name: debian-8 | ||
driver: | ||
image: debian:8 | ||
intermediate_instructions: | ||
- RUN /usr/bin/apt-get update | ||
- RUN /usr/bin/apt-get install -y procps | ||
pid_one_command: /bin/systemd | ||
|
||
suites: | ||
- name: default | ||
run_list: | ||
- recipe[os_prepare] | ||
attributes: | ||
- name: default | ||
run_list: | ||
- recipe[apt] | ||
- recipe[yum] | ||
- recipe[ssh-hardening] | ||
- recipe[os_prepare] | ||
attributes: | ||
osprepare: | ||
docker: true | ||
application: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
default['osprepare']['docker'] = false | ||
default['osprepare']['application'] = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
# encoding: utf-8 | ||
|
||
if os.linux? | ||
# TODO: do not run those tests on docker yet | ||
return if ENV['DOCKER'] | ||
return unless os.linux? | ||
|
||
# direct access to params of apache conf | ||
describe apache_conf do | ||
its('LogLevel') { should eq 'warn' } | ||
its('MaxKeepAliveRequests') { should eq '100' } | ||
end | ||
# direct access to params of apache conf | ||
describe apache_conf do | ||
its('LogLevel') { should cmp 'warn' } | ||
its('MaxKeepAliveRequests') { should cmp 100 } | ||
end | ||
|
||
# only read one param | ||
describe apache_conf.params('LogLevel') do | ||
it { should include 'warn' } | ||
end | ||
# only read one param | ||
describe apache_conf.params('LogLevel') do | ||
it { should include 'warn' } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
# encoding: utf-8 | ||
|
||
# Test kernel modules on all linux systems | ||
if os.linux? | ||
# TODO: do not run those tests on docker yet | ||
return if ENV['DOCKER'] | ||
return unless os.linux? | ||
|
||
describe kernel_module('video') do | ||
it { should be_loaded } | ||
end | ||
# Test kernel modules on all linux systems | ||
describe kernel_module('video') do | ||
it { should be_loaded } | ||
end | ||
|
||
describe kernel_module('bridge') do | ||
it { should_not be_loaded } | ||
end | ||
describe kernel_module('bridge') do | ||
it { should_not be_loaded } | ||
end | ||
|
||
describe kernel_module('dhcp') do | ||
it { should_not be_loaded } | ||
end | ||
describe kernel_module('dhcp') do | ||
it { should_not be_loaded } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.