Skip to content

Commit 3f22ce0

Browse files
committed
Fix hostname on role creation curl command
Prior to the this commit, if you were using the code_manager profile on a split install it would incorrectly try to curl the NC api on the master node. After this commit, it should correctly curl the hostname of the NC This has no impact on the functionality of the code on a monolithic PE installation.
1 parent 323b4b9 commit 3f22ce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/profile/manifests/git_webhook/code_manager.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
$create_role_creates_file = '/etc/puppetlabs/puppetserver/.puppetlabs/deploy_environments_created'
4040
$create_role_curl = @(EOT)
4141
/opt/puppetlabs/puppet/bin/curl -k -X POST -H 'Content-Type: application/json' \
42-
https://<%= $::trusted['certname'] %>:4433/rbac-api/v1/roles \
42+
https://<%= $classifier_hostname %>:4433/rbac-api/v1/roles \
4343
-d '{"permissions": [{"object_type": "environment", "action": "deploy_code", "instance": "*"},
4444
{"object_type": "tokens", "action": "override_lifetime", "instance": "*"}],"user_ids": [], "group_ids": [], "display_name": "<%= $code_manager_role_name %>", "description": ""}' \
4545
--cert <%= $::settings::certdir %>/<%= $::trusted['certname'] %>.pem \

0 commit comments

Comments
 (0)