mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
Merge pull request #1369 from chef/chris-rock/integration-ssh-test
call ssh cookbook from prepare cookbook
This commit is contained in:
commit
c193a38f69
7 changed files with 11 additions and 4 deletions
|
@ -70,5 +70,4 @@ platforms:
|
||||||
suites:
|
suites:
|
||||||
- name: default
|
- name: default
|
||||||
run_list:
|
run_list:
|
||||||
- recipe[ssh-hardening]
|
|
||||||
- recipe[os_prepare]
|
- recipe[os_prepare]
|
||||||
|
|
|
@ -86,6 +86,5 @@ suites:
|
||||||
run_list:
|
run_list:
|
||||||
- recipe[apt]
|
- recipe[apt]
|
||||||
- recipe[yum]
|
- recipe[yum]
|
||||||
- recipe[ssh-hardening]
|
|
||||||
- recipe[os_prepare]
|
- recipe[os_prepare]
|
||||||
attributes:
|
attributes:
|
||||||
|
|
|
@ -33,6 +33,5 @@ suites:
|
||||||
run_list:
|
run_list:
|
||||||
- recipe[apt]
|
- recipe[apt]
|
||||||
- recipe[yum]
|
- recipe[yum]
|
||||||
- recipe[ssh-hardening]
|
|
||||||
- recipe[os_prepare]
|
- recipe[os_prepare]
|
||||||
attributes:
|
attributes:
|
||||||
|
|
|
@ -79,7 +79,6 @@ suites:
|
||||||
run_list:
|
run_list:
|
||||||
- recipe[apt]
|
- recipe[apt]
|
||||||
- recipe[yum]
|
- recipe[yum]
|
||||||
- recipe[ssh-hardening]
|
|
||||||
- recipe[os_prepare]
|
- recipe[os_prepare]
|
||||||
attributes:
|
attributes:
|
||||||
osprepare:
|
osprepare:
|
||||||
|
|
|
@ -11,3 +11,4 @@ depends 'runit'
|
||||||
depends 'postgresql'
|
depends 'postgresql'
|
||||||
depends 'httpd', '~> 0.2'
|
depends 'httpd', '~> 0.2'
|
||||||
depends 'windows'
|
depends 'windows'
|
||||||
|
depends 'ssh-hardening'
|
||||||
|
|
|
@ -7,6 +7,9 @@
|
||||||
# container preparation
|
# container preparation
|
||||||
include_recipe('os_prepare::prep_container')
|
include_recipe('os_prepare::prep_container')
|
||||||
|
|
||||||
|
# confgure ssh
|
||||||
|
include_recipe('os_prepare::ssh')
|
||||||
|
|
||||||
# basic tests
|
# basic tests
|
||||||
include_recipe('os_prepare::file')
|
include_recipe('os_prepare::file')
|
||||||
include_recipe('os_prepare::mount') unless node['osprepare']['docker']
|
include_recipe('os_prepare::mount') unless node['osprepare']['docker']
|
||||||
|
|
7
test/cookbooks/os_prepare/recipes/ssh.rb
Normal file
7
test/cookbooks/os_prepare/recipes/ssh.rb
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# encoding: utf-8
|
||||||
|
# author: Christoph Hartmann
|
||||||
|
#
|
||||||
|
# installs ssh
|
||||||
|
return if node['platform_family'] == 'windows'
|
||||||
|
|
||||||
|
include_recipe 'ssh-hardening::default'
|
Loading…
Reference in a new issue