[Spacewalk-list] deploy configuration file andreload/restartservice
Sabine.Jordan at der.net
Sabine.Jordan at der.net
Thu Oct 18 07:29:07 UTC 2012
Hi Steve,
Thanks for you help, your hint was very useful.
I've done the following on Server and Client:
rpm -Uhv
http://spacewalk.der.de/pub/rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm
Checked /etc/sysconfig/rhn/up2date and set the following parametes:
serverURL=https://set_to_my_server_name/XMLRPC
sslCACert=/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
Afterwards I've added the Server again with rhnreg_ks command, but I am
not sure if this was necessary at all.
Well, now I can successfully issue the command:
rhncfg-client get /etc/httpd/conf.d/forallwebs.conf
Using server name spacewalk.der.de
Deploying /etc/httpd/conf.d/forallwebs.conf
It also works via remote command:
#!/bin/sh
rhncfg-client get /etc/httpd/conf.d/forallwebs.conf
/etc/init.d/httpd reload
Thank you very much.
Greetings, Sabine
Von: spacewalk-list-bounces at redhat.com
[mailto:spacewalk-list-bounces at redhat.com] Im Auftrag von Steve Meier
Gesendet: Dienstag, 16. Oktober 2012 15:23
An: spacewalk-list at redhat.com
Betreff: Re: [Spacewalk-list] deploy configuration file
andreload/restartservice
Hi Sabine,
here are a two things you might want to check:
1) Does /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT match your servers
certificate?
2) Is the clock on the client synced properly?
Kind regards,
Steve
Am 16.10.2012 um 14:59 schrieb <Sabine.Jordan at der.net>:
Hi Steve,
Thanks for your help...
I've tried running rhncfg-client command manually first, but I get the
following error-message L
rhncfg-client get /etc/httpd/conf.d/forallwebs.conf
Using server name spacewalk.der.de
XML-RPC error while talking to
https://spacewalk.der.de/CONFIG-MANAGEMENT: [('SSL routines',
'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')]
Haven't found anything yet to solve that problem...
Sabine
Von: spacewalk-list-bounces at redhat.com
[mailto:spacewalk-list-bounces at redhat.com] Im Auftrag von Steve Meier
Gesendet: Dienstag, 16. Oktober 2012 14:34
An: spacewalk-list at redhat.com
Betreff: Re: [Spacewalk-list] deploy configuration file and
reload/restartservice
Hi Sabine,
one way could be to run the deployment and restart in one scheduled
remote command using rhncfg-client, like this:
rhncfg-client get /etc/httpd/conf/httpd.conf
/sbin/service httpd reload
Hope this helps.
Kind regard,
Steve
Am 16.10.2012 um 13:45 schrieb <Sabine.Jordan at der.net>:
Hello all,
I've installed spacewalk 1.7 on Centos 6.3 and created a configuration
channel containing one centrally managed file. Currently there is only
one system that subscribed to this config channel, it also works for me
to deploy the managed config file to the system. But I would also like
to reload or restart some services (e.g. /etc/init.d/httpd reload) after
deploying the file via config channel. I wonder if this is possible? If
so, how can it be done?
I've noticed that there is a possibility to schedule a remote command,
but how can I link the schedule of a remote command with the deployment
of a config file? Or is there any other way to do so?
Thank you in advance.
Greetings,
Sabine
_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list
_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20121018/58b88859/attachment.htm>
More information about the Spacewalk-list
mailing list