How to get modules recognized for use during classification

43 views
Skip to first unread message

warron.french

unread,
Jun 1, 2016, 3:20:08 PM6/1/16
to puppet...@googlegroups.com
Another question...
     I have rebuilt my Puppetmaster (as some of you already know), and
copied into place a module I wrote into - /etc/puppetlabs/code/environments/production/modules.

However, when I go into the Puppet Admin Console, into the Classification tab.  When I try to "pull up" my module to classify my nodes; the module name doesn't show up in the list.


How do I make the module show up in the list?  Did I miss a step?


--------------------------
Warron French

James Pryor

unread,
Jun 1, 2016, 3:32:07 PM6/1/16
to puppet...@googlegroups.com
I have personal experience with PE 2015.2 thus I knew what to look for, so I think this will help you.
https://docs.puppet.com/pe/2015.2/console_classes_groups.html#adding-classes-to-a-node-group
and search the page for the word refresh.

I found this by doing a google search on: puppet enterprise console refresh
and then chose the 2015.2 documentation on the docs.puppet.com website.

I recommend reading all the documentation once. Yes it eats up a ton of time and you might not make immediate progress with Puppet Enterprise, but the docs cover important foundation info so much that your familiarity with the docs will eventually make you speed up.

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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAJdJdQkSAbQj1ChFkm3%3DEd7Car4LWvNojkM11XQwC-kpVTmxdg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

warron.french

unread,
Jun 1, 2016, 8:23:54 PM6/1/16
to puppet...@googlegroups.com
James, you are awesome!  Thank you.  I wrote my first module, I am calling it sidedoor, as opposed to backdoor; and it for the purpose of enabling the creation of accounts on systems to work around NSS (LDAP, AD, NIS, Samba, etc...) service outage and have never written one from scratch before.  I have to learn to write code "in a real world" setting now instead of the Learning VM where things don't break, but they don't do anything at all either.

So, while I am at home sick this week, I have been taking advantage of the opportunity to write a module, test it with puppet apply --noop, and then commit the module (this last step you helped me with).  This link did help me.

Unfortunately, I think my prior instance of PE -2015.2 was totally busted for some reason - not sure why, so I had to rebuild from scratch.

By the way, do you know how to use the Gepetto IDE for writing Puppet Modules?


Thanks again, that link helped me to at least get the module recognized; now at least next time I know to look for updating the cache of the Puppet Master to the web interface - and waiting for 3 minutes.

--------------------------
Warron French


James Pryor

unread,
Jun 1, 2016, 9:22:08 PM6/1/16
to puppet...@googlegroups.com
Warron,
Thank you for the the praise.
Geppetto is fine. I used it 2014 & part of 2015. Some people may disagree, but I found that it (by way of Eclipse) was quite heavy weight and used lots of CPU and RAM in my workstation. With Geppetto it was amazing to get all my modules in one place and have it report static code analysis errors and warnings across all the modules so that we could fix up our whole codebase. Though that functionality is available outside of Geppetto via puppet-lint[1] by running it across all the modules.

When the atom editor[2] came out with version 1.0, I started using that for about half of my puppet coding with add-on packages for puppet syntax and linting provided[3]. The other half is done in Vim[4]
If you need additional choice of editing tools, checkout the front-page of the forge[5] and ask questions here on puppet-users list or on Ask Puppet[6].

Regards,
James

[2] https://atom.io/

Rob Nelson

unread,
Jun 1, 2016, 9:42:47 PM6/1/16
to puppet...@googlegroups.com
Geppetto is definitely heavy. It also looks like development stopped, last release was over a year ago. It's probably not worth starting to use it now if it's a dead product. 
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAOsPUcj%3DS5k8nsE0C8-82s2oyPFRSdhRy87zVVZFQKBXpi%3DVww%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.


--

Henrik Lindberg

unread,
Jun 1, 2016, 10:38:28 PM6/1/16
to puppet...@googlegroups.com
On 02/06/16 03:42, Rob Nelson wrote:
> Geppetto is definitely heavy. It also looks like development stopped,
> last release was over a year ago. It's probably not worth starting to
> use it now if it's a dead product.
>

Geppetto is no longer maintained. If you want an IDE, look at Netbeans,
or IntelliJ.

- henrik

