Merge pull request #81 from songkick/fix-ownership

Fix group ownership on files.
This commit is contained in:
Ashley Penney 2013-10-22 08:02:22 -07:00
commit 44f4240286
2 changed files with 23 additions and 1 deletions

View file

@ -72,7 +72,7 @@ define concat(
$safe_group = $group ? {
undef => $concat::setup::root_group,
default => $safe_group,
default => $group,
}
case $warn {

View file

@ -106,4 +106,26 @@ describe 'concat' do
end
describe 'concat' do
let(:title) { '/etc/foo.bar' }
let(:params) { {
:group => 'something',
:owner => 'someone',
:mode => '0755'
} }
let(:facts) { {
:concat_basedir => '/var/lib/puppet/concat',
:id => 'root',
} }
it do
should contain_file("/etc/foo.bar").with( {
'ensure' => 'present',
'owner' => 'someone',
'group' => 'something',
'mode' => '0755',
} )
end
end
# vim:sw=2:ts=2:expandtab:textwidth=79