[Puppet Users] creating directories

2010-01-12 Thread Christopher Johnston
What is the best way to have puppet create (mkdir) directories?  I am
currently using exec types, but is it possible to use a file type for this?

-Chris
-- 

You received this message because you are subscribed to the Google Groups "Puppet Users" group.

To post to this group, send email to puppet-us...@googlegroups.com.

To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] creating directories

2010-01-12 Thread Andres Olarte
Yes,

Just use the file type, and set ensure to directory:

file { /etc/myapp:
ensure = directory
}


On Tue, Jan 12, 2010 at 4:34 PM, Christopher Johnston
chjoh...@gmail.com wrote:
 What is the best way to have puppet create (mkdir) directories?  I am
 currently using exec types, but is it possible to use a file type for this?
 -Chris
 --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To post to this group, send email to puppet-us...@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.





-- 
Andres Olarte
dotCMS
Main: 305.858.1422
Direct: 786.594.5285
Fax: 305.397.1719
www.dotCMS.org

Packt Publishing's 2009 Best Non PHP Open Source CMS Finalist
-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.




Re: [Puppet Users] creating directories

2010-01-12 Thread Scott Smith

Christopher Johnston wrote:
What is the best way to have puppet create (mkdir) directories?  I am 
currently using exec types, but is it possible to use a file type for this?




http://reductivelabs.com/trac/puppet/wiki/TypeReference#file

Look for ensure

-scott

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.




Re: [Puppet Users] creating directories

2010-01-12 Thread Christopher Johnston
Ahh, ok cool I am using that for symlinks as well I will try that.  Thx!

-Chris

On Tue, Jan 12, 2010 at 4:37 PM, Andres Olarte andres.ola...@dotcms.orgwrote:

 Yes,

 Just use the file type, and set ensure to directory:

 file { /etc/myapp:
ensure = directory
 }


 On Tue, Jan 12, 2010 at 4:34 PM, Christopher Johnston
 chjoh...@gmail.com wrote:
  What is the best way to have puppet create (mkdir) directories?  I am
  currently using exec types, but is it possible to use a file type for
 this?
  -Chris
  --
  You received this message because you are subscribed to the Google Groups
  Puppet Users group.
  To post to this group, send email to puppet-us...@googlegroups.com.
  To unsubscribe from this group, send email to
  puppet-users+unsubscr...@googlegroups.compuppet-users%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group at
  http://groups.google.com/group/puppet-users?hl=en.
 
 



 --
 Andres Olarte
 dotCMS
 Main: 305.858.1422
 Direct: 786.594.5285
 Fax: 305.397.1719
 www.dotCMS.org

 Packt Publishing's 2009 Best Non PHP Open Source CMS Finalist

 --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To post to this group, send email to puppet-us...@googlegroups.com.
 To unsubscribe from this group, send email to
 puppet-users+unsubscr...@googlegroups.compuppet-users%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/puppet-users?hl=en.




-- 

You received this message because you are subscribed to the Google Groups "Puppet Users" group.

To post to this group, send email to puppet-us...@googlegroups.com.

To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.