Skip to content

Commit

Permalink
Merge pull request #605 from tmu-sprd/fix_webhook_service_name
Browse files Browse the repository at this point in the history
Bugfix: Fix service name of webhook-go service
  • Loading branch information
bastelfreak authored Jun 12, 2023
2 parents 4a6a7fb + 8c95758 commit 29922b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifests/webhook/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
ensure => $r10k::webhook::config_ensure,
path => $r10k::webhook::config_path,
content => to_yaml($r10k::webhook::config),
notify => Service['webhook'],
notify => Service['webhook-go'],
}
}
2 changes: 1 addition & 1 deletion manifests/webhook/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
#
class r10k::webhook::service () {
service { 'webhook':
service { 'webhook-go':
ensure => $r10k::webhook::service_ensure,
enable => $r10k::webhook::service_enabled,
}
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/webhook_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
it { is_expected.to contain_class('r10k::webhook::service') }
it { is_expected.to contain_class('r10k::webhook::config') }
it { is_expected.to contain_package('webhook-go').with_ensure('present') }
it { is_expected.to contain_service('webhook').with_ensure('running') }
it { is_expected.to contain_service('webhook-go').with_ensure('running') }
it { is_expected.to contain_file('webhook.yml').with_content(content) }
end
end
Expand Down

0 comments on commit 29922b4

Please sign in to comment.