https://github.com/iaintshine/ansible-prestashop
Ansible playbook for deploying Prestashop on a Virtual Machine using Vagrant
https://github.com/iaintshine/ansible-prestashop
Last synced: 3 months ago
JSON representation
Ansible playbook for deploying Prestashop on a Virtual Machine using Vagrant
- Host: GitHub
- URL: https://github.com/iaintshine/ansible-prestashop
- Owner: iaintshine
- License: mit
- Created: 2014-07-17T21:14:05.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-07-17T21:24:38.000Z (almost 11 years ago)
- Last Synced: 2025-02-04T14:48:28.551Z (4 months ago)
- Size: 176 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deploying Prestashop using Ansible
This is an ansible playbook for deploying Prestashop on a Virtual Machine using Vagrant.
What gets intalled:
* Common packages i.e. fail2ban, unattended-upgrades, logwatch, checkrootkit etc ... (see 'common' role)
* Python, Pip and VirtualEnv
* PHP 5
* Apache webserver
* MySQL database
* The latest version of PrestashopNote: This playbook is used only for the local development! **This is not production ready playbook**
## First things first
Start the vagrant environment
$ vagrant up
## Single step deployment
Install prestashop, mysql and apache using single command
$ ansible-playbook -i development site.yml --user vagrant --private-key=~/.vagrant.d/insecure_private_key --sudo -vvvv
## Multiple steps deployment
Run for the first time (bootstrap)
$ ansible-playbook -i development site.yml --user vagrant --private-key=~/.vagrant.d/insecure_private_key --sudo --tags=common
Install Apache (after bootstrapping)
$ ansible-playbook -i development site.yml --user deploy --private-key=~/.vagrant.d/insecure_private_key --sudo --tags=apache
Install Mysql and bootstrap 'prestashop' user as well as 'prestashop' database
$ ansible-playbook -i development site.yml --user deploy --private-key=~/.vagrant.d/insecure_private_key --sudo --tags=mysql
Install and provision prestashop
$ ansible-playbook -i development site.yml --user deploy --private-key=~/.vagrant.d/insecure_private_key --sudo --tags=prestashop