Skip to content

Commit b6351f9

Browse files
committed
Add $::fqdn to post receive hook title
Also, change other references of $fqdn to $::fqdn
1 parent 591f9b9 commit b6351f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site/profile/manifests/puppetmaster.pp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
if $git_management_system in ['gitlab', 'github'] {
2828

29-
git_deploy_key { "add_deploy_key_to_puppet_control-${fqdn}":
29+
git_deploy_key { "add_deploy_key_to_puppet_control-${::fqdn}":
3030
ensure => present,
3131
name => $::fqdn,
3232
path => "${r10k_ssh_key_file}.pub",
@@ -36,9 +36,9 @@
3636
provider => $git_management_system,
3737
}
3838

39-
git_webhook { 'web_post_receive_webhook' :
39+
git_webhook { "web_post_receive_webhook-${::fqdn}" :
4040
ensure => present,
41-
webhook_url => "http://${fqdn}:8088/payload",
41+
webhook_url => "http://${::fqdn}:8088/payload",
4242
token => hiera('gms_api_token'),
4343
project_name => 'puppet/control-repo',
4444
server_url => hiera('gms_server_url'),

0 commit comments

Comments
 (0)