[Ci-users] duffy requests

Wed May 18 17:47:02 UTC 2016
Ari LiVigni <ari at redhat.com>

*The input is the file that Clint provided which is called a topology file:*
https://paste.fedoraproject.org/368077/35929591/

*Our tools generates output:*
resources.json
https://paste.fedoraproject.org/368075/46359285/

*Then we use this script to use as an inventory file to ansible:*
https://paste.fedoraproject.org/368080/46359306/

*We run the this command to get the inventory:*
python ci-factory/utils/central_ci_dynamic_hosts.py | python -m json.tool

*Inventory looks like:*
https://paste.fedoraproject.org/368081/63593258/

Then you can run:
ansible-playbook -i ci-factory/utils/central_ci_dynamic_hosts.py
--private-key <ssh-key> <playbook-you-want-to-run>

Sounds like from Brian's demo that this could be done after you get the
resources as well by the user, but it may be nice to have this as an
infrastructure toolset.

On Wed, May 18, 2016 at 1:22 PM, Karanbir Singh <kbsingh at centos.org> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 18/05/16 18:15, Clint Savage wrote:
> >
> >
> > On Wed, May 18, 2016 at 11:11 AM, Ari LiVigni <ari at redhat.com
> > <mailto:ari at redhat.com>> wrote:
> >
> > It would be great if this could be generated as dynamic ansible
> > inventory.  We do this with the output of the node creation.  This
> > way it becomes very easy to use ansible to do any follow on tasks
> > once you have the resources.
> >
> >
> > +1
>
> what might that actually look like ?
>
>
> - --
> Karanbir Singh, Project Lead, The CentOS Project
> +44-207-0999389 | http://www.centos.org/ | twitter.com/CentOS
> GnuPG Key : http://www.karan.org/publickey.asc
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.22 (GNU/Linux)
>
> iQEcBAEBAgAGBQJXPKTFAAoJEI3Oi2Mx7xbt7DIH/iQ2dc/OaW60cH21dEnt6WuL
> aqB6rnoBLjws3v0AbYKFzoFjYtA3xd/UNTERa4CjIPWkcdkz/QlUAxRVuuuvC3A1
> h29WFnSWhxnEIbRQROAI8dv+qkBum5KjN85ZyVN66mllXPPlLLC1A7w0x+29V8Zo
> Keq7+UPPbIQItzyUrJjzRVXIhy456GtUoco+BvmUkESG7eBRyGePjyHH8iFzdArY
> jAkNrakPr/CSmXunoYThRDx6I0mAiGnNqXTPoBH2T6bRWWFFfbQdJc0App9uqNa6
> gxHGEPLQ7Bt+gCyqgQ8ViGH3U8Rury0kXT83pVYJl7Y4wyowiQEy7Ld/8zRt2oA=
> =4ADD
> -----END PGP SIGNATURE-----
> _______________________________________________
> Ci-users mailing list
> Ci-users at centos.org
> https://lists.centos.org/mailman/listinfo/ci-users
>



-- 
-== @ri ==-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/ci-users/attachments/20160518/feed6e5d/attachment-0003.html>