On Wed, Sep 8, 2010 at 11:45 AM, alcy <[email protected]> wrote:
>> 2a - Is there an ISConf-like facility that says "run it until it
>> succeeds once"? [ Happy to use Makefiles, but if there's a
>> Puppet-supported elegant way of doing it... ]
>
> If the code of the shell script can be minimized to use as much as of
> Puppet's existing resources, that would be a good way to go about
> things. Of course, you can execute the shell scripts, and define the
> conditions that you mentioned. Have a look at the exec resource type
> in puppet for such things.
Thanks! Will look at exec. I think I'll make a /var/lib/mypuppetstate
directory and touch files in there on successful completion of
scripts.
>> 3 - Can I hook up a trigger so when a new conffile for a service is
>> installed the service is restarted? IE: I provide a new
>> /etc/named.conf, I want to add a trigger that says that everytime it
>> changes, "services named restart" should be invoked...
>
> Yes, you can have the service "subscribe" to the configuration file:
>
> service{"named":
And I assume that it knows that on Fedora the magic incantation is
service <servicename> restart...
That'll only work if the file is updated by Puppet, correct? Or is
there an inotify side to Puppet that I didn't know before...?
If the service is sub'd to several files, and all are updated "in one
go" from Puppet, will there be one service restart, or one per file?
>> 4 - Can the clients send a "deployed configuration successfully" msg
>> to the server, so we keep a tally of
>>
>> - clients seen recently
>> - success vs failure in deployment of latest config
>> - what clients are failing or behind in their sync
>
> At the most basic level, you can do this by simply enabling report =
> true in clients' configuration and at the server reports = log. This
Hmmm... from what I've seen, that gets me when the puppet client
_requested_ stuff, but not a "puppet client deployed successfully".
Am I missing something?
> like Dashboard & Foreman.
Will investigate ;-)
m
--
[email protected]
[email protected] -- School Server Architect
- ask interesting questions
- don't get distracted with shiny stuff - working code first
- http://wiki.laptop.org/go/User:Martinlanghoff
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.