Giuseppe Lavagetto has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/370995 )

Change subject: puppet-compiler: bump version, run puppetdb-populate
......................................................................


puppet-compiler: bump version, run puppetdb-populate

Bug: T150456
Change-Id: I5ffeea1e9534a4ae2ef0bdae62095b9424f420ea
---
M hieradata/labs/puppet3-diffs/common.yaml
M modules/puppet_compiler/manifests/init.pp
2 files changed, 11 insertions(+), 2 deletions(-)

Approvals:
  Giuseppe Lavagetto: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/hieradata/labs/puppet3-diffs/common.yaml 
b/hieradata/labs/puppet3-diffs/common.yaml
index a53a085d..0197378 100644
--- a/hieradata/labs/puppet3-diffs/common.yaml
+++ b/hieradata/labs/puppet3-diffs/common.yaml
@@ -5,7 +5,7 @@
   explicit_macs: false
   disable_agent_forwarding: false
   challenge_response_auth: false
-puppet_compiler::version: 0.3.2
+puppet_compiler::version: 0.3.3
 etcd::peers_list: "%{::hostname}=http://127.0.0.1:2380";
 etcd::client::globalconfig::host: 127.0.0.1
 etcd::client::globalconfig::port: 2379
diff --git a/modules/puppet_compiler/manifests/init.pp 
b/modules/puppet_compiler/manifests/init.pp
index 3175574..4373423 100644
--- a/modules/puppet_compiler/manifests/init.pp
+++ b/modules/puppet_compiler/manifests/init.pp
@@ -1,6 +1,6 @@
 # Installs the puppet compiler and all the other software we need.
 class puppet_compiler(
-    $version = '0.0.4',
+    $version = '0.3.3',
     $workdir = '/mnt/jenkins-workspace/puppet-compiler',
     $libdir  = '/var/lib/catalog-differ',
     $ensure  = 'present',
@@ -125,4 +125,13 @@
         owner   => $user,
         require => File['/etc/puppet/puppetdb.conf']
     }
+
+    # periodic script to populate puppetdb. Run at 4 AM every sunday.
+    cron { 'Populate puppetdb':
+        command => "/usr/local/bin/puppetdb-populate --basedir ${libdir} > 
${homedir}/puppetdb-populate.log 2>&1",
+        user    => $user,
+        hour    => 4,
+        minute  => 0,
+        weekday => 0,
+    }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/370995
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I5ffeea1e9534a4ae2ef0bdae62095b9424f420ea
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Giuseppe Lavagetto <glavage...@wikimedia.org>
Gerrit-Reviewer: Giuseppe Lavagetto <glavage...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to