Thank you James. I see what I did wrong, I used underscores instead of dashes.
I ran # cobbler system edit --name=foo --name_servers_search="bar" usage: cobbler system edit [ARGS] cobbler: error: no such option: --name_servers_search I got confused because when you use dumpvars it displays the variable with underscores, but when you change it on the command line you're supposed to use dashes. That's a little confusing if you ask me. Paul On Tue, Jul 14, 2009 at 7:08 PM, James Cammarata<[email protected]> wrote: > > On Tue, 14 Jul 2009 18:42:30 -0700, Paul Company <[email protected]> wrote: >> 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 > > Don't set it in settings and definitely don't add it to ksmeta, add it to > the profile: > > $ cobbler profile edit --name=foo --name-servers-search="domain1.com > domain2.com" > > The problem here is that servers added to that profile will most likely > inherit this, so you may have to remove the <<inherit>> from those manually > when you add new systems. > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > _______________________________________________ > cobbler mailing list > [email protected] > https://fedorahosted.org/mailman/listinfo/cobbler > _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
