Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions manifests/run.pp
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,10 @@
timeout => 0
}

file { $initscript:
ensure => absent,
}

}
else {
file { $initscript:
Expand Down
3 changes: 2 additions & 1 deletion spec/defines/run_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
else
it { should contain_file(initscript).with_content(/Required-Start:.*\s+docker-foo/) }
it { should contain_file(initscript).with_content(/Required-Start:.*\s+docker-bar/) }
it { should contain_file(initscript).with_content(/Required-Start:.*\s+docker-foo_bar-baz/) }
it { should contain_file(initscript).with_content(/Required-Start:.*\s+docker-foo_bar-baz/) }
end
end
end
Expand Down Expand Up @@ -706,6 +706,7 @@
it { should compile.with_all_deps }
it { should contain_service('docker-sample').with_ensure(false) }
it { should contain_exec("remove container docker-sample").with_command('docker rm -v sample') }
it { should contain_file(initscript).with_ensure('absent') }
end

end
Expand Down