Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add comment in manage_unit deployed files #333

Merged
merged 1 commit into from Jun 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions spec/defines/manage_dropin_spec.rb
Expand Up @@ -17,6 +17,9 @@
}
end

it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_systemd__dropin_file('foobar.conf').with_content(%r{^# Deployed with puppet$}) }

context 'setting some parameters simply' do
let(:params) do
super().merge(
Expand Down
2 changes: 2 additions & 0 deletions templates/unit_file.epp
Expand Up @@ -19,6 +19,8 @@
]

-%>
# Deployed with puppet
#
<%-
$_unit_sections.each | $_section | {
$_values = getvar("${downcase($_section)}_entry")
Expand Down