votum.shopware
Ansible Role: votum.shopware
This role installs Shopware eCommerce Software.
Requirements
This role needs a working webserver with a pre-configured virtual host. And also:
- PHP >= v5.4
- composer
- Ioncube encoder
- MySQL database
- write permissions on the directory defined in
shopware_install_path
Role Variables
The role uses variables, that you can also override:
shopware_repo_url- repo for shopware sources. Default:https://github.com/shopware/shopware.gitshopware_install_demo_data- should demo data be installed. Default:trueshopware_dev_mode- when dev_mode is enabled all the additional dev dependencies of composer will be installed. Default:falseshopware_install_path- the target installation path. Default:/var/www/shopwareshopware_base_uri- the base URI which is basically the domain name. Default:shopware.devshopware_base_url- the base URL of the shop - which is basically the base_uri plus a protocol. Default:http://shopware.dev/shopware_version- the shopware version to be installed (i.e.5.1.3). Default:latestshopware_db_host- the database host. Default:localhostshopware_db_user- the database user. Default:rootshopware_db_password- the database password. Default:rootshopware_db_name- the database name. Default:shopware5shopware_admin_user- the Shopware admin user name. Default:shopwareshopware_admin_password- the Shopware admin password. Default:shopwareshopware_admin_name- the Shopware's admin full name. Default:shopwareshopware_admin_email- the Shopware's admin email. Default:[email protected]shopware_language- the default language (can be either de_DE or en_GB). Default:de_DEshopware_cli_repo- git repo for the shopware cli tool. Default:https://github.com/shopwareLabs/sw-cli-tools.gitshopware_id- if you have a Shopware ID put it here. Default:youridshopware_license_password- the password for your Shopware ID. Default:yourlicensepasswordshopware_swtools_binary_path- the path where the swtools binary will be downloaded to. Default:~/bin/swshopware_local_plugins- if you have local plugins that you want to have installed, they should go into this list. empty by defaultshopware_remote_plugins- if you want to have plugins installed, put them in this list. empty by defaultshopware_remote_plugins_demo_data- the demodata plugins that you want to install viashopware_install_demo_data. Default:- SwagDemoDataDEBe aware that this also needs to be a list.shopware_licenses- a list of files containing licences that belong to the plugins configured undershopware_remote_plugins
Dependencies
Example Playbook
A sample playbook might look like that:
- hosts: all
become: yes
vars_files:
- vars/all.yml
roles:
- { role: apache }
- { role: mysql }
- { role: php }
- { role: php-ioncube }
- { role: composer }
- { role: votum.shopware, ansible_become: yes, ansible_become_user: www-data }
Testing
Run tests locally with:
ansible-playbook -i tests/inventory tests/run_test_local.yml --connection=local
License
BSD
Author Information
VOTUM GmbH info@votum.de
