Need some suggestion

36 views
Skip to first unread message

Rahul Kumar

unread,
Apr 13, 2020, 9:09:05 AM4/13/20
to ansible...@googlegroups.com
Hi Ansible Gurus,
I need some help for some framework designing based on Ansible. I have many components and i have maintained ansible role for each component deployment in common project. 
Means all components installation/configuration managed by that common project .

I wanted to bring a framework , that rather than keep all component roles in a single common project , distribute each component installation/configuration (role) to individual component git repos, so that whenever component changes its actual application code base, it can change corresponding Ansible code also in same repo if required.
So common project (a big molecule) will be spilitted  and still some common operations/cross cutting features  i want to maintain in common project only which can be applied on all components.

So i need some kind of Interface between common project Ansible code and all other components ansible codes.

How can i achieve this ? 
Any suggestion is welcomed, its more like a design problem if one wants to manage multiple component installation/configuration . So which is better approach 
1. Maintaining all components installation/configuration Ansible roles in single project
2. Have only common cross cutting operations in single or common project and distribute component specific code to individual component code repo and then interface between Common project Ansible code and individual component ansible code some how.

Did anyone came across such design problems ?

Regards
Rahul

Rahul Kumar

unread,
Apr 14, 2020, 1:08:21 AM4/14/20
to ansible...@googlegroups.com
Guys any help on this ?

Dick Visser

unread,
Apr 14, 2020, 4:01:44 AM4/14/20
to ansible...@googlegroups.com
On Tue, 14 Apr 2020 at 07:08, Rahul Kumar <rajput...@gmail.com> wrote:
>
> Guys any help on this ?

Not yet apparently, but given that this list is run by volunteers and
it's Easter holidays that shouldn't come as a surprise.

--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

Rahul Kumar

unread,
Apr 15, 2020, 5:24:08 AM4/15/20
to ansible...@googlegroups.com
Thanks Dick , would you like to suggest some thing on this ?

Rahul

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwNiwJ5UwBrPdgBZN04LS%2BtBgJAesv6kNmwupW_KbBapFA%40mail.gmail.com.

Stefan Hornburg (Racke)

unread,
Apr 15, 2020, 5:38:21 AM4/15/20
to ansible...@googlegroups.com
On 4/15/20 11:23 AM, Rahul Kumar wrote:
> Thanks Dick , would you like to suggest some thing on this ?
>
> Rahul

Your request is rather theoretical. I would add some use cases to increase chances on (sensible) answers.

Regards
Racke

>
> On Tue, 14 Apr 2020 at 13:31, Dick Visser <dick....@geant.org <mailto:dick....@geant.org>> wrote:
>
> On Tue, 14 Apr 2020 at 07:08, Rahul Kumar <rajput...@gmail.com <mailto:rajput...@gmail.com>> wrote:
> >
> > Guys any help on this ?
>
> Not yet apparently, but given that this list is run by volunteers and
> it's Easter holidays that shouldn't come as a surprise.
>
> --
> Dick Visser
> Trust & Identity Service Operations Manager
> GÉANT
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-project%2Bunsu...@googlegroups.com>.
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAGH8rEzaBPxtO3GqjDX9KALk0ZseWbiE4vHSVXt7wOUa%2Bd9xwg%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAGH8rEzaBPxtO3GqjDX9KALk0ZseWbiE4vHSVXt7wOUa%2Bd9xwg%40mail.gmail.com?utm_medium=email&utm_source=footer>.


--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

signature.asc

Rahul Kumar

unread,
Apr 15, 2020, 8:12:18 AM4/15/20
to ansible...@googlegroups.com
THanks Racke , I would be waiting for same !

Rahul

To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f32404c4-4e9d-d848-41f1-c77886d10cfa%40linuxia.de.

Rahul Kumar

unread,
Apr 16, 2020, 2:42:16 AM4/16/20
to ansible...@googlegroups.com
Any update on this ? Hope this question is still alive and not lost?

Rahul

Stefan Hornburg (Racke)

unread,
Apr 16, 2020, 4:30:47 AM4/16/20
to ansible...@googlegroups.com
On 4/16/20 8:41 AM, Rahul Kumar wrote:
> Any update on this ? Hope this question is still alive and not lost?
>

I think you misunderstood me, so as long as you don't offer more concrete information / use cases this thread
is pretty dead from my point of view.

Regards
Racke

