From ba2cf1b5d938810077b0fd73844faf432e8e8f9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Mon, 14 Aug 2017 19:02:29 +0200 Subject: Install OVH vps from scratch --- modules/cron_puppet/manifests/init.pp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'modules/cron_puppet/manifests/init.pp') diff --git a/modules/cron_puppet/manifests/init.pp b/modules/cron_puppet/manifests/init.pp index 1756a06..c9d5a51 100644 --- a/modules/cron_puppet/manifests/init.pp +++ b/modules/cron_puppet/manifests/init.pp @@ -1,7 +1,9 @@ -class cron_puppet { +class cron_puppet ( + $code_path = "/etc/puppetlabs/code" +) { file { 'post-hook': ensure => file, - path => '/etc/puppetlabs/puppet/.git/hooks/post-merge', + path => "$code_path/.git/hooks/post-merge", source => 'puppet:///modules/cron_puppet/post-merge', mode => '0755', owner => root, @@ -12,7 +14,7 @@ class cron_puppet { } cron { 'puppet-apply': ensure => present, - command => "cd /etc/puppetlabs/puppet ; /usr/bin/git pull", + command => "cd $code_path ; /usr/bin/git pull", user => root, minute => '*/30', require => File['post-hook'], -- cgit v1.2.3