On 07/30/2012 02:56 AM, James Cammarata wrote:
Documentation is still a work in progress, unfortunately. For now,
here is a link to the wiki which should be able to get you started,
and any other questions that come up feel free to ask the mailing list
or hop on IRC (Freenode - #cobbler).
https://github.com/cobbler/cobbler/wiki/Using-cobbler-with-a-configuration-management-system
The biggest gotcha that typically comes up is you must use the
--dns-name field for the interface, as that is the field that is used
for the node name in puppet (it does not fall back to using the
--hostname field, though I think I did work on a patch to make that
naming a bit looser). That fix would be upstream from any official
version though.
I encountered the same problem. My nodes we're registering with puppet
as "localhost.localdomain".
I removed puppet snippet, and written my own set of command which goes
like this:
# Puppet
cp /etc/rc.d/rc.local /etc/rc.d/rc.local.orig
echo "/usr/sbin/puppetd --test --waitforcert 0" >> /etc/rc.d/rc.local
echo "mv /etc/rc.d/rc.local.orig /etc/rc.d/rc.local" >> /etc/rc.d/rc.local
echo "/sbin/chkconfig puppet on" >> /etc/rc.d/rc.local
echo "reboot" >> /etc/rc.d/rc.local
# turn puppet service on for reboot
/sbin/chkconfig puppet off
It's a hack but it works.
Where should I put the --dns-name to make it "by the book"?
--
Jakov Sosic
www.srce.unizg.hr
_______________________________________________
cobbler mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/cobbler