mirror of
https://github.com/inspec/inspec
synced 2024-11-14 00:47:10 +00:00
integration test: create sample file
This commit is contained in:
parent
25783ea283
commit
2ba34c302c
2 changed files with 17 additions and 1 deletions
|
@ -4,5 +4,6 @@
|
||||||
#
|
#
|
||||||
# prepare all operating systems with the required configuration
|
# prepare all operating systems with the required configuration
|
||||||
|
|
||||||
include_recipe('os_prepare::package')
|
|
||||||
include_recipe('os_prepare::apt')
|
include_recipe('os_prepare::apt')
|
||||||
|
include_recipe('os_prepare::file')
|
||||||
|
include_recipe('os_prepare::package')
|
||||||
|
|
15
test/integration/cookbooks/os_prepare/recipes/file.rb
Normal file
15
test/integration/cookbooks/os_prepare/recipes/file.rb
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# encoding: utf-8
|
||||||
|
# author: Christoph Hartmann
|
||||||
|
# author: Dominik Richter
|
||||||
|
#
|
||||||
|
# prepares a sample file for verification
|
||||||
|
|
||||||
|
gid = 'root'
|
||||||
|
gid = 'wheel' if node['platform_family'] == 'freebsd'
|
||||||
|
|
||||||
|
file '/tmp/file' do
|
||||||
|
mode '0765'
|
||||||
|
owner 'root'
|
||||||
|
group gid
|
||||||
|
content 'hello world'
|
||||||
|
end
|
Loading…
Reference in a new issue