On Mon, Sep 26, 2011 at 9:00 PM, Dan White <[email protected]> wrote:
> OK, how would I go about making a replacement trigger that uses my
> "certname" formula ?
>
> On Sep 26, 2011, at 9:50 PM, James Cammarata wrote:

The problem is that the trigger executes on the server side, with a
fixed set of parameters that cannot be overridden - while the fact you
wrote lives on the client side.  The best you can do with this would
be to copy the trigger and customize it in the following way. Change
this line:

hostname = system[ "hostname" ]

To use some other field in the system (ie. ksmeta), and then set that
field in your object. That hostname variable is what's passed into the
puppetca command.

Remember to restart cobblerd after making module changes.
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to