On Dec 26, 2007, at 9:05 PM, Grzegorz Marszałek wrote:
> Hello!
>
> I'm trying to solve small problem - linux server AND windows clients
> AND managing this using puppet :)
> As far as I know puppet don't work under windws, but I'm still
using
> it on linux side. And I need some information from windows machines -
> ie.: info about what should I backup from each one.
>
> Of course one solution is to port puppet to windows - but for this I
> currently have no skills :( (it could be long term goal)
>
> But... In case of "normal" puppet installation I'd use
exported
> resources on clients, and collection on server - and voila,
> everything is simple and working. This is of course not case in
> windows - from what I understand, client have to at least once
> download configuration to make export/collect feature work. So I just
> wonder - can I force this somehow? That is: I write fake node
> definition for each windows client, and then I just "fake"
puppetd
> connection to make puppetmasterd to compile configuration and insert
> data into export/collection database.
>
> Well - first question: is that good idea? And second question: how to
> do that? :)
Yes on both counts, I think.
All you need to do is store exported resources in the database. This
will definitely require some Ruby coding, but it shouldn't be too
hard. Basically, you create the resources you want as instances of
Puppet::Rails::Resource, with exported = true, and store them to the
db. Then your clients will correctly collect them.
If you've got Rails experience, this should be easy, and if you
don't, it should still be straightforward if not easy.
--
The trouble with the world is that the stupid are cocksure and the
intelligent are full of doubt. -- Bertrand Russell
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com
_______________________________________________
Puppet-users mailing list
Puppet-users@madstop.com
https://mail.madstop.com/mailman/listinfo/puppet-users