<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.hoenzb
        {mso-style-name:hoenzb;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Thanks for the input everyone, definitely got me thinking.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">I’m just going to stick with basic manual assignment of machines to configuration channels for now<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:maroon">Alex Dacre</span><span style="font-family:"Segoe UI",sans-serif;color:#282828"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:gray">Systems Engineer</span><span style="font-size:11.0pt;font-family:"Segoe UI",sans-serif;color:#282828"><o:p></o:p></span></p>
<p class="MsoNormal" style="background:white"><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:gray">+44 131 560 1466</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:gray"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> spacewalk-list-bounces@redhat.com [mailto:spacewalk-list-bounces@redhat.com]
<b>On Behalf Of </b>Waldirio Manhães Pinheiro<br>
<b>Sent:</b> 23 March 2015 13:37<br>
<b>To:</b> spacewalk-list@redhat.com<br>
<b>Subject:</b> Re: [Spacewalk-list] Configuration Channels<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hello Friends, good morning<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Agree with you Jens, independent you can put this script a little bit "smart" to attend your necessity or in fact implement with puppet.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Different ways to answer the question and we have point's that we are not talking about, for example:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">- Is it possible install puppet in prod environment !?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">- The SW admin knows puppet !?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">- etc<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">So, let's moving forward. :)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Take Care<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><br clear="all">
<o:p></o:p></p>
<div>
<div>
<div>
<p class="MsoNormal">______________<br>
Atenciosamente<br>
Waldirio<br>
msn: <a href="mailto:waldirio@gmail.com" target="_blank">waldirio@gmail.com</a><br>
Skype: waldirio<br>
Site: <a href="http://www.waldirio.com.br" target="_blank">www.waldirio.com.br</a><br>
Blog: <a href="http://blog.waldirio.com.br" target="_blank">blog.waldirio.com.br</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">LinkedIn: <a href="http://br.linkedin.com/pub/waldirio-pinheiro/22/b21/646" target="_blank">
http://br.linkedin.com/pub/waldirio-pinheiro/22/b21/646</a><br>
PGP: <a href="http://www.waldirio.com.br/public.html" target="_blank">www.waldirio.com.br/public.html</a><o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Mon, Mar 23, 2015 at 10:16 AM, Jens Neu <<a href="mailto:jens.neu@biotronik.com" target="_blank">jens.neu@biotronik.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal"><tt><span style="font-size:10.0pt">> #!/bin/bash</span></tt>
<br>
<tt><span style="font-size:10.0pt">> if [ -f /var/log/ref_teste ]; then</span></tt>
<br>
<tt><span style="font-size:10.0pt">>   echo "Script was defined - $(date)"           | tee -a /var/log/messages</span></tt>
<br>
<tt><span style="font-size:10.0pt">>   echo "Removing $0 from /etc/cron.hourly"      | tee -a /var/log/messages</span></tt>
<br>
<tt><span style="font-size:10.0pt">>   echo "### rm -rf /etc/cron.hourly/$0"         | tee -a /var/log/messages</span></tt>
<br>
<tt><span style="font-size:10.0pt">> else</span></tt> <br>
<tt><span style="font-size:10.0pt">>   echo "TEST ### $(date) ###"                   | tee -a /var/log/messages</span></tt>
<br>
<tt><span style="font-size:10.0pt">>   </span></tt> <br>
<tt><span style="font-size:10.0pt">>   # Command here !!!!</span></tt> <br>
<tt><span style="font-size:10.0pt">>   service xpto_daemon restart</span></tt> <br>
<tt><span style="font-size:10.0pt">> </span></tt><span style="font-size:10.0pt;font-family:"Courier New""><br>
<tt>>   touch /var/log/ref_teste</tt></span> <br>
<br>
<tt><span style="font-size:10.0pt">Thats useful, yes. But I require "arbitrary commands" to depend on host groups, activations keys, etc. If the command is "service httpd restart", fine. But if the command requires variables to be filled in other than these:
</span></tt><a href="https://access.redhat.com/documentation/en-US/Red_Hat_Network_Satellite/5.0/html/Reference_Guide/s3-sm-file-macros.html" target="_blank"><tt><span style="font-size:10.0pt">https://access.redhat.com/documentation/en-US/Red_Hat_Network_Satellite/5.0/html/Reference_Guide/s3-sm-file-macros.html</span></tt></a>
<br>
<tt><span style="font-size:10.0pt">you're in the woods.</span></tt> <br>
<br>
<tt><span style="font-size:10.0pt">Besides, if you combine this workaround with my #2 you possibly have restarting apaches every hour/day when someone forgets to remove this file from the config channel. All poison to a "human environment" that can not cope
 with puppet (right now) for reasons whatsoever.</span></tt> <br>
<span style="color:#888888"><br>
</span><tt><span style="font-size:10.0pt;color:#888888">-Jens</span></tt><span style="font-family:"Arial",sans-serif;color:#888888"><br>
<br>
</span><br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>