mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +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:
|
||||
- name: default
|
||||
run_list:
|
||||
- recipe[ssh-hardening]
|
||||
- recipe[os_prepare]
|
||||
|
|
|
@ -86,6 +86,5 @@ suites:
|
|||
run_list:
|
||||
- recipe[apt]
|
||||
- recipe[yum]
|
||||
- recipe[ssh-hardening]
|
||||
- recipe[os_prepare]
|
||||
attributes:
|
||||
|
|
|
@ -33,6 +33,5 @@ suites:
|
|||
run_list:
|
||||
- recipe[apt]
|
||||
- recipe[yum]
|
||||
- recipe[ssh-hardening]
|
||||
- recipe[os_prepare]
|
||||
attributes:
|
||||
|
|
|
@ -79,7 +79,6 @@ suites:
|
|||
run_list:
|
||||
- recipe[apt]
|
||||
- recipe[yum]
|
||||
- recipe[ssh-hardening]
|
||||
- recipe[os_prepare]
|
||||
attributes:
|
||||
osprepare:
|
||||
|
|
|
@ -11,3 +11,4 @@ depends 'runit'
|
|||
depends 'postgresql'
|
||||
depends 'httpd', '~> 0.2'
|
||||
depends 'windows'
|
||||
depends 'ssh-hardening'
|
||||
|
|
|
@ -7,6 +7,9 @@
|
|||
# container preparation
|
||||
include_recipe('os_prepare::prep_container')
|
||||
|
||||
# confgure ssh
|
||||
include_recipe('os_prepare::ssh')
|
||||
|
||||
# basic tests
|
||||
include_recipe('os_prepare::file')
|
||||
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