On Mon, Mar 18, 2013 at 6:56 AM, Robert Jacobson <span dir="ltr"><<a href="mailto:Robert.C.Jacobson@nasa.gov" target="_blank">Robert.C.Jacobson@nasa.gov</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I'd like to override a profile-set variable for one particular system, but I can't figure out how to do it. For the system, I want to completely replace name_servers_search with "<a href="http://foo.com" target="_blank">foo.com</a>", but when I put in '<a href="http://foo.com" target="_blank">foo.com</a>' for name_servers_search for the system (using the web interface), it just appended it to the profile's value list rather than replacing it:<br>
<br>
# cobbler profile dumpvars --name=feds | grep name_servers_search<br>
default_name_servers_search : []<br>
name_servers_search : ['<a href="http://gsfc.nasa.gov" target="_blank">gsfc.nasa.gov</a>', '<a href="http://nasa.gov" target="_blank">nasa.gov</a>']<br>
<br>
# cobbler system dumpvars --name=test | grep name_servers_search<br>
default_name_servers_search : []<br>
name_servers_search : ['<a href="http://gsfc.nasa.gov" target="_blank">gsfc.nasa.gov</a>', '<a href="http://nasa.gov" target="_blank">nasa.gov</a>', '<a href="http://foo.com" target="_blank">foo.com</a>']<br>
<br>
Platform: cobbler-2.2.3-2.el6.noarch, cobbler-web-2.2.3-2.el6.noarch (EPEL) on RHEL6.4</blockquote><div><br></div><div>Unfortunately there is no way around this, name servers and the search domains are inherited up. What you could do instead is to copy your "feds" profile and name it "feds-no-dns" or something similar which will have no name server search assigned, and then assign systems to it for which you want to manually specify the DNS variables.</div>
</div>