git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/hieradata/nodes
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 /hieradata/nodes
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 'hieradata/nodes')
-rw-r--r--hieradata/nodes/example-puppet-master.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/hieradata/nodes/example-puppet-master.yaml b/hieradata/nodes/example-puppet-master.yaml
index 677e10d..584faac 100644
--- a/hieradata/nodes/example-puppet-master.yaml
+++ b/hieradata/nodes/example-puppet-master.yaml
@@ -2,3 +2,7 @@
git_management_system: 'gitlab'
gms_server_url: 'https://gitlab-server'
gms_api_token: 'BDkZfWWnk4LVTLHdAywd'
+
+#setup r10k to update classes in the console after code deploy
+pe_r10k::postrun:
+ - '/usr/local/bin/update-classes.sh'