> Rahul
>
> On Wed, 15 Apr 2020 at 17:41, Rahul Kumar <rajput...@gmail.com <mailto:rajput...@gmail.com>> wrote:
>
> THanks Racke , I would be waiting for same !
>
> Rahul
>
> On Wed, 15 Apr 2020 at 15:08, Stefan Hornburg (Racke) <ra...@linuxia.de <mailto:ra...@linuxia.de>> wrote:
>
> On 4/15/20 11:23 AM, Rahul Kumar wrote:
> > Thanks Dick , would you like to suggest some thing on this ?
> >
> > Rahul
>
> Your request is rather theoretical. I would add some use cases to increase chances on (sensible) answers.
>
> Regards
>           Racke
>
> >
> > On Tue, 14 Apr 2020 at 13:31, Dick Visser <dick....@geant.org <mailto:dick....@geant.org>
> <mailto:dick....@geant.org <mailto:dick....@geant.org>>> wrote:
> >
> >     On Tue, 14 Apr 2020 at 07:08, Rahul Kumar <rajput...@gmail.com <mailto:rajput...@gmail.com>
> <mailto:rajput...@gmail.com <mailto:rajput...@gmail.com>>> wrote:
> >     >
> >     > Guys any help on this ?
> >
> >     Not yet apparently, but given that this list is run by volunteers and
> >     it's Easter holidays that shouldn't come as a surprise.
> >
> >     --
> >     Dick Visser
> >     Trust & Identity Service Operations Manager
> >     GÉANT
> >
> >     --
> >     You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> >     To unsubscribe from this group and stop receiving emails from it, send an email to
> >     ansible-proje...@googlegroups.com <mailto:ansible-project%2Bunsu...@googlegroups.com>
> <mailto:ansible-project%2Bunsu...@googlegroups.com <mailto:ansible-project%252Buns...@googlegroups.com>>.
> >     To view this discussion on the web visit
> >   
>  https://groups.google.com/d/msgid/ansible-project/CAL8fbwNiwJ5UwBrPdgBZN04LS%2BtBgJAesv6kNmwupW_KbBapFA%40mail.gmail.com.
> >
> > --
> > You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to
> > ansible-proje...@googlegroups.com <mailto:ansible-project%2Bunsu...@googlegroups.com>
> <mailto:ansible-proje...@googlegroups.com <mailto:ansible-project%2Bunsu...@googlegroups.com>>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/ansible-project/CAGH8rEzaBPxtO3GqjDX9KALk0ZseWbiE4vHSVXt7wOUa%2Bd9xwg%40mail.gmail.com
> >
> <https://groups.google.com/d/msgid/ansible-project/CAGH8rEzaBPxtO3GqjDX9KALk0ZseWbiE4vHSVXt7wOUa%2Bd9xwg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>
>
> --
> Ecommerce and Linux consulting + Perl and web application programming.
> Debian and Sympa administration. Provisioning with Ansible.
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-project%2Bunsu...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/f32404c4-4e9d-d848-41f1-c77886d10cfa%40linuxia.de.
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAGH8rEyXQ-CYA--dJvK2QxJvU2BXhyzppJNfAvG2kx%2BgKAio%3Dg%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAGH8rEyXQ-CYA--dJvK2QxJvU2BXhyzppJNfAvG2kx%2BgKAio%3Dg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
signature.asc

Rahul Kumar

unread,
Apr 16, 2020, 5:17:29 AM4/16/20
to ansible...@googlegroups.com
THis is theoretical question only , I am trying to make some ansible based framework which manages deployments of many applications.

Lets  see if i can explain , if not I am sorry :
I have 10 applications. All 10  applications can be installed and configured using ansible via a common monolithic github project which contains 10 roles , one for each application installation and configuration.
Now actual application code for each application is maintained in 10 different repository of github.
But installation and configurations of all applications are there in single project as i mentioned in first line.

Now I want to break this monolithic picture and want to move ansible related code of each and each application to individual application code repos. So that whenever some application feature comes, one can enhance its ansible code in same repo (which has both Application code+ Ansible code).

Now at the same time , i want to maintain some ansible code in Common monolithic  project  also  which can be applied on all applications , so no meaning of duplicating this code in individual application github repo.
Example of such common code: My All 10 applications requires deployment in JBOSS server or any other server. So i want to maintain all JBOSS configuration related tuning etc. in common monolithic code.

Hence in order to deploy my application , i need both Application code github repo( java code+ ansible code)  and common monolithic github project (because deployment in server is managed through this common project).
Hence i need to create some interface between this common project and application specific project , how can i do that ?


To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f67efd68-9b5e-c4a6-2259-14181aa20ce3%40linuxia.de.

David Foley

unread,
Apr 16, 2020, 5:51:55 AM4/16/20
to Ansible Project
If you are looking to break your application roles up into some sort of micro service: I would suggest looking at Ansible plugin for Jenkins and configure a pipeline with choces, based on these it will callthe roles, or you can have a pipeline for each role with a downstream from the main pipeline.
Reply all
Reply to author
Forward
0 new messages