<div dir="ltr"><div>Greetings Charles,</div><div><br></div><div>First, to answer question #1. All of the actions available via the <a href="https://github.com/ansible/ansible-kubernetes-modules">ansible-kubernetes-modules</a> can be found in the <a href="https://github.com/ansible/ansible-kubernetes-modules/tree/master/library">library</a> folder of that project. This project is deprecated now in favor of the kubernetes/openshift modules provided by Ansible 2.5. You may have noticed a change to some of our APBs. Particularly <a href="https://github.com/ansibleplaybookbundle/mediawiki-apb/blob/master/tasks/main.yml">mediawiki-apb</a>, <a href="https://github.com/ansibleplaybookbundle/postgresql-apb/blob/master/tasks/main.yml">postgresql-apb</a>, <a href="https://github.com/ansibleplaybookbundle/mysql-apb/blob/master/tasks/main.yml">mysql-apb</a>, and <a href="https://github.com/ansibleplaybookbundle/mariadb-apb/blob/master/tasks/main.yml">mariadb-apb</a> to use <a href="http://docs.ansible.com/ansible/2.5/modules/k8s_raw_module.html">k8s_raw</a>/<a href="http://docs.ansible.com/ansible/2.5/modules/openshift_raw_module.html">openshift_raw</a> introduced in Ansible 2.5. These are great and all but share some of the limitations as the ansible-kubernetes-modules. If you use <a href="https://hub.docker.com/r/ansibleplaybookbundle/apb-base/tags/">apb-base:canary</a> it includes the development version of Ansible (2.6) and used the dynamic client which allows you to write Ansible that communicates more directly with the kubernetes API server. Why is this significant? It allows you to interact with CRDs, CRs, and aggregated APIs (something that was not possible before). You should totally check out the <a href="http://docs.ansible.com/ansible/devel/modules/k8s_module.html">k8s module</a> and the <a href="http://docs.ansible.com/ansible/devel/plugins/lookup/k8s.html">k8s lookup plugin</a>. If you want an example of these in action checkout the <a href="https://github.com/openshift/ansible-service-broker/pull/939">automation-broker-apb</a> (currently in PR to be added to the broker project) or the <a href="https://github.com/ansibleplaybookbundle/hello-world-apb/pull/8">hello-world-apb</a> (currently in PR to update to Ansible 2.6).<br></div><div><br></div><div>You say, "Can we also use APB to do a build [2] ?" and I am intrigued. This sounds like an interesting idea but I don't see well how this use case would work in practice. Maybe you could elaborate on this in the form of an <a href="https://github.com/openshift/ansible-service-broker/issues">issue</a> that we could talk about in more detail at the next ansible-service-broker community meeting (Tuesday 9:30 AM EST)?</div><div><br></div><div>Thank you for the email and helping us improve the broker. I hope I was able to add some useful info.</div><div><br></div><div>Respectfully,</div><div>David Zager<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, May 31, 2018 at 3:34 PM Charles Moulliard <<a href="mailto:cmoullia@redhat.com">cmoullia@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div><div>Where are defined = coded all the actions available for APB's role such as "openshift_v1_deployment_config, <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">openshift_v1_route, ...</span>" (here maybe [1]) ?</div><div><br></div><div>Can we also use APB to do a build [2] ? </div><div><br></div><div>I don't think that this possible as the current actions [3] are : bind/unbind, provision/deprovision</div><div>but that should be great to add a new action able to do a build from GIT source, using jenkinsfile, using binary stream of the current priject (source or jar) or using Dockerfile of the user</div><div><br></div><div>[1] <a href="https://github.com/ansible/ansible-kubernetes-modules/tree/master/library" target="_blank">https://github.com/ansible/ansible-kubernetes-modules/tree/master/library</a></div><div>[2] <a href="https://github.com/ansible/ansible-kubernetes-modules/blob/master/library/openshift_v1_build_config.py" target="_blank">https://github.com/ansible/ansible-kubernetes-modules/blob/master/library/openshift_v1_build_config.py</a></div><div>[3] <a href="https://docs.openshift.org/latest/apb_devel/writing/reference.html#apb-devel-writing-ref-actions" target="_blank">https://docs.openshift.org/latest/apb_devel/writing/reference.html#apb-devel-writing-ref-actions</a></div><div><br></div><div>Regards</div><div><br></div><div>Charles<br></div><div><div class="m_-5137605791266750164gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="color:rgb(0,0,0);font-family:overpass,sans-serif;font-size:10px"><div></div></div></div></div></div></div></div></div></div></div></div>
</div></div>
_______________________________________________<br>
Ansible-service-broker mailing list<br>
<a href="mailto:Ansible-service-broker@redhat.com" target="_blank">Ansible-service-broker@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/ansible-service-broker" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/ansible-service-broker</a><br>
</blockquote></div>