4 basedir = '/var/lib/puppet/concat'
5 let(:title) { '/etc/foo.bar' }
7 :concat_basedir => '/var/lib/puppet/concat',
11 'include concat::setup'
15 "#{basedir}/_etc_foo.bar",
16 "#{basedir}/_etc_foo.bar/fragments",
19 directories.each do |dirs|
21 should contain_file(dirs).with({
22 'ensure' => 'directory',
33 "#{basedir}/_etc_foo.bar/fragments.concat",
38 should contain_file(file).with({
39 'ensure' => 'present',
49 should contain_exec("concat_/etc/foo.bar").with_command(
50 "#{basedir}/bin/concatfragments.sh " +
51 "-o #{basedir}/_etc_foo.bar/fragments.concat.out " +
52 "-d #{basedir}/_etc_foo.bar "
59 basedir = '/var/lib/puppet/concat'
60 let(:title) { 'foobar' }
61 let(:target) { '/etc/foo.bar' }
63 :concat_basedir => '/var/lib/puppet/concat',
67 'include concat::setup'
72 "#{basedir}/foobar/fragments",
75 directories.each do |dirs|
77 should contain_file(dirs).with({
78 'ensure' => 'directory',
89 "#{basedir}/foobar/fragments.concat",
94 should contain_file(file).with({
95 'ensure' => 'present',
105 should contain_exec("concat_foobar").with_command(
106 "#{basedir}/bin/concatfragments.sh " +
107 "-o #{basedir}/foobar/fragments.concat.out " +
108 "-d #{basedir}/foobar "
115 # vim:sw=2:ts=2:expandtab:textwidth=79