I''m having a bit of trouble understanding what to do with the ''type'' attribute of ''file''. I would like to perform different operations on directories vs. files under the same structure, can ''type'' be used for this? Are there any other examples of doing this kind of thing? Thanks, Trevor _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On Jan 19, 2007, at 8:41 AM, Trevor Vaughan wrote:> I''m having a bit of trouble understanding what to do with the > ''type'' attribute of ''file''. > > I would like to perform different operations on directories vs. > files under the same structure, can ''type'' be used for this? > > Are there any other examples of doing this kind of thing?At this point, the only way to do that is to have separate resource specifications. I''ve thought about having something like what you''re asking for, but I haven''t attempted to actually do it. The ''type'' attribute is actually just for querying at this point. -- The Internet, of course, is more than just a place to find pictures of people having sex with dogs. -- Time Magazine, 3 July 1995 --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
So, the only way of saying something like "all directories under X should have permissions 777" would be to use exec and find? Thanks, Trevor On 1/18/07, Luke Kanies <luke@madstop.com> wrote:> > On Jan 19, 2007, at 8:41 AM, Trevor Vaughan wrote: > > > I''m having a bit of trouble understanding what to do with the > > ''type'' attribute of ''file''. > > > > I would like to perform different operations on directories vs. > > files under the same structure, can ''type'' be used for this? > > > > Are there any other examples of doing this kind of thing? > > At this point, the only way to do that is to have separate resource > specifications. I''ve thought about having something like what you''re > asking for, but I haven''t attempted to actually do it. > > The ''type'' attribute is actually just for querying at this point. > > -- > The Internet, of course, is more than just a place to find pictures of > people having sex with dogs. -- Time Magazine, 3 July 1995 > --------------------------------------------------------------------- > Luke Kanies | http://reductivelabs.com | http://madstop.com > > > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users >_______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On Fri, Jan 19, 2007 at 07:58:12AM -0500, Trevor Vaughan wrote:> So, the only way of saying something like "all directories under X should > have permissions 777" would be to use exec and find?If the other half of your condition is "and all files should have mode 0644", then yes, at the moment a find is your only option. I''m sure a patch to implement dirmode and filemode parameters wouldn''t be rejected out of hand, though... - Matt -- A friend is someone you can call to help you move. A best friend is someone you can call to help you move a body.
On Jan 19, 2007, at 2:00 PM, Matthew Palmer wrote:> > If the other half of your condition is "and all files should have mode > 0644", then yes, at the moment a find is your only option. I''m > sure a patch > to implement dirmode and filemode parameters wouldn''t be rejected > out of > hand, though...This is true. I had actually had a feature request open on this for most of a year, but I closed it recently because no one asked about it for more than a year. I''ve begun closing requests that I think are a good idea but that no one actually asks about (i.e., if I opened the ticket but no one ever mentions it), since it''s probably a good indication that people wouldn''t actually use it. In this case, I opened it because cfengine had the ability and I was trying to plan as much of a feature overlap at the time as possible. So, if this really means a lot to you, reopen #4: https://reductivelabs.com/trac/puppet/ticket/4 If you reopen it, please add comments describing exactly how you''d like to use it. Do you just want to vary the modes, or do you want to vary other aspects, too? -- It''s not to control, but to protect the citizens of Singapore. In our society, you can state your views, but they have to be correct. -- Ernie Hai, co-ordinator of the Singapore Government Internet Project --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com