git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/site/profile/templates/git_webhook
diff options
context:
space:
mode:
Diffstat (limited to 'site/profile/templates/git_webhook')
-rw-r--r--site/profile/templates/git_webhook/code_manager/create_rbac_token.epp7
1 files changed, 7 insertions, 0 deletions
diff --git a/site/profile/templates/git_webhook/code_manager/create_rbac_token.epp b/site/profile/templates/git_webhook/code_manager/create_rbac_token.epp
new file mode 100644
index 0000000..31bf00f
--- /dev/null
+++ b/site/profile/templates/git_webhook/code_manager/create_rbac_token.epp
@@ -0,0 +1,7 @@
+<%- | String $code_manager_service_user,
+ String $code_manager_service_user_password,
+ String $classifier_hostname,
+ Integer $classifier_port,
+ String $token_filename
+| -%>
+/opt/puppetlabs/puppet/bin/curl -k -X POST -H 'Content-Type: application/json' -d '{"login": "<%= $code_manager_service_user %>", "password": "<%= $code_manager_service_user_password %>", "lifetime": "0"}' https://<%= $classifier_hostname %>:<%= $classifier_port %>/rbac-api/v1/auth/token >> <%= $token_filename %>
'commitgraph'>* Fix hostname on role creation curl commandNick Walker 2016-01-121-1/+1 * Move hiera_config to main section of puppet.confNick Walker 2016-01-061-1/+10 * Add an exec to create the Deploy Environments RBAC RoleNick Walker 2015-12-281-1/+23 * Add functionality to disable the zack/r10k webhookNick Walker 2015-12-212-0/+15 * Create profile::git_webhook to abstract away the detailsNick Walker 2015-12-215-4/+15 * Move hiera.yaml to avoid file-sync overwriting itNick Walker 2015-12-181-1/+19 * Final steps to make Code Manager workNick Walker 2015-12-185-33/+69 * Chown files in codedir to pe-puppetNick Walker 2015-12-091-0/+6 * Allow disabling authentication on code manager webhookNick Walker 2015-12-091-3/+12 * Allow code_manager profile to not error out on first runNick Walker 2015-12-092-4/+43 * Refactor puppetmaster and zack_r10k_webhookNick Walker 2015-12-093-30/+12 * Add support for code manager which will replace zack r10kNick Walker 2015-12-094-1/+86 * Add custom functions for determining some PE settingsNick Walker 2015-11-252-0/+17 * Merge branch 'production' of https://github.com/npwalker/control-repo into me...Nick Walker 2015-11-2410-0/+205 |\ | * Change owner/group to pe-puppet for hiera moduleNick Walker 2015-11-171-2/+2 | * fixing a bunch of puppet lint warningsNick Walker 2015-10-303-10/+10 | * Refactor webhook profiles into one profile with a parameter