I extensively use custom info and scripts to get this done. works a treat.

On 23/03/2015 13:57, Alexander Dacre wrote:

Thanks for the input everyone, definitely got me thinking.

I’m just going to stick with basic manual assignment of machines to configuration channels for now

Alex Dacre

Systems Engineer

+44 131 560 1466

*From:*[email protected] [mailto:[email protected]] *On Behalf Of *Waldirio Manhães Pinheiro
*Sent:* 23 March 2015 13:37
*To:* [email protected]
*Subject:* Re: [Spacewalk-list] Configuration Channels

Hello Friends, good morning

Agree with you Jens, independent you can put this script a little bit "smart" to attend your necessity or in fact implement with puppet.

Different ways to answer the question and we have point's that we are not talking about, for example:

- Is it possible install puppet in prod environment !?

- The SW admin knows puppet !?

- etc

So, let's moving forward. :)

Take Care


______________
Atenciosamente
Waldirio
msn: [email protected] <mailto:[email protected]>
Skype: waldirio
Site: www.waldirio.com.br <http://www.waldirio.com.br>
Blog: blog.waldirio.com.br <http://blog.waldirio.com.br>

LinkedIn: http://br.linkedin.com/pub/waldirio-pinheiro/22/b21/646
PGP: www.waldirio.com.br/public.html <http://www.waldirio.com.br/public.html>

On Mon, Mar 23, 2015 at 10:16 AM, Jens Neu <[email protected] <mailto:[email protected]>> wrote:

    > #!/bin/bash
    > if [ -f /var/log/ref_teste ]; then
    >   echo "Script was defined - $(date)"           | tee -a /var/log/messages
    >   echo "Removing $0 from /etc/cron.hourly"      | tee -a /var/log/messages
    >   echo "### rm -rf /etc/cron.hourly/$0"         | tee -a /var/log/messages
    > else
    >   echo "TEST ### $(date) ###"                   | tee -a /var/log/messages
    >
    >   # Command here !!!!
    >   service xpto_daemon restart
    >
    >   touch /var/log/ref_teste

    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:
    
https://access.redhat.com/documentation/en-US/Red_Hat_Network_Satellite/5.0/html/Reference_Guide/s3-sm-file-macros.html

    you're in the woods.

    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.

    -Jens


    _______________________________________________
    Spacewalk-list mailing list
    [email protected] <mailto:[email protected]>
    https://www.redhat.com/mailman/listinfo/spacewalk-list



_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

--
Kobus Bensch Trustpay Global LTD email signature Kobus Bensch
Senior Systems Administrator
Address:  22 & 24 | Frederick Sanger Road | Guildford | Surrey | GU2 7YD
DDI:  0207 871 3958
Tel:  0207 871 3890
Email: [email protected] <mailto:[email protected]>

--


Trustpay Global Limited is an authorised Electronic Money Institution regulated by the Financial Conduct Authority registration number 900043. Company No 07427913 Registered in England and Wales with registered address 130 Wood Street, London, EC2V 6DL, United Kingdom.

For further details please visit our website at www.trustpayglobal.com.

The information in this email and any attachments are confidential and remain the property of Trustpay Global Ltd unless agreed by contract. It is intended solely for the person to whom or the entity to which it is addressed. If you are not the intended recipient you may not use, disclose, copy, distribute, print or rely on the content of this email or its attachments. If this email has been received by you in error please advise the sender and delete the email from your system. Trustpay Global Ltd does not accept any liability for any personal view expressed in this message.
_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to