File { " /etc/puppet/test":
ensure => "directory",
unless => 'test -d /etc/puppet/test'
}

Flamarion Jorge
Sent from my mobile
Em 18/08/2014 09:05, "Satish Katuru" <[email protected]> escreveu:

Hi ,

I wanted to find out whether the directory exists or not in the machine.How
can I do it?

if I do it as below it will create a directory:

File { " /etc/puppet/test":
ensure => "directory",

}



 --
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/6f8d03fb-8d97-4832-a3b7-70868132c451%40googlegroups.com
<https://groups.google.com/d/msgid/puppet-users/6f8d03fb-8d97-4832-a3b7-70868132c451%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CA%2Bx2bU37jc8pkVaZTF%2BLux38%2BKB%3DeJ%2BV93XR5%3DV55w%2B2TNASxg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to