Re: [Puppet Users] Deploying Modules on Windows Node without using Dashboard (Puppet Enterprise Console)

Ryan Coleman
Thu, 18 Apr 2013 17:41:39 -0000

Hi. I apologize for my delay. I missed your reply.

On Thu, Apr 11, 2013 at 6:20 PM, <mysql.linux@gmail.com> wrote:

> Let me explain what I did:
> - 1. Installed 3 new Modules on the Puppet Master
> - 2. Went to the Dashboard, Added the new Classes
> - 3. In the Dashboard, also Edited the Node to add the new Classes to it
> - 4. The Agents on the Node to which the classes were assigned picked up
> the new modules and installed the applications.
>
> So, the above was good and worked as expected.
>
> My question is:
> - Shouldn''t I be able to use an API like "puppet ....."
to do the same as
> above?
> - If I cannot do it via an API, then what is the Dashboard doing in #2 and
> #3 and can I not edit some files manually/programmatically to accomplish
> the same?
>

The Dashboard behaves as an external node classifier to Puppet. You can
read about that concept here:
http://docs.puppetlabs.com/guides/external_nodes.html

It does come with various rake tasks for programmatically manipulating your
classification data. You can read about those tasks here:
http://docs.puppetlabs.com/pe/latest/console_classes_groups.html#rake-api If
you''re using Puppet Enterprise, the path will be different but I
don''t have
it off-hand. I think you can use find in /usr for dashboard.



>
> Hope that makes sense.
>
> Thanks again!
>




--
Ryan Coleman | Modules & Forge | @ryanycoleman | ryancoleman in #puppet