<div dir="ltr">Hello Friends,<div><br></div><div>About the big problem (point 3), follow one way</div><div><br></div><div><a href="https://www.redhat.com/archives/spacewalk-list/2014-October/msg00145.html">https://www.redhat.com/archives/spacewalk-list/2014-October/msg00145.html</a><br></div><div><br></div><div>Part of text here, but is referent to script that you can create in your conf channel to be deployed in /etc/cron.hourly, so will be executed one time and after removed automatically.</div><div><br></div><div><div style="color:rgb(0,0,0);font-size:13px">###</div><div style="color:rgb(0,0,0);font-size:13px"><div>#!/bin/bash</div><div>if [ -f /var/log/ref_teste ]; then</div><div>  echo "Script was defined - $(date)"           | tee -a /var/log/messages</div><div>  echo "Removing $0 from /etc/cron.hourly"      | tee -a /var/log/messages</div><div>  echo "### rm -rf /etc/cron.hourly/$0"         | tee -a /var/log/messages</div><div>else</div><div>  echo "TEST ### $(date) ###"                   | tee -a /var/log/messages</div><div>  </div><div>  # Command here !!!!</div><div>  service xpto_daemon restart</div><div><br></div><div>  touch /var/log/ref_teste</div><div>fi</div></div><div style="color:rgb(0,0,0);font-size:13px">###</div></div><div style="color:rgb(0,0,0);font-size:13px"><br></div><div style="color:rgb(0,0,0);font-size:13px">Let me know if you have any doubt about it.</div><div style="color:rgb(0,0,0);font-size:13px"><br></div><div style="color:rgb(0,0,0);font-size:13px">Take Care</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div>______________<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></div>
<div>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></div></div></div>
<br><div class="gmail_quote">On Mon, Mar 23, 2015 at 9:24 AM, Jens Neu <span dir="ltr"><<a href="mailto:jens.neu@biotronik.com" target="_blank">jens.neu@biotronik.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><tt><font>> 1.       Can rules be configured
for automatic subscription to <br>
> configuration channels? E.g. if the server is in subnet X then <br>
> subscribe to channel Y</font></tt>
<br>
<br></span><tt><font>You can assign config channels to activation keys;
use the desired key for subnet X and you're flying.</font></tt>
<br><span class="">
<br><tt><font>> 2.       Can configuration files
be automatically deployed?</font></tt>
<br>
<br></span><tt><font>On subscription/registration yes, there's a function
doing this. Just make sure you enable config file management during deployment/kickstart
(touch  /etc/sysconfig/rhn/allowed-actions/all)</font></tt>
<br><tt><font>Changes can be pushed to the clients via workaround;
just deploy a cron schedule with "rhncfg-client get" upon registration.
Works fine, biggest drawback: you can not delete files (ensure => absent
does not work)</font></tt>
<br><span class="">
<br><tt><font>> 3.       Can arbitrary commands
be run when configuration files are <br>
> deployed?</font></tt>
<br>
<br></span><tt><font>Hard. You can send scripts to hosts upon actions via
GUI. Limitations are huge, as variable to host binding is very limited
(hiera, smartclass parameters, inheritance, etc... there's not enough comparable
tools).</font></tt>
<br><span class="">
<br><tt><font>I could do this with Puppet via the notify metaparameter,
<br>
> but as a business we are just not ready for Puppet</font></tt>
<br>
<br></span><tt><font>Know your feels. Migrate to katello/Satellite 6 and
sell the move as "without alternatives"</font></tt>
<br><span class="HOEnZb"><font color="#888888">
<br><tt><font>-Jens</font></tt><font face="sans-serif"><br>
<br>
</font></font></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><br></blockquote></div><br></div>