Skip to content

Commit 36737bb

Browse files
committed
Merge pull request #15 from npwalker/fix_hostname_in_role_curl
Fix hostname on role creation curl command
2 parents 323b4b9 + 3f22ce0 commit 36737bb

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)