git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/site/profile/manifests/puppetmaster.pp
diff options
context:
space:
mode:
authormail_redacted_for_web 2015-10-30 13:42:33 -0700
committermail_redacted_for_web 2015-10-30 13:42:33 -0700
commit3149d9707f2882bdd4bc499a2bc65fb6dff36bf9 (patch)
treeb8b22bd0b16543749a253c1beb4b59aca1b62e88 /site/profile/manifests/puppetmaster.pp
parent8e271e3043fd55ce7c39f520360214e6844085af (diff)
downloadcontrol-repo-template-3149d9707f2882bdd4bc499a2bc65fb6dff36bf9.tar.bz2
Refactor webhook profiles into one profile with a parameter
Previously there was a mcollective and no_mcollective version of the webhook profile. They were almost identical so I merged them and manage the difference with a "use_mcollective" parameter. I renamed the webhook profile to zack_r10k_webhook.
Diffstat (limited to 'site/profile/manifests/puppetmaster.pp')
-rw-r--r--site/profile/manifests/puppetmaster.pp22
1 files changed, 11 insertions, 11 deletions
diff --git a/site/profile/manifests/puppetmaster.pp b/site/profile/manifests/puppetmaster.pp
index d3f1a87..1a199cd 100644
--- a/site/profile/manifests/puppetmaster.pp
+++ b/site/profile/manifests/puppetmaster.pp
@@ -23,20 +23,20 @@ class profile::puppetmaster (
creates => $r10k_ssh_key_file,
}
#END - Generate an SSH key for r10k to connect to git
-
+
#BEGIN - Add deploy key and webook to git management system
$git_management_system = hiera('git_management_system', '')
if $git_management_system in ['gitlab', 'github'] {
-
+
git_deploy_key { "add_deploy_key_to_puppet_control-${::fqdn}":
- ensure => present,
- name => $::fqdn,
- path => "${r10k_ssh_key_file}.pub",
- token => hiera('gms_api_token'),
- project_name => 'puppet/control-repo',
- server_url => hiera('gms_server_url'),
- provider => $git_management_system,
+ ensure => present,
+ name => $::fqdn,
+ path => "${r10k_ssh_key_file}.pub",
+ token => hiera('gms_api_token'),
+ project_name => 'puppet/control-repo',
+ server_url => hiera('gms_server_url'),
+ provider => $git_management_system,
}
git_webhook { "web_post_receive_webhook-${::fqdn}" :
@@ -57,11 +57,11 @@ class profile::puppetmaster (
file { '/usr/local/bin/update-classes.sh' :
ensure => file,
source => 'puppet:///modules/profile/puppetmaster/update-classes.sh',
- mode => '755',
+ mode => '0755',
}
#https://docs.puppetlabs.com/puppet/latest/reference/config_file_environment.html#environmenttimeout
- ini_setting { "environment_timeout = unlimited":
+ ini_setting { 'environment_timeout = unlimited':
ensure => present,
path => '/etc/puppetlabs/puppet/puppet.conf',
section => 'main',