Re: [ansible] Try out this conditional restart stuff.

2014-03-17 Thread Miroslav Suchý

On 03/14/2014 04:30 PM, Ralph Bean wrote:

+- name: restart fedmsg-gateway
+  command: /usr/local/bin/conditional-restart.sh fedmsg-gateway fedmsg-gateway


Ralph,
I tried to run copr-backend playbook and this notified and therefore executed, 
but failed, because

NOTIFIED: [restart fedmsg-gateway] 
failed: [209.132.184.142] => {"cmd": ["/usr/local/bin/conditional-restart.sh", "fedmsg-gateway", "fedmsg-gateway"], 
"failed": true, "item": "", "rc": 2} 


msg: [Errno 2] No such file or directory

and:
yum whatprovides /usr/local/bin/conditional-restart.sh
No matches found

So where I can get that file please?


--
Miroslav Suchy, RHCE, RHCDS
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys
___
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

Re: [ansible] Try out this conditional restart stuff.

2014-03-17 Thread Pierre-Yves Chibon
On Mon, Mar 17, 2014 at 10:46:38AM +0100, Miroslav Suchý wrote:
> On 03/14/2014 04:30 PM, Ralph Bean wrote:
> >+- name: restart fedmsg-gateway
> >+  command: /usr/local/bin/conditional-restart.sh fedmsg-gateway 
> >fedmsg-gateway
> 
> Ralph,
> I tried to run copr-backend playbook and this notified and therefore 
> executed, but failed, because
> 
> NOTIFIED: [restart fedmsg-gateway] 
> 
> failed: [209.132.184.142] => {"cmd":
> ["/usr/local/bin/conditional-restart.sh", "fedmsg-gateway",
> "fedmsg-gateway"], "failed": true, "item": "", "rc": 2}
> 
> msg: [Errno 2] No such file or directory
> 
> and:
> yum whatprovides /usr/local/bin/conditional-restart.sh
> No matches found
> 
> So where I can get that file please?

It is part of the ansible repo:
./roles/base/files/common-scripts/conditional-restart.sh

You might be missing the part that installs it.

Pierre
___
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

Re: [ansible] Try out this conditional restart stuff.

2014-03-17 Thread Ralph Bean
On Mon, Mar 17, 2014 at 11:02:40AM +0100, Pierre-Yves Chibon wrote:
> On Mon, Mar 17, 2014 at 10:46:38AM +0100, Miroslav Suchý wrote:
> > So where I can get that file please?
> 
> It is part of the ansible repo:
> ./roles/base/files/common-scripts/conditional-restart.sh
> 
> You might be missing the part that installs it.

Yes, it is installed by the 'base' role.  Did I incorrectly assume
that we are including that in every playbook?


pgp1ovqPIAqu3.pgp
Description: PGP signature
___
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

Re: [ansible] Try out this conditional restart stuff.

2014-03-19 Thread Miroslav Suchý

On 03/17/2014 02:43 PM, Ralph Bean wrote:

Did I incorrectly assume
that we are including that in every playbook?


Obviously :)
I fixed that already.

--
Miroslav Suchy, RHCE, RHCDS
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys
___
infrastructure mailing list
infrastructure@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/infrastructure