Hello all, I have some questions about the download puppet modules from puppetforge: I''ll take puppetlabs-dism as an example, once its installed its located: /etc/puppetlabs/puppet/modules/dism Can this be renamed to something else ? Also if for example, I had a folder tree under modules e.g. /etc/puppetlabs/puppet/modules/windows | |- manifests |--base.pp |--networking.pp Can I move the DISM module folder under my windows folder ? then I assume i''d call it by windows::dism? Regards James -- 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 puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
On Wed, Jan 30, 2013 at 7:55 AM, jim <stravze@gmail.com> wrote:> Hello all, > > I have some questions about the download puppet modules from puppetforge: > > I''ll take puppetlabs-dism as an example, once its installed its located: > > /etc/puppetlabs/puppet/modules/dism > > Can this be renamed to something else ? > > Also if for example, I had a folder tree under modules e.g. > > /etc/puppetlabs/puppet/modules/windows > | > |- manifests > |--base.pp > |--networking.pp > > Can I move the DISM module folder under my windows folder ? >You absolutely can, but you''d need to rename each class to windows::classname. You''d also lose the ability to cleanly upgrade the module from the Puppet Forge. Have you considered creating a modulepath specifically for your Windows content and organizing things that way? Here''s more on that. http://docs.puppetlabs.com/puppet/2.7/reference/modules_fundamentals.html#the-modulepath Cheers, --Ryan> > then I assume i''d call it by windows::dism? > > Regards > > James > > -- > 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 puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- Ryan Coleman | Modules & Forge | @ryanycoleman | ryancoleman in #puppet -- 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 puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
On Wed, Jan 30, 2013 at 9:55 AM, jim <stravze@gmail.com> wrote:> Hello all, > > I have some questions about the download puppet modules from puppetforge: > > I''ll take puppetlabs-dism as an example, once its installed its located: > > /etc/puppetlabs/puppet/modules/dism > > Can this be renamed to something else ? > > Also if for example, I had a folder tree under modules e.g. > > /etc/puppetlabs/puppet/modules/windows > | > |- manifests > |--base.pp > |--networking.pp > > Can I move the DISM module folder under my windows folder ? >This particular module is just a type/provider with no puppet manifest so you can move the lib dir to another module.> then I assume i''d call it by windows::dism? >No, the resource is still called dism, because it''s the name of the type and moving the lib dir won''t change this. https://github.com/puppetlabs/puppetlabs-dism/blob/master/lib/puppet/type/dism.rb#L1 You can write your own custom define resource called windows::dism which wraps the native dism resource. This is typically done if you need environment defaults. HTH, Nan -- 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 puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Thanks Guys for your advise and knowledge On Wednesday, 30 January 2013 17:30:08 UTC, Nan Liu wrote:> > On Wed, Jan 30, 2013 at 9:55 AM, jim <str...@gmail.com <javascript:>>wrote: > >> Hello all, >> >> I have some questions about the download puppet modules from puppetforge: >> >> I''ll take puppetlabs-dism as an example, once its installed its located: >> >> /etc/puppetlabs/puppet/modules/dism >> >> Can this be renamed to something else ? >> >> Also if for example, I had a folder tree under modules e.g. >> >> /etc/puppetlabs/puppet/modules/windows >> | >> |- manifests >> |--base.pp >> |--networking.pp >> >> Can I move the DISM module folder under my windows folder ? >> > > This particular module is just a type/provider with no puppet manifest so > you can move the lib dir to another module. > > >> then I assume i''d call it by windows::dism? >> > > No, the resource is still called dism, because it''s the name of the type > and moving the lib dir won''t change this. > > > https://github.com/puppetlabs/puppetlabs-dism/blob/master/lib/puppet/type/dism.rb#L1 > > You can write your own custom define resource called windows::dism which > wraps the native dism resource. This is typically done if you need > environment defaults. > > HTH, > > Nan >-- 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 puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.