[cobbler] Kistart done stanza - not expanding

Andrew Hamilton ahamilton55 at gmail.com
Thu Mar 7 05:44:08 UTC 2013


Hi,

You could possibly use the kickstart metadata (--ksmeta) field the extra
fields you are looking to add. Check out
https://fedorahosted.org/cobbler/wiki/KickstartTemplating for more details
but basically you can put in some space separated key=value pairs that then
can be accessed and placed in-line through the Cheetah templates with the
$getVar() function.

Regards,

Andrew


On Wed, Mar 6, 2013 at 8:29 AM, Sarakaitis, Eric <
Eric.Sarakaitis at cbts.cinbell.com> wrote:

> Got it, excellent!
>
> Here what I'm testing now:
>
> $SNIPPET('network_config_esxi')
> accepteula
> install --firstdisk --overwritevmfs
> rootpw vmware123
> reboot
> %pre --interpreter=busybox
> $SNIPPET('kickstart_start')
> %firstboot --interpreter=busybox
> $SNIPPET('esxi_51_configure_nested')
> $SNIPPET('esxi_51_ssh_config')
> $SNIPPET('esxi_51_local_disk_rename')
> $SNIPPET('esxi_51_create_vswitch1_vswitch2')
> $SNIPPET('esxi_51_configure_vswitch_uplinks')
> $SNIPPET('esxi_51_configure_active_uplinks')
> $SNIPPET('esxi_51_configure_vswitch_failover')
> $SNIPPET('esxi_51_configure_vswitch_cdp')
> $SNIPPET('esxi_51_configure_vswitch_security')
> $SNIPPET('esxi_51_configure_vswitch_portgroups')
> $SNIPPET('esxi_51_enable_shell')
> $SNIPPET('esxi_51_syslog_config')
> $SNIPPET('esxi_51_syslog_rotation')
> $SNIPPET('esxi_51_ntp_config')
> $SNIPPET('esxi_51_firewall_config')
> $SNIPPET('esxi_51_finish')
> $SNIPPET('kickstart_done')
>
> In this build, I need to specify NTP server, management server ip,  and 3
> vmkernel IP's, how would I do that in the system profile if those fields
> are not available?
>
> I'd rather not embed anything into the ks
>
> ____________________________
> Eric Sarakaitis
> Sr. Systems Engineer
> 419.303.4624
> eric.sarakaitis at cbts.cinbell.com<mailto:eric.sarakaitis at cbts.cinbell.com>
> [cid:8E83CF36-9BD7-49C3-A98E-0701299F8AE4]
> [cid:598BE9E0-C0DF-4B89-9F76-9E5541109BBC]
>
> From: James Cammarata <jimi at sngx.net<mailto:jimi at sngx.net>>
> Reply-To: cobbler mailing list <cobbler at lists.fedorahosted.org<mailto:
> cobbler at lists.fedorahosted.org>>
> Date: Wednesday, March 6, 2013 11:09 AM
> To: cobbler mailing list <cobbler at lists.fedorahosted.org<mailto:
> cobbler at lists.fedorahosted.org>>
> Subject: Re: [cobbler] Kistart done stanza - not expanding
>
> On Wed, Mar 6, 2013 at 9:44 AM, Sarakaitis, Eric <
> Eric.Sarakaitis at cbts.cinbell.com<mailto:Eric.Sarakaitis at cbts.cinbell.com>>
> wrote:
> Do you put that like this?
>
> $SNIPPET('kickstart_start')
> $SNIPPET('network_config_esxi')
> accepteula
> install --firstdisk --overwritevmfs
> rootpw vmware123
> reboot
>
> %pre --interpreter=busybox
>
> %firstboot --interpreter=busybox
> $SNIPPET('kickstart_done')
>
> No, the kickstart_start snippet needs to go in the %pre section, and the
> kickstart_done snippet needs to go in the %post section (typically the last
> entry). Check the sample_end.ks that ships with cobbler to see how we do it
> by default.
>
> _______________________________________________
> cobbler mailing list
> cobbler at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/cobbler
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fedorahosted.org/pipermail/cobbler/attachments/20130306/80b5c7c4/attachment.html>


More information about the cobbler mailing list