Re: Managing OpenShift Configuration with Puppet/Ansible… what are your best practices?

2016-10-13 Thread Jason DeTiberus
On Thu, Oct 13, 2016 at 2:53 PM, Rich Megginson  wrote:

> On 10/13/2016 07:52 AM, Philippe Lafoucrière wrote:
>
>> Just to clarify our need here:
>>
>> We want the projects config inside a configuration tool. There's
>> currently nothing preventing from modifying the config of a project (let's
>> say, a DC), and no one will be notified of the change.
>>
>
> Do you mean, if someone does 'oc edit dc my-project-dc', you want to be
> able to sync those changes back to some config file, so that if you
> redeploy, it will use the changes you made when you did the 'oc edit'?
>


I believe he is looking to have the external config be the source of truth
in this case. Which would be covered by the future Ansible module work (we
aren't looking to provide additional configuration management support
beyond Ansible, as far as I know).


>
> We're looking for something to keep track of changes,
>
>
It is possible to do this part currently using watch, either through the
api or through the command line tooling.


> and make sure the config deployed is the config we have in our git repo.
>>
>
This is the trickier part, which the Ansible modules would help address.

--
Jason DeTiberus
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Managing OpenShift Configuration with Puppet/Ansible… what are your best practices?

2016-10-13 Thread Rich Megginson

On 10/13/2016 07:52 AM, Philippe Lafoucrière wrote:

Just to clarify our need here:

We want the projects config inside a configuration tool. There's 
currently nothing preventing from modifying the config of a project 
(let's say, a DC), and no one will be notified of the change.


Do you mean, if someone does 'oc edit dc my-project-dc', you want to be 
able to sync those changes back to some config file, so that if you 
redeploy, it will use the changes you made when you did the 'oc edit'?


We're looking for something to keep track of changes, and make sure 
the config deployed is the config we have in our git repo.


Thanks

​


___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users



___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Managing OpenShift Configuration with Puppet/Ansible… what are your best practices?

2016-10-13 Thread Philippe Lafoucrière
Thanks Clayton!
Really looking forward to seeing this released :)
​
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Managing OpenShift Configuration with Puppet/Ansible… what are your best practices?

2016-10-13 Thread Clayton Coleman
There are a number of lower level modules in use by the ansible tools
that are targeted at creating / updating config objects on OpenShift.

We've been discussing increasing and enhancing those tools to make it
even easier to manage openshift with ansible (for both platform tools
as well as for app delivery).  Jason DeTiberus and Kenny Woodson have
been heavily involved in several efforts in this direction.

> On Oct 13, 2016, at 9:54 AM, Philippe Lafoucrière 
>  wrote:
>
> Just to clarify our need here:
>
> We want the projects config inside a configuration tool. There's currently 
> nothing preventing from modifying the config of a project (let's say, a DC), 
> and no one will be notified of the change.
> We're looking for something to keep track of changes, and make sure the 
> config deployed is the config we have in our git repo.
>
> Thanks
>
> ​
> ___
> users mailing list
> users@lists.openshift.redhat.com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users

___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Managing OpenShift Configuration with Puppet/Ansible… what are your best practices?

2016-10-13 Thread Philippe Lafoucrière
Just to clarify our need here:

We want the projects config inside a configuration tool. There's currently
nothing preventing from modifying the config of a project (let's say, a
DC), and no one will be notified of the change.
We're looking for something to keep track of changes, and make sure the
config deployed is the config we have in our git repo.

Thanks

​
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Managing OpenShift Configuration with Puppet/Ansible… what are your best practices?

2016-10-13 Thread Stéphane Klein
2016-10-12 17:41 GMT+02:00 Alex Wauck :

> we do the actual OpenShift installation using openshift-ansible (which
> Rich Megginson mentioned)
>

Thanks but my subject isn't about OpenShift cluster installation and
upgrade.

Best regards,
Stéphane
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Managing OpenShift Configuration with Puppet/Ansible… what are your best practices?

2016-10-13 Thread Stéphane Klein
2016-10-12 17:10 GMT+02:00 Rich Megginson :

> On 10/12/2016 03:15 AM, Stéphane Klein wrote:
>>
>> * are there some Ansible or Puppet tools for OpenShift (I found nothing)?
>>
>
> https://github.com/openshift/openshift-ansible


I know and I use that, it's only to install and upgrade OpenShift cluster.

Best regards,
Stéphane
___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


Re: Managing OpenShift Configuration with Puppet/Ansible… what are your best practices?

2016-10-12 Thread Rich Megginson

On 10/12/2016 03:15 AM, Stéphane Klein wrote:

Hi,

I use OpenShift with success but I search a good practice to:

* keep all object config history (deployment config history, image
stream creation/delete, project creation/delete…)
* I use OpenShift template system, sometime I need to update this
template but I need to update manually all projects based on this
template

I found this article in Puppet blog: « Managing Kubernetes
Configuration with Puppet »
https://puppet.com/blog/managing-kubernetes-configuration-puppet

Questions:

* what do you think about this practice?
* what is your practice?
* are there some Ansible or Puppet tools for OpenShift (I found nothing)?


https://github.com/openshift/openshift-ansible


Best regards,
Stéphane



___
users mailing list
users@lists.openshift.redhat.com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users