[Spacewalk-list] Trigger script on spacewalk on activation
Jon Miller
jonebird at gmail.com
Fri Sep 19 18:02:26 UTC 2014
Timothy Rees <reestr.uk at gmail.com> writes:
> Hi list,
>
> Is there a builtin way to trigger a script on the spacewalk server to
> run as soon as a new client is registered using an activation key?
>
> I have a requirement where registered clients are grouped
> automatically and the output of a scheduled command is used to
> determine which groups a client should be joined to. Currently I have
> this running out of cron on a schedule, however would like it to be
> triggered when systems are registered, any way to achieve this?
It's a hack but you could trigger such an activity by designating an RPM to
be installed for your particular activation key and have a %post section in
the RPM execute something for you.
--
Jon Miller
More information about the Spacewalk-list
mailing list