resolving nested ksmeta variables
by Paul Company
Is there a way to do the following:
cobbler system edit --name=foo --ksmeta="loc=bar booter=host.$loc"
So the kickstart file would give
$loc = bar
$booter = host.bar
If you do what I showed above, you get
$loc = bar
booter=host.$loc
Paul
14 years, 9 months
Buidiso and static ip builds
by Simon Woolsgrove
I notice when creating buildiso for systems using a static IP setup, the code attempts to pull in the IP info for the boot line e.g. from the buildiso code
# add network info to avoid DHCP only if it is available
if data.has_key("bonding_master_eth0") and data["bonding_master_eth0"] != "":
primary_interface = data["bonding_master_eth0"]
else:
primary_interface = "eth0"
......
The issue with above is that for large systems with multiple NIC's its very common (in our environment) for eth0 not to be the boot interface, we also have a vmware vpshere server build working with cobbler and here the interfaces are called vmnic0,1,2 ... so there is never a eth0
I know were not happy with adding extra options to cobbler but something like --bootinf=<interface> would help change the code above, this could be a check button in the webui. When set we could also add ksdevice=mac else ksdevice=<nic> if a mac was not supplied (or relevant code for o/s being installed).
Or is there another way to get cobbler to populate the correct data, for the boot line ? If I add this via the kernel_options things just get duplicated.
Cheers,
Simon
14 years, 9 months
Adding packages to distro?
by Richard Anderson
Hello,
I'm wondering if there's a way to add specific packages to the distro used for kickstarting? For example, let's say I want to install MySQL 4.1.22 (yes, I know it's old) but the distro only includes MySQL 5. Is there some way to make the package available during the kickstart? Trying to avoid post-kickstart package installations...
Thank you,
Rich
_________________________________________________________________
Insert movie times and more without leaving Hotmail®.
http://windowslive.com/Tutorial/Hotmail/QuickAdd?ocid=TXT_TAGLM_WL_HM_Tut...
14 years, 9 months
If you use CobblerWeb, what's your workflow with other webapps?
by Michael DeHaan
For instance, do you ever want to tweak a system in Cobbler then look at
it in Nagios/Cacti/Your-Favorite App?
I'm wondering if it makes sense to (where the other applications permit
it), putting up some simple jump links on the "list" page that will take
you to the pages
for those specific systems, to make it easier to open those other
programs in new tabs/etc and show the systems.
That all being said, I'm not aware of what apps this makes sense for,
but in the sense of Cobbler as "one ring to bind them",
lightweight-CMDB-but-not-quite sort of thing?
(Note: this does not imply hard-dependencies of any kind, and would
probably need minimal configuration in settings)
--Michael
14 years, 9 months
http_server appears as <<override>>
by Christopher Dale
I've just installed cobbler 1.6.6 on a brand new installation. The
http_server is not defined. I have looked at two other installations which
were upgraded to 1.6.6 from earlier version. My configs are the same. How
do I get http_server to be defined (other than had coding in the distro).
This also happens with the server substitution in yum_repo_stanza. What
have I missed?
Thx in advance.
14 years, 9 months
Built in kickstart variable question
by Paul Company
I read https://fedorahosted.org/cobbler/wiki/KickstartTemplating
And it says "Cobbler includes a lot of built in kickstart variables."
For example,
distros include default_name_servers and default_name_servers_search
profiles include name_servers and name_servers_search
I want to set name_servers_search in the Profile only.
If I add name_servers_search in /etc/cobbler/settings it appears in
distros and profiles.
I think I can use --ksmeta to override the variable, but that's kind
of strange in that it still looks unset when you dumpvars
# cobbler profile edit --foo --ksmeta="name_servers_search=bar"
# cobbler profile dumpvars --name=foo | grep name_server
'default_name_servers': [],
'default_name_servers_search': [],
'ks_meta': {'name_servers_search': 'bar'
'name_servers': [],
'name_servers_search': []
I think this will set name_servers_search to bar in my kickstart file?
Or is there another way to do this without using --ksmeta so the
output looks like:
# cobbler profile dumpvars --name=foo | grep name_server
'default_name_servers': [],
'default_name_servers_search': [],
'name_servers': [],
'name_servers_search': [bar]
Thanks,
Paul
14 years, 9 months
xmlrpc import
by Thomas S Hatch
Is there an xmlrpc equivalent to the command line cobbler import? And can
someone point me to where in the source code I can find xmlrpc info? (I
know of the docs)
-Tom Hatch
14 years, 9 months
installing koan on new system
by Larry Matter
I am using cobbler to install CentOS 5.3 on a new system which will be a
Xen host. I then want to install koan on that system so that I can
remotely create VMs on it.
The stupid question is, what's the recommended way to automatically
install koan on the new Xen host?
I'm sure this is a FAQ, but searching on "koan kickstart" returns just
about every page in the wiki. After an hour of serious googling, I've
learned a lot, but not the answer to this question.
I did add EPEL as a repository to the new system, hoping then I could just
add "koan" as a package in the kickstart, but it seems the new repository
isn't available during install, only afterwards.
Any help appreciated!
Thanks,
Larry Matter
14 years, 9 months
"cobbler replicate" questions
by Paul Company
Scenario:
server1 is the master cobbler server with files A, B, C
server2 is the client cobbler server with files A, B, C, D, E
A, B, C are identical on both servers.
When you run "cobbler replicate" on server2...
Q1: Are files A, B, C on server1 shipped over to server2,
overriding A, B, C on server2 that already exist.
Or is it smart enough to save bandwith and not ship the files over?
Q2: Are files D, E on server2 removed after the replication?
Or are they left in place?
Does it do a union, or does it force identical configurations?
Thank you,
Paul
14 years, 10 months