<div dir="ltr"><div><b>The input is the file that Clint provided which is called a topology file:</b></div><div><a href="https://paste.fedoraproject.org/368077/35929591/">https://paste.fedoraproject.org/368077/35929591/</a><br></div><div><br></div><b>Our tools generates output:</b><div>resources.json</div><div><a href="https://paste.fedoraproject.org/368075/46359285/">https://paste.fedoraproject.org/368075/46359285/</a><br></div><div><br></div><div><b>Then we use this script to use as an inventory file to ansible:</b></div><div><a href="https://paste.fedoraproject.org/368080/46359306/">https://paste.fedoraproject.org/368080/46359306/</a><br></div><div><br></div><div><b>We run the this command to get the inventory:</b><br></div><div><span style="font-family:monospace;font-size:1em;line-height:1.2em;color:rgb(0,0,0);background-color:initial">python ci-factory/utils/central_ci_dynamic_hosts.py | python -m json.tool</span></div><div><br></div><div><b>Inventory looks like:</b></div><div><a href="https://paste.fedoraproject.org/368081/63593258/">https://paste.fedoraproject.org/368081/63593258/</a><br></div><div><br></div><div>Then you can run:</div><div>ansible-playbook -i <span style="color:rgb(0,0,0);font-family:monospace;font-size:10.5625px;line-height:12.675px">ci-factory/utils/central_ci_dynamic_hosts.py --private-key <ssh-key> <playbook-you-want-to-run></span><br></div><div><br></div><div>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.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 18, 2016 at 1:22 PM, Karanbir Singh <span dir="ltr"><<a href="mailto:kbsingh@centos.org" target="_blank">kbsingh@centos.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<span class=""><br>
On 18/05/16 18:15, Clint Savage wrote:<br>
><br>
><br>
> On Wed, May 18, 2016 at 11:11 AM, Ari LiVigni <<a href="mailto:ari@redhat.com">ari@redhat.com</a><br>
</span><span class="">> <mailto:<a href="mailto:ari@redhat.com">ari@redhat.com</a>>> wrote:<br>
><br>
> It would be great if this could be generated as dynamic ansible<br>
> inventory.  We do this with the output of the node creation.  This<br>
> way it becomes very easy to use ansible to do any follow on tasks<br>
> once you have the resources.<br>
><br>
><br>
> +1<br>
<br>
</span>what might that actually look like ?<br>
<br>
<br>
- --<br>
Karanbir Singh, Project Lead, The CentOS Project<br>
<a href="tel:%2B44-207-0999389" value="+442070999389">+44-207-0999389</a> | <a href="http://www.centos.org/" rel="noreferrer" target="_blank">http://www.centos.org/</a> | <a href="http://twitter.com/CentOS" rel="noreferrer" target="_blank">twitter.com/CentOS</a><br>
GnuPG Key : <a href="http://www.karan.org/publickey.asc" rel="noreferrer" target="_blank">http://www.karan.org/publickey.asc</a><br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2.0.22 (GNU/Linux)<br>
<br>
iQEcBAEBAgAGBQJXPKTFAAoJEI3Oi2Mx7xbt7DIH/iQ2dc/OaW60cH21dEnt6WuL<br>
aqB6rnoBLjws3v0AbYKFzoFjYtA3xd/UNTERa4CjIPWkcdkz/QlUAxRVuuuvC3A1<br>
h29WFnSWhxnEIbRQROAI8dv+qkBum5KjN85ZyVN66mllXPPlLLC1A7w0x+29V8Zo<br>
Keq7+UPPbIQItzyUrJjzRVXIhy456GtUoco+BvmUkESG7eBRyGePjyHH8iFzdArY<br>
jAkNrakPr/CSmXunoYThRDx6I0mAiGnNqXTPoBH2T6bRWWFFfbQdJc0App9uqNa6<br>
gxHGEPLQ7Bt+gCyqgQ8ViGH3U8Rury0kXT83pVYJl7Y4wyowiQEy7Ld/8zRt2oA=<br>
=4ADD<br>
-----END PGP SIGNATURE-----<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
Ci-users mailing list<br>
<a href="mailto:Ci-users@centos.org">Ci-users@centos.org</a><br>
<a href="https://lists.centos.org/mailman/listinfo/ci-users" rel="noreferrer" target="_blank">https://lists.centos.org/mailman/listinfo/ci-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">-== @ri ==-</div></div>
</div>