Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/igormukhingmailcom/ansible-playbook-kmcnc
Example playbook for Code'n'Coffee KM #18
https://github.com/igormukhingmailcom/ansible-playbook-kmcnc
Last synced: 12 days ago
JSON representation
Example playbook for Code'n'Coffee KM #18
- Host: GitHub
- URL: https://github.com/igormukhingmailcom/ansible-playbook-kmcnc
- Owner: igormukhingmailcom
- Created: 2015-09-24T09:34:29.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-24T13:47:02.000Z (about 9 years ago)
- Last Synced: 2024-10-11T03:23:39.688Z (about 1 month ago)
- Language: Shell
- Homepage: http://slides.com/igor_mukhin/deploy-symfony2-with-ansible
- Size: 129 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ansible-playbook-symfony
Ansible playbook to configure server and install symfony2 apps.
## Add new client
```bash
mkdir clients/NAME
echo "YOUR_HOST ansible_ssh_host=YOUR_IP" > clients/NAME/inventory
```Don't forget to replace `NAME`, `YOUR_HOST` and `YOUR_IP` with actual values.
Edit parameters such as passwords, logins, etc:
```bash
cp clients/private.yml.dist clients/NAME/private.yml
nano clients/NAME/private.yml
```## Add new app
Add your app settings to `vars/symfony2-yourapp.yml` and include this file from `playbook.yml`.
Add new records to:
```
vars/apache.yml
vars/mysql.yml
vars/cron.yml
```## Test
Run:
```
cd tests
cp Vagrantfile.dist Vagrantfile
nano Vagrantfile # Put your github oauth key
vagrant up --provision
```Add `192.168.2.2 vagrant-crm.com` to `/etc/hosts` and open `vagrant-crm.com` in your browser to see result.
## Run
To provision and deploy your app to servers listed at `clients/NAME/inventory`, run:
```bash
bin/deploy.sh NAME
```Second time you may pass tags to run only needed part of playbook:
```bash
bin/deploy.sh NAME EXTRA_TAGS
```