debops / examples

Repository with example DebOps projects
MIT License
61 stars 19 forks source link

how do I contribute with an example? #5

Closed simkimsia closed 7 years ago

simkimsia commented 9 years ago

Can I use DebOps to setup a similar setup like this https://github.com/FriendsOfCake/vagrant-ansible#vagrant-ansible-for-cakephp?

drybjed commented 9 years ago

You can use DebOps to setup a host for CakePHP, but some of the dependencies from that repository are currently missing. For example, MySQL could replace Percona, we don't have memcached role at the moment. I've looked around for a Debian composer package, there is some effort being done but it seems they are not ready yet. So, realistically, Composer would have to be installed via bash+curl which I'm not very fond of. PHPMyAdmin can be handled via MySQL role.

I haven't looked into CakePHP itself yet, but there is a Debian package of CakePHP, so maybe that route would be better instead, at least for initial deployment and testing? Unless you need Percona and other packages in specified versions, I would check what dependencies are installed with cakephp package in Debian and try setting that up first.

simkimsia commented 9 years ago

this is the line of how composer is installed https://github.com/FriendsOfCake/vagrant-ansible/blob/master/ansible/roles/php/tasks/main.yml#L29

Can I somehow add this line in a separate ansible role?

I would love to use debops because i need to use ansible and vagrant for a cakephp and a django app setup separately and I need to share it out with a team.

I do not necessarily need Percona.

I do need nginx, gitcore, php, composer, mysql for the cakephp ansible-vagrant setup I need nginx, virtualenv, superior, postgresl, python for the django ansible-vagrant setup

Both should be using ubuntu 14.04 server edition vagrant box under ubuntu/trusty64

and I should have the flexibility to add more roles talking about how to configure the app and set file permissions and database name, etc.

Is this do-able using debops?

drybjed commented 9 years ago

Definitely, debops script supports custom roles and playbooks pretty easily. The project is designed to be used as a "base" for your own setup, with your additional set of roles/playbooks/tasks run "alongside" the main ones. Trusty is supported, although main focus is on Debian so there might need to be some configuration changes required.

Come over to IRC if you want. :-)

htgoebel commented 9 years ago

Am 10.01.2015 um 09:53 schrieb simkimsia:

I do need nginx, gitcore, php, composer, mysql for the cakephp ansible-vagrant setup I need nginx, virtualenv, superior, postgresl, python for the django ansible-vagrant setup

If you want to use debops with vagrant, please refer to https://github.com/debops/examples/tree/master/vagrant-multi-machine. This example show how to work around the problems the Vagrand ansible-provider imposes.

Schönen Gruß Hartmut Goebel Dipl.-Informatiker (univ), CISSP, CSSLP Information Security Management, Security Governance, Secure Software Development

Goebel Consult, Landshut http://www.goebel-consult.de

Blog: http://www.goebel-consult.de/blog/offi-als-alternative-zum-db-navigator Kolumne: http://www.cissp-gefluester.de/2011-10-aus-der-schublade-in-die-koepfe

Goebel Consult ist Mitglied bei http://www.7-it.de/

drybjed commented 7 years ago

I'm closing this issue due to inactivity.