From e748ca170224e1c3818f3e36fe4c7a96afaa9369 Mon Sep 17 00:00:00 2001 From: Dan Bode Date: Tue, 6 Nov 2012 20:53:34 -0800 Subject: [PATCH] Add code to add a run puppet script I got sick of typing the command --- manifests/setup/hosts.pp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/manifests/setup/hosts.pp b/manifests/setup/hosts.pp index 66a1353..355b500 100644 --- a/manifests/setup/hosts.pp +++ b/manifests/setup/hosts.pp @@ -17,3 +17,10 @@ host { group { 'puppet': ensure => 'present', } + +# lay down a file that you run run for testing +file { '/root/run_puppet.sh': + content => +"#!/bin/bash +puppet apply --modulepath /tmp/vagrant-puppet/modules-0/ --certname ${clientcert} /tmp/vagrant-puppet/manifests/site.pp" +}