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-26 14:59:20 -0700
committermail_redacted_for_web 2015-10-26 14:59:20 -0700
commit92f8d2d251d9e6fde5c124cb9a6974b1455269f7 (patch)
tree835f9e577d106000b8217b06c1fa1b83e0176ea0 /site/profile/manifests/puppetmaster.pp
parentbaf376d30fc851cb401b7852dfd262b926c5ba0d (diff)
downloadcontrol-repo-template-92f8d2d251d9e6fde5c124cb9a6974b1455269f7.tar.bz2
Configure the MoM to update the classifier after deploying code
This entailed configring the classifier to never sync on a schedule. Changing environment_timeout to unlimited for all masters. Setting a postrun command for r10k that would update the class information in the classifier (the update-classes endpoint).
Diffstat (limited to 'site/profile/manifests/puppetmaster.pp')
-rw-r--r--site/profile/manifests/puppetmaster.pp16
1 files changed, 16 insertions, 0 deletions
diff --git a/site/profile/manifests/puppetmaster.pp b/site/profile/manifests/puppetmaster.pp
index bc52d3b..687b957 100644
--- a/site/profile/manifests/puppetmaster.pp
+++ b/site/profile/manifests/puppetmaster.pp
@@ -48,4 +48,20 @@ class profile::puppetmaster {
}
#END - Add deploy key and webhook to git management system
+ #Lay down update-classes.sh for use in r10k postrun_command
+ #This is configured via the pe_r10k::postrun key in hiera
+ file { '/usr/local/bin/update-classes.sh' :
+ ensure => file,
+ source => 'puppet::///modules/profile/puppetmaster/update-classes.sh',
+ }
+
+ #https://docs.puppetlabs.com/puppet/latest/reference/config_file_environment.html#environmenttimeout
+ ini_setting { "environment_timeout = unlimited":
+ ensure => present,
+ path => '/etc/puppetlabs/puppet/puppet.conf',
+ section => 'main',
+ setting => 'environment_timeout',
+ value => 'unlimited',
+ }
+
}