Puppet Modules from Forge

81 views
Skip to first unread message

jim

unread,
Jan 30, 2013, 10:55:23 AM1/30/13
to puppet...@googlegroups.com
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

Ryan Coleman

unread,
Jan 30, 2013, 11:04:26 AM1/30/13
to puppet...@googlegroups.com
On Wed, Jan 30, 2013 at 7:55 AM, jim <str...@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...@googlegroups.com.
To post to this group, send email to puppet...@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
 

Nan Liu

unread,
Jan 30, 2013, 12:30:08 PM1/30/13
to puppet...@googlegroups.com
On Wed, Jan 30, 2013 at 9:55 AM, jim <str...@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.


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 

jim

unread,
Jan 31, 2013, 4:51:06 AM1/31/13
to puppet...@googlegroups.com
Thanks Guys for your advise and knowledge
Reply all
Reply to author
Forward
0 new messages