> On Wednesday, June 1, 2016, James Pryor <pry...@gmail.com
> docs.puppet.com <http://docs.puppet.com> website.
>
> I recommend reading all the documentation once. Yes it eats
> up a ton of time and you might not make immediate progress
> with Puppet Enterprise, but the docs cover important
> foundation info so much that your familiarity with the docs
> will eventually make you speed up.
>
> Regards,
> James
>
>
> On Wed, Jun 1, 2016 at 3:20 PM, warron.french
> <warron...@gmail.com
> <javascript:_e(%7B%7D,'cvml','warron...@gmail.com');>>
> wrote:
>
> Another question...
> I have rebuilt my Puppetmaster (as some of you
> already know), and
> copied into place a module I wrote into -
> */etc/puppetlabs/code/environments/production/modules.*
> *
> *
> However, when I go into the Puppet Admin Console, into
> the Classification tab. When I try to "pull up" my
> module to classify my nodes; the module name doesn't
> show up in the list.
>
>
> How do I make the module show up in the list? Did I
> miss a step?
>
>
> --------------------------
> Warron French
>
> --
> 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
> <javascript:_e(%7B%7D,'cvml','puppet-users%2Bunsu...@googlegroups.com');>.
> <https://groups.google.com/d/msgid/puppet-users/CAJdJdQkSAbQj1ChFkm3%3DEd7Car4LWvNojkM11XQwC-kpVTmxdg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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
> <javascript:_e(%7B%7D,'cvml','puppet-users%2Bunsu...@googlegroups.com');>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/CAOsPUciQfxwvP_Qt17yzpowoVAMLMV0fyCZvm7tp8iVxo%3D6X8w%40mail.gmail.com
> <https://groups.google.com/d/msgid/puppet-users/CAOsPUciQfxwvP_Qt17yzpowoVAMLMV0fyCZvm7tp8iVxo%3D6X8w%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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
> <javascript:_e(%7B%7D,'cvml','puppet-users%2Bunsu...@googlegroups.com');>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/CAJdJdQkRpt8avZU98wdU5QpXeuNiBXz-e6jfcPTRQ3n8v51DQA%40mail.gmail.com
> <https://groups.google.com/d/msgid/puppet-users/CAJdJdQkRpt8avZU98wdU5QpXeuNiBXz-e6jfcPTRQ3n8v51DQA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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
> <javascript:_e(%7B%7D,'cvml','puppet-users%2Bunsu...@googlegroups.com');>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/CAOsPUcj%3DS5k8nsE0C8-82s2oyPFRSdhRy87zVVZFQKBXpi%3DVww%40mail.gmail.com
> <https://groups.google.com/d/msgid/puppet-users/CAOsPUcj%3DS5k8nsE0C8-82s2oyPFRSdhRy87zVVZFQKBXpi%3DVww%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
>
> Rob Nelson
> rnel...@gmail.com <mailto:rnel...@gmail.com>
>
> --
> 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
> <mailto:puppet-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/CAC76iT87ir4j5UZ5JsgTJLJM3fAGiTP6fHCA9p0%2Bce%3DMuLm6KQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/puppet-users/CAC76iT87ir4j5UZ5JsgTJLJM3fAGiTP6fHCA9p0%2Bce%3DMuLm6KQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.


--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/

Warron French

unread,
Jun 1, 2016, 10:45:27 PM6/1/16
to puppet...@googlegroups.com
Thanks for the feedback about Gepetto, James.

I tried to start using it last year, and learning to use that tool went sideways on me.  I have written shell scripts for the past 20+ years, but I don't really write programs anymore (in C, C++, Fortran or even Pascal); so I think I first need to learn how to write a module without it to get down the basics.  Afterwards, I can then maybe figure out how to get Gepetto to actually work with a VMware instance of Puppet running in my Windows PC, and also somehow figure out how to get the Git hooks into place as well.

Anyway, thanks again.  I have more questions about the module I am writing (this process is truly evolving my understanding), so I will be posting another separate thread about that next.
--Warron

Warron French

unread,
Jun 1, 2016, 10:47:10 PM6/1/16
to puppet...@googlegroups.com
Thanks Rob, then I won't bother with it.  I will stick to the generic commands built into the Puppet Master, and use vi(m) and see if I can make it work with GitHub.com - to develop an improved understanding of the full lifecycle process for developing a Puppet Module from scratch.

Warron French

unread,
Jun 1, 2016, 10:47:58 PM6/1/16
to puppet...@googlegroups.com
Thanks Henrik. I won 't be using it now that I hear that being confirmed.


Thanks everyone,
Warron
Reply all
Reply to author
Forward
0 new messages