Added git2puppet.
authorAndreas Schiermeier <as@ccc504j.site>
Tue, 17 Mar 2015 23:13:34 +0000 (00:13 +0100)
committerAndreas Schiermeier <as@ccc504j.site>
Tue, 17 Mar 2015 23:13:34 +0000 (00:13 +0100)
modules/common/manifests/init.pp

index 945652f..c57fb18 100644 (file)
@@ -1,5 +1,11 @@
 class common {
   
 class common {
   
+  file { '/usr/local/sbin/git2puppet':
+    ensure => present,
+    content => "#!/bin/bash\ncd /etc/puppet && git pull && puppet apply /etc/puppet/manifests/site.pp\n",
+    mode => '0755',
+  }
+  
   define set_mountpoint_option($mount, $option) {
     augeas{ "fstab-$mount-$option":
       context => "/files/etc/fstab/*[file = '$mount'][count(opt[. = '$option']) = 0]",
   define set_mountpoint_option($mount, $option) {
     augeas{ "fstab-$mount-$option":
       context => "/files/etc/fstab/*[file = '$mount'][count(opt[. = '$option']) = 0]",