Vreman, Peter - Acision wrote:
Might it be a good idea to include by default a snippet that sets the COBBLER_SERVER environment?
Below is the snippet post_cobbler_env that I’m now using:
echo "export COBBLER_SERVER=@@server@@" > /etc/profile.d/cobbler.sh
echo "setenv COBBLER_SERVER @@server@@" > /etc/profile.d/cobbler.csh
Regards,
Peter
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
cobbler mailing list cobbler@lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
Originally I had intended to create a configuration file for koan in %post, and have koan know to read it if it exists.
However, this seems to be a simpler way to do things, especially because the configuration file wouldn't be present on a system that did "yum install koan" and was not installed from cobbler.
I'll add this.
Thanks!
--Michael