Re: [Puppet Users] using a "test" within an if in a manifest

2013-04-28 Thread Denmat
Hi, No, not directly. Compilation takes place on the master and so that is where these tests would run. What you need is a fact or use an exec. The fact will tell the master what the client has; an exec will run on the client where the test will execute. Cheers, Den On 26/04/2013, at 3:50, K

[Puppet Users] using a "test" within an if in a manifest

2013-04-26 Thread Kubes
Does puppet have a similar syntax in a manifest? if [ -f /somefile ] { ... } Looking to test for -d -p -b, etc I know that exec has this feature, but am looking to conditionally mount. I have thought of other use cases too. Thanks! -- You received this message because you are subscribed t