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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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
<chjohnst@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-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscribe@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-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
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.olarte@dotcms.org>wrote:> 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 > <chjohnst@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-users@googlegroups.com. > > To unsubscribe from this group, send email to > > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@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-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com<puppet-users%2Bunsubscribe@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-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.