[Ovirt-devel] Re: [PATCH recipe] Move logic for appliance setup from kickstart to recipe

Alan Pevec apevec at redhat.com
Wed Nov 12 12:47:11 UTC 2008


Perry Myers wrote:
> +++ b/appliances/ovirt/templates/ovirt-server-appliance-setup.erb
...
> +# Import cobbler profiles
> +/usr/sbin/cobbler-import
> +
> +# TODO use Augeas 0.3.0 Inifile lens
> +sed -i -e "s/^module = authn_denyall.*/module = authn_configfile/" \
> +    /etc/cobbler/modules.conf
> +sed -i -e "s/^server:.*/server: '192.168.50.2'/" \
> +    -e "s/^next_server:.*/next_server: '192.168.50.2'/" \
> +    /etc/cobbler/settings
> +sed -i -e '/kernel /a \\tIPAPPEND 2' /etc/cobbler/pxesystem.template
> +sed -i -e "s/^ONTIMEOUT.*/ONTIMEOUT $(cat /tmp/cobbler-default)/" \
> +    /etc/cobbler/pxedefault.template

few issues here:
- cobbler-import needs cobbler running and ACE runs at 95 while cobbler comes later at 99
  previously we were doing cobbler-import in S99local
- cobbler-import should be run _after_ cobbler config is modified
- /tmp/cobbler-default is MIA, previously it was set in ks %post




More information about the ovirt-devel mailing list