On Mon, Jul 30, 2012 at 9:47 AM, Jakov Sosic <[email protected]> wrote:
> 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"?

Its inside the actual cobbler system definition where you want it defined.

"Keeping Class Mappings In Cobbler

First, we assign management classes to distro, profile, or system objects.

cobbler distro edit --name=distro1 --mgmt-classes="distro1"
cobbler profile add --name=webserver --distro=distro1
--mgmt-classes="webserver likes_llamas" --kickstart=/etc/cobbler/my.ks
cobbler system edit --name=system --profile=webserver
--mgmt-classes="orange" --dns-name=system.example.org

For Puppet, the --dns-name (shown above) must be set because this is
what puppet will be sending to cobbler and is how we find the system.
Puppet doesn't know about the name of the system object in cobbler. To
play it safe you probably want to use the FQDN here (which is also
what you want if you were using Cobbler to manage your DNS, which you
don't have to be doing)."

I've got puppet and cobbler working together in this method using the
default snippets, so I wonder if fixing that will fix that for you.
_______________________________________________
cobbler mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/cobbler

Reply via email to