<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div><span>Hi Jeff,</span></div><div id="yui_3_16_0_1_1435839361314_4984"><span><br></span></div><div dir="ltr" id="yui_3_16_0_1_1435839361314_4986"><span id="yui_3_16_0_1_1435839361314_4985">thank you. I managed to get $http_server value and transfer it to script via </span>/var/lib/rhn/kickstarts/snippets/redhat_register. </div>  <br><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> On Tuesday, June 30, 2015 7:43 PM, "Kalchik, Jeffery" <JDKalchik@landolakes.com> wrote:<br> </font> </div>  <br><br> <div class="y_msg_container"><div id="yiv9716560327"><style>#yiv9716560327 #yiv9716560327 --
 
 _filtered #yiv9716560327 {font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;}
 _filtered #yiv9716560327 {font-family:SimSun;panose-1:2 1 6 0 3 1 1 1 1 1;}
 _filtered #yiv9716560327 {panose-1:2 4 5 3 5 4 6 3 2 4;}
 _filtered #yiv9716560327 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered #yiv9716560327 {panose-1:2 11 5 2 4 2 4 2 2 3;}
 _filtered #yiv9716560327 {panose-1:2 1 6 0 3 1 1 1 1 1;}
#yiv9716560327  
#yiv9716560327 p.yiv9716560327MsoNormal, #yiv9716560327 li.yiv9716560327MsoNormal, #yiv9716560327 div.yiv9716560327MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}
#yiv9716560327 a:link, #yiv9716560327 span.yiv9716560327MsoHyperlink
        {color:blue;text-decoration:underline;}
#yiv9716560327 a:visited, #yiv9716560327 span.yiv9716560327MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
#yiv9716560327 p.yiv9716560327msonormal, #yiv9716560327 li.yiv9716560327msonormal, #yiv9716560327 div.yiv9716560327msonormal
        {margin-right:0in;margin-left:0in;font-size:12.0pt;}
#yiv9716560327 p.yiv9716560327msochpdefault, #yiv9716560327 li.yiv9716560327msochpdefault, #yiv9716560327 div.yiv9716560327msochpdefault
        {margin-right:0in;margin-left:0in;font-size:12.0pt;}
#yiv9716560327 span.yiv9716560327msohyperlink
        {}
#yiv9716560327 span.yiv9716560327msohyperlinkfollowed
        {}
#yiv9716560327 span.yiv9716560327emailstyle17
        {}
#yiv9716560327 p.yiv9716560327msonormal1, #yiv9716560327 li.yiv9716560327msonormal1, #yiv9716560327 div.yiv9716560327msonormal1
        {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}
