FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora/Linux Management Tools

 
 
LinkBack Thread Tools
 
Old 03-12-2009, 04:06 PM
Terry McIntyre
 
Default no substitution for ip_address in kickstart file

I have a cobbler 1.4.1 installation, and recently a kickstart failed.
Looking at the
http://my.host/cblr/svc/op/ks/system/sapcps kickstart file, I find this line:

network --hostname=sapcps.mydomain --bootproto=static
--netmask=255.255.254.0 --ip=$ip_address --gateway=192.168.62.40
--device=eth0 --onboot=on

The source line in /etc/cobbler/sample.ks is:

network --hostname=${hostname} --bootproto=static
--netmask=255.255.254.0 --ip=$ip_address --gateway=$gateway
--device=eth0 --onboot=on

$hostname and $gateway are expanded; $ip_address is not.

These values come from /var/lib/cobbler/config/system.d/sapcps:

---
comment: '
ctime: 0
depth: 2
gateway: '192.168.62.40'
hostname: sapcps.mydomain
image: '
interfaces:
eth0:
bonding: '
bonding_master: '
bonding_opts: '
dhcp_tag: '
dns_name: sapcps.mydomain
ip_address: '192.168.62.184'
mac_address: '00:21:5E:40:9F:64'
static: True
static_routes: []
subnet: '255.255.254.0'
virt_bridge: '
kernel_options:
gateway: '192.168.62.40'
ip_address: '192.168.62.184'
ip: '192.168.62.184'
netmask: '255.255.254.0'
kernel_options_post: {}
kickstart: <<inherit>>
ks_meta: {}
mgmt_classes: []
mtime: 0
name: sapcps
name_servers: <<inherit>>
netboot_enabled: True
owners:
- admin
parent: '
power_address: '
power_id: '
power_pass: '
power_type: ipmitool
power_user: '
profile: Redhat4x64-x86_64
redhat_management_key: <<inherit>>
server: <<inherit>>
template_files: {}
uid: MTIzNjM2MjM5MS45MTc4NTk5NzUuNDkyOQ
virt_bridge: <<inherit>>
virt_cpus: <<inherit>>
virt_file_size: <<inherit>>
virt_path: <<inherit>>
virt_ram: <<inherit>>
virt_type: <<inherit>>


What am I missing?

Thanks for any assistance.
--
Terry McIntyre
UNIX for hire
Software Development, Systems Administration, Security
terry.mcintyre@gmail.com

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 
Old 03-17-2009, 12:00 AM
Nifty Fedora Mitch
 
Default no substitution for ip_address in kickstart file

On Thu, Mar 12, 2009 at 10:06:47AM -0700, Terry McIntyre wrote:
>
> I have a cobbler 1.4.1 installation, and recently a kickstart failed.
> Looking at the
> http://my.host/cblr/svc/op/ks/system/sapcps kickstart file, I find this line:
>
> network --hostname=sapcps.mydomain --bootproto=static
> --netmask=255.255.254.0 --ip=$ip_address --gateway=192.168.62.40
> --device=eth0 --onboot=on
>
> The source line in /etc/cobbler/sample.ks is:
>
> network --hostname=${hostname} --bootproto=static
> --netmask=255.255.254.0 --ip=$ip_address --gateway=$gateway
> --device=eth0 --onboot=on
>
> $hostname and $gateway are expanded; $ip_address is not.
>
> These values come from /var/lib/cobbler/config/system.d/sapcps:

I do not know but explore these three different versions.

--netmask=255.255.254.0 --ip=ip_address --gateway=192.168.62.40
--netmask=255.255.254.0 --ip=$ip_address --gateway=192.168.62.40
--netmask=255.255.254.0 --ip=${ip_address} --gateway=192.168.62.40

It is not clear to me where you define "ip_address" and where
you intend to assign it.

See the part about an elephant:
https://fedorahosted.org/cobbler/wiki/KickstartTemplating




--
T o m M i t c h e l l
Found me a new hat, now what?

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@redhat.com
https://www.redhat.com/mailman/listinfo/et-mgmt-tools
 

Thread Tools




All times are GMT. The time now is 02:12 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org