On Sep 26, 2011, at 10:52 PM, James Cammarata wrote:

> 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.

The copied trigger goes in /var/lib/cobbler/triggers/install/post/ --  
right ?

And are you sure there is no way to get a fact from client to server ?
If not, I can generate the same "fact" on the server side.
I believe I have access to the cobbler system info for the just- 
installed machine.
Please correct me if I am mistaken.

And thanks for your responses.
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to