#yiv9716560327 span.yiv9716560327msohyperlink1
        {color:#0563C1;text-decoration:underline;}
#yiv9716560327 span.yiv9716560327msohyperlinkfollowed1
        {color:#954F72;text-decoration:underline;}
#yiv9716560327 span.yiv9716560327emailstyle171
        {color:#1F497D;}
#yiv9716560327 p.yiv9716560327msochpdefault1, #yiv9716560327 li.yiv9716560327msochpdefault1, #yiv9716560327 div.yiv9716560327msochpdefault1
        {margin-right:0in;margin-left:0in;font-size:10.0pt;}
#yiv9716560327 span.yiv9716560327EmailStyle27
        {color:#1F497D;}
#yiv9716560327 .yiv9716560327MsoChpDefault
        {font-size:10.0pt;}
 _filtered #yiv9716560327 {margin:1.0in 1.0in 1.0in 1.0in;}
#yiv9716560327 div.yiv9716560327WordSection1
        {}
#yiv9716560327 </style><div>
<div class="yiv9716560327WordSection1">
<div class="yiv9716560327MsoNormal"><span style="font-size:11.0pt;">Good morning, Zyrius (et al.)</span></div> 
<div class="yiv9716560327MsoNormal"><span style="font-size:11.0pt;">  </span></div> 
<div class="yiv9716560327MsoNormal"><span style="font-size:11.0pt;">You should be able to acquire the value of $http_server in any kickstart file or snippet, as long as it’s not in the middle of a #raw/#end raw tag set.  You might
 want to take a look in /var/lib/cobbler/snippets/download_config_files for a Spacewalk distributed snippet that uses $http_server.</span></div> 
<div class="yiv9716560327MsoNormal"><span style="font-size:11.0pt;">  </span></div> 
<div class="yiv9716560327MsoNormal"><span style="font-size:11.0pt;">The line of code below that used ACTIVATION_KEYS used $getVar to acquire the value of $redhat_management_key, or a default value.  This way, I know that ACTIVATION_KEY
 does have a value (whether or not is actually valid is left as an exercise for the student <grin>).  This line of code exists in a code snippet, for each major production channel here, referenced in the appropriate kickstart file (I use cobbler more directly
 than most.)  I don’t see any reason that you shouldn’t be able to use this technique within Spacewalk’s kickstart profiles and scripts.</span></div> 
<div class="yiv9716560327MsoNormal"><span style="font-size:11.0pt;">  </span></div> 
<div class="yiv9716560327MsoNormal"><span style="font-size:11.0pt;">All of my system provisioning starts down in cobbler, and I’m using the cobbler terminology above.  If you’re working within the Spacewalk web interface, you’ll
 be in the kickstart management section, working with kickstart profiles (equivalent of cobbler kickstart files,) and scripts (equivalent of cobbler snippets.)  After making your changes to the Spacewalk kickstart profiles and Spacewalk kickstart scripts, check
 the Spacewalk kickstart file to see what your actual kickstart file will be.</span></div> 
<div class="yiv9716560327MsoNormal"><span style="font-size:11.0pt;">  </span></div> 
<div class="yiv9716560327MsoNormal"><span style="font-size:11.0pt;">Edit: And there’s the trick……near the bottom of the Spacewalk kickstart script edit page, there’s a series of check boxes for nochroot, erroronfail, and Template. 
 You have to check the Template box to enable the cobbler macro/koan/cheetah/template system.  If not, you’ll have to hard code your values in the script, which is not what you want to do, apparently.</span></div> 
<div class="yiv9716560327MsoNormal"><span style="font-size:11.0pt;">                                                                                                                                                                                                                                           
</span></div> 
<div class="yiv9716560327MsoNormal"><span style="font-size:11.0pt;">Jeff Kalchik</span></div> 
<div class="yiv9716560327MsoNormal"><span style="font-size:11.0pt;">Systems Engineering</span></div> 
<div class="yiv9716560327MsoNormal"><span style="font-size:11.0pt;">Land O’Lakes</span></div> 
<div class="yiv9716560327MsoNormal"><span style="font-size:11.0pt;">651-375-2421</span></div> 
<div class="yiv9716560327MsoNormal"><span style="font-size:11.0pt;">  </span></div> 
<div class="yiv9716560327MsoNormal"><span style="font-size:11.0pt;">  </span></div> 
<div class="yiv9716560327yqt9211555662" id="yiv9716560327yqt92713"><div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in;">
<div class="yiv9716560327MsoNormal"><b><span style="font-size:11.0pt;">From:</span></b><span style="font-size:11.0pt;"> zyrius as [mailto:zyriusa@yahoo.com]
<br clear="none">
<b>Sent:</b> Tuesday, June 30, 2015 3:31 AM<br clear="none">
<b>To:</b> Kalchik, Jeffery; spacewalk-list@redhat.com<br clear="none">
<b>Subject:</b> Re: [Spacewalk-list] Kickstart parameters and values</span></div> 
</div>
</div>
<div class="yiv9716560327MsoNormal">  </div> 
<div>
<div id="yiv9716560327yui_3_16_0_1_1435652520633_3153">
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="">Hi Jeff,</span></div> 
</div>
<div id="yiv9716560327yui_3_16_0_1_1435652520633_3153">
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="">  </span></div> 
</div>
<div id="yiv9716560327yui_3_16_0_1_1435652520633_3153">
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="">I'm creating kickstart file with spacewalk kickstart wizard. Maybe you could advice where and what should i write to get value of </span><span style="font-size:10.5pt;">$http_server
 or $redhat_management_server. I want to download some extra files from spacewalk master or proxies, but need to know from which server kickstart was called.</span><span style=""></span></div> 
</div>
<div id="yiv9716560327yui_3_16_0_1_1435652520633_3153">
<div class="yiv9716560327MsoNormal" style="background:white;"><span style=""> </span></div> 
</div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="">  </span></div> 
<div>
<div class="yiv9716560327MsoNormal" style="margin-bottom:12.0pt;background:white;"><span style="">  </span></div> 
</div>
<div>
<div>
<div>
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="font-size:10.0pt;">On Monday, June 29, 2015 5:17 PM, "Kalchik, Jeffery" <<a rel="nofollow" shape="rect" ymailto="mailto:JDKalchik@landolakes.com" target="_blank" href="mailto:JDKalchik@landolakes.com">JDKalchik@landolakes.com</a>> wrote:</span><span style=""></span></div> 
</div>
<div class="yiv9716560327MsoNormal" style="margin-bottom:12.0pt;background:white;"><span style="">  </span></div> 
<div>
<div id="yiv9716560327">
<div>
<div>
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="font-size:11.0pt;">Good morning, Zyrius.</span><span style=""></span></div> 
</div>
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="font-size:11.0pt;"> </span><span style=""></span></div> 
</div>
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="font-size:11.0pt;">They seem to work for me.</span><span style=""></span></div> 
</div>
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="font-size:11.0pt;"> </span><span style=""></span></div> 
</div>
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="font-size:11.0pt;">Those are not shell variables, but koan/cheetah fields.  You can’t use them directly inside #raw/#end raw tags.  You can set them into
 shell variables, though.</span><span style=""></span></div> 
</div>
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="font-size:11.0pt;"> </span><span style=""></span></div> 
</div>
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="font-size:11.0pt;">From a code snippet:</span><span style=""></span></div> 
</div>
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="font-size:11.0pt;"> </span><span style=""></span></div> 
</div>
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="font-size:11.0pt;">export ACTIVATION_KEYS='$getVar("redhat_management_key","DEFAULT_KEY”)'</span><span style=""></span></div> 
</div>
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="font-size:11.0pt;"> </span><span style=""></span></div> 
</div>
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="font-size:11.0pt;">From the resulting kickstart:</span><span style=""></span></div> 
</div>
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="font-size:11.0pt;"> </span><span style=""></span></div> 
</div>
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="font-size:11.0pt;">export ACTIVATION_KEYS='SERVER_KEY'</span><span style=""></span></div> 
</div>
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="font-size:11.0pt;"> </span><span style=""></span></div> 
</div>
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="font-size:11.0pt;">Yes, I’ve changed the values.  I’ve been doing this for 5+ years.</span><span style=""></span></div> 
</div>
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="font-size:11.0pt;"> </span><span style=""></span></div> 
</div>
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="font-size:11.0pt;">Jeff Kalchik</span><span style=""></span></div> 
</div>
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="font-size:11.0pt;">Systems Engineering</span><span style=""></span></div> 
</div>
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="font-size:11.0pt;">Land O’Lakes</span><span style=""></span></div> 
</div>
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="font-size:11.0pt;">651-375-2421</span><span style=""></span></div> 
</div>
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="font-size:11.0pt;"> </span><span style=""></span></div> 
</div>
<div id="yiv9716560327yqt14403">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in;">
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><b><span style="font-size:11.0pt;">From:</span></b><span style="font-size:11.0pt;">
<a rel="nofollow" shape="rect" ymailto="mailto:spacewalk-list-bounces@redhat.com" target="_blank" href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.com</a> [<a rel="nofollow" shape="rect" ymailto="mailto:spacewalk-list-bounces@redhat.com" target="_blank" href="mailto:spacewalk-list-bounces@redhat.com">mailto:spacewalk-list-bounces@redhat.com</a>]
<b>On Behalf Of </b>zyrius as<br clear="none">
<b>Sent:</b> Monday, June 29, 2015 3:38 AM<br clear="none">
<b>To:</b> <a rel="nofollow" shape="rect" ymailto="mailto:spacewalk-list@redhat.com" target="_blank" href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br clear="none">
<b>Subject:</b> [Spacewalk-list] Kickstart parameters and values</span><span style=""></span></div> 
</div>
</div>
</div>
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style=""> </span></div> 
</div>
<div>
<div id="yiv9716560327yui_3_16_0_1_1435566931719_3680">
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="">Hello,</span></div> 
</div>
</div>
<div id="yiv9716560327yui_3_16_0_1_1435566931719_3680">
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="font-size:10.5pt;">I'm creating kickstart file on spacewalk 2.3 and want to use value of $http_server or $redhat_management_server in post script section.
 It works in advanced options -> custom options, but not in post scripts. How can i get that value in post section  script?</span><span style=""></span></div> 
</div>
</div>
<div id="yiv9716560327yui_3_16_0_1_1435566931719_3680">
<div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style=""> </span></div> 
</div>
</div>
</div>
</div>
</div>
<div class="yiv9716560327MsoNormal" style="background:white;"><span style="">This message may contain confidential material from Land O'Lakes, Inc. (or its subsidiary) for the sole use of the intended recipient(s) and may not be
 reviewed, disclosed, copied, distributed or used by anyone other than the intended recipient(s). If you are not the intended recipient, please contact the sender by reply email and delete all copies of this message.
</span></div> 
</div>
</div>
<div class="yiv9716560327MsoNormal" style="margin-bottom:12.0pt;background:white;"><span style="">  </span></div> 
</div>
</div>
</div>
</div>
</div></div>
</div>
This message may contain confidential material from Land O'Lakes, Inc. (or its subsidiary) for the sole use of the intended recipient(s) and may not be reviewed, disclosed, copied, distributed or used by anyone other than the intended recipient(s). If you are
 not the intended recipient, please contact the sender by reply email and delete all copies of this message.
</div></div><br><div class="yqt9211555662" id="yqt48363">_______________________________________________<br clear="none">Spacewalk-list mailing list<br clear="none"><a shape="rect" ymailto="mailto:Spacewalk-list@redhat.com" href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br clear="none"><a shape="rect" href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></div><br><br></div>  </div> </div>  </div></div></body></html>