On Wed, Jul 18, 2012 at 6:27 AM, Jakov Sosic <[email protected]> wrote:
> Hi.
>
> I want to run some custom actions on the cobbler machine after system is
> deployed.
>
> For example, every system installation will generate new host DSA/RSA
> keys and that's why I need to remove entry from known_hosts for
> reinstalled system. Also, I want to remove localhost.localdomain puppet
> client certificate which is generated at every reinstall because of my
> current DHCP/DNS/ISO setup...
>
> Is there a way to run custom scripts? It would be cool if I could send
> some parameter to the script from cobbler, for example system's name.

What you want is triggers (specifically a post install trigger):

http://cobbler.github.com/manuals/2.2.3/5/5/1_-_Triggers.html

That documentation is a little out of date, but should get you
started. Just be sure to include the SNIPPET("kickstart_done") line in
your kickstart. If you're using a Red Hat based distro (CentOS,
Fedora, etc.) this will work perfectly out of the box. For any other
distro type you may need to do a little bit of work to get this going
(especially with the preseed formats).

For the local client cert for puppet, I believe you would run that on
each new system, so just remove it in %post. There are already
triggers for puppet that can be enabled by changing settings (look
through /etc/cobbler/settings for them).
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to