I guess the first question would be, what shared resources? Different
things will need to be treated differently in Ansible. For example, nginx
is an easy case, because it has configuration files in
/etc/nginx/sites-available/* which can be easily generated via templates
with configuration passed via hash variables. Postfix on the other hand has
only one main configuration file (/etc/postfixmain.cf) and to be able to
configure it from multiple roles (different applications) I needed to write
a kind of wrapper around Ansible local facts and include them in main
configuration file so that previous configuration options would be
preserved. So, again, what resources are we talking about?

Maciej


2014-07-02 10:39 GMT+02:00 Andrew Pashkin <[email protected]>:

>  In my case they are project backend and project front-end, so they are
> sub-projects of one project (SPA), and they have shared resources, and
> there they clashes sometimes.
>
> On 02.07.2014 12:33, Maciej Delmanowski wrote:
>
> Are they the same project with different configuration (like multiple
> mysql servers on one host with different ports) or multiple different
> applications on the same host? In the latter case, my playbook deals with
> this kind of deployment - at the moment I can deploy GitLab, GitLab CI,
> phpIPAM, ownCloud, Etherpad, BoxBackup, ISC DHCPd, Mailman on the same host
> without clashes (of course it's meant to be used with a cluster of hosts,
> but it works with just one). Check it out -
> https://github.com/ginas/ginas/
>
>  Maciej
>
>
> 2014-07-02 10:22 GMT+02:00 Andrew Pashkin <[email protected]>:
>
>> Hi all!
>>
>> Does anybody had experience in managing deployment of two  or
>> moredifferent projects on one system? I have such task and main issue that
>> Im experiencing is configuration an dependencies clashes.
>>
>> Best solution which I have is to make common deployment config for all
>> projects, but this is looks ugly.
>>
>> --
>> With kind regards, Andrew Pashkin.
>> cell phone - +7 (985) 898 57 59 <%2B7%20%28985%29%20898%2057%2059>
>> Skype - waves_in_fluids
>> e-mail - [email protected]
>>
>> --
>> 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 [email protected].
>> To post to this group, send email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/53B3C13C.6070708%40gmx.co.uk
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> 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 [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAEnKK1yAiuVw9FNJ3TvZScEbrkTy6zM58oRjcqKmBMnDbuHNjg%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAEnKK1yAiuVw9FNJ3TvZScEbrkTy6zM58oRjcqKmBMnDbuHNjg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> With kind regards, Andrew Pashkin.
> cell phone - +7 (985) 898 57 59
> Skype - waves_in_fluids
> e-mail - [email protected]
>
>  --
> 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 [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/53B3C52B.40406%40gmx.co.uk
> <https://groups.google.com/d/msgid/ansible-project/53B3C52B.40406%40gmx.co.uk?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEnKK1zMP%2Brpo84rCsOBjeUbfCVC10NZ7ns9PM%2BtsWa9hgCkrg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to