Akman.ocstore_deploy
Ansible Role: ocstore_deploy
Deploy ocStore on Linux.
Requirements
None.
Role Variables
Available variables are listed below, along with default values
ocstore_hostname: "localhost"
ocstore_db_hostname: "localhost" ocstore_db_database: "ocstore" ocstore_db_username: "ocstore" ocstore_db_password: "ocstore" ocstore_db_port: "3306" ocstore_db_socket: "" ocstore_db_prefix: "oc_"
ocstore_recaptcha_public_key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ocstore_recaptcha_private_key: "yyyyyyyyyyyyyyyyyyyyyyyyyyyyy" ocstore_google_api_key: "zzzzzzzzzzzzzzzzzzzzzzzzzzzzz" ocstore_google_analytics: "<script>\r\n</script>" ocstore_simple_key: "ssssssssssssssssssssssss" ocstore_simple_license: "lllllllllllllllllllllllllllll" ocstore_encryption_key: "kkkkkkkkkkkkkkkkkkkkkkkkkkkkk" ocstore_google_map_code: "<iframe>\r\n</iframe>"
ocstore_admin_dirname: "admin" ocstore_admin_login: "admin" ocstore_admin_password: "admin" ocstore_admin_email: "admin@localhost" ocstore_error_filename: "ocstore.log"
ocstore_maintenance: "1" ocstore_robots_sitemap_enabled: "yes"
ocstore_php_display_errors: "1" ocstore_php_error_reporting: "E_ALL"
ocstore_mysql_databases:
- name: "{{ ocstore_db_database }}" encoding: utf8 collation: utf8_general_ci
ocstore_mysql_users:
- name: "{{ ocstore_db_username }}" host: "%" password: "{{ ocstore_db_password }}" priv: "{{ ocstore_db_username }}.*:ALL"
ocstore_www_root: "/var/www/{{ ocstore_hostname }}"
ocstore_keep_releases: 3 ocstore_releases_dir: "releases" ocstore_current_dir: "current" ocstore_shared_dir: "shared" ocstore_public_dir: "public" ocstore_admin_dir: "admin" ocstore_repo_dir: "repo"
ocstore_git_repo: "git@bitbucket.org:USER/REPO.git" ocstore_git_branch: "master" ocstore_git_refspec: "" ocstore_git_tree_public: "www/{{ ocstore_public_dir }}" ocstore_git_tree_shared: "www/{{ ocstore_shared_dir }}" ocstore_git_tree_admin: "www/{{ ocstore_admin_dir }}"
'path' is relative always with 'ocstore_shared_dir' as base
'dest' can be 1) absolute 2) relative with 'ocstore_current_release_dir' as base
ocstore_shared_symlinks:
- { path: "download", dest: "download" }
- { path: "system/logs", dest: "system/logs" }
- { path: "vqmod/logs", dest: "vqmod/logs" }
- { path: "css/moneymaker-custom.css", dest: "catalog/view/theme/moneymaker/stylesheet/moneymaker-custom.css" }
- { path: "css/custom.css", dest: "catalog/view/theme/moneymaker/stylesheet/custom.css" }
- { path: "image", dest: "image" }
- { path: "image/data/favicon.ico", dest: "favicon.ico" }
- { path: "image/data/no_image.jpg", dest: "{{ ocstore_www_root }}/{{ ocstore_shared_dir }}/image/no_image.jpg" }
ocstore_release_copy_files: []
- { path: "public/system/license/license.lic", mode: "660" }
ocstore_public_template_files:
- { path: ".htaccess" }
- { path: "robots.txt" }
- { path: "humans.txt" }
- { path: "config.php" }
- { path: "php.ini" }
- { path: "vqmod/pathReplaces.php" }
ocstore_shared_template_files:
- { path: "css/.htaccess" }
- { path: "download/.htaccess" }
- { path: "image/.htaccess" }
ocstore_shared_stub_files:
- { path: "system/logs/{{ ocstore_error_filename}}", mode: "660" }
- { path: "vqmod/logs/vqmod.log", mode: "660" }
ocstore_admin_template_files:
- { path: "config.php" }
- { path: "php.ini" }
Dependencies
None.
Example Playbook
- hosts: all
roles:
- Akman.ocstore_deploy
Inside vars/main.yml:
ocstore_hostname: "localhost"
ocstore_db_hostname: "localhost" ocstore_db_database: "ocstore" ocstore_db_username: "ocstore" ocstore_db_password: "ocstore" ocstore_db_port: "3306" ocstore_db_socket: "" ocstore_db_prefix: "oc_"
ocstore_recaptcha_public_key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ocstore_recaptcha_private_key: "yyyyyyyyyyyyyyyyyyyyyyyyyyyyy" ocstore_google_api_key: "zzzzzzzzzzzzzzzzzzzzzzzzzzzzz" ocstore_google_analytics: "<script>\r\n</script>" ocstore_simple_key: "ssssssssssssssssssssssss" ocstore_simple_license: "lllllllllllllllllllllllllllll" ocstore_encryption_key: "kkkkkkkkkkkkkkkkkkkkkkkkkkkkk" ocstore_google_map_code: "<iframe>\r\n</iframe>"
ocstore_admin_dirname: "admin" ocstore_admin_login: "admin" ocstore_admin_password: "admin" ocstore_admin_email: "admin@localhost" ocstore_error_filename: "ocstore.log"
ocstore_maintenance: "1" ocstore_robots_sitemap_enabled: "yes"
ocstore_php_display_errors: "1" ocstore_php_error_reporting: "E_ALL"
ocstore_mysql_databases:
- name: "{{ ocstore_db_database }}" encoding: utf8 collation: utf8_general_ci
ocstore_mysql_users:
- name: "{{ ocstore_db_username }}" host: "%" password: "{{ ocstore_db_password }}" priv: "{{ ocstore_db_username }}.*:ALL"
ocstore_www_root: "/var/www/{{ ocstore_hostname }}"
ocstore_keep_releases: 3 ocstore_releases_dir: "releases" ocstore_current_dir: "current" ocstore_shared_dir: "shared" ocstore_public_dir: "public" ocstore_admin_dir: "admin" ocstore_repo_dir: "repo"
ocstore_git_repo: "git@bitbucket.org:USER/REPO.git" ocstore_git_branch: "master" ocstore_git_refspec: "" ocstore_git_tree_public: "www/{{ ocstore_public_dir }}" ocstore_git_tree_shared: "www/{{ ocstore_shared_dir }}" ocstore_git_tree_admin: "www/{{ ocstore_admin_dir }}"
'path' is relative always with 'ocstore_shared_dir' as base
'dest' can be 1) absolute 2) relative with 'ocstore_current_release_dir' as base
ocstore_shared_symlinks:
- { path: "download", dest: "download" }
- { path: "system/logs", dest: "system/logs" }
- { path: "vqmod/logs", dest: "vqmod/logs" }
- { path: "css/moneymaker-custom.css", dest: "catalog/view/theme/moneymaker/stylesheet/moneymaker-custom.css" }
- { path: "css/custom.css", dest: "catalog/view/theme/moneymaker/stylesheet/custom.css" }
- { path: "image", dest: "image" }
- { path: "image/data/favicon.ico", dest: "favicon.ico" }
- { path: "image/data/no_image.jpg", dest: "{{ ocstore_www_root }}/{{ ocstore_shared_dir }}/image/no_image.jpg" }
ocstore_release_copy_files: []
- { path: "public/system/license/license.lic", mode: "660" }
ocstore_public_template_files:
- { path: ".htaccess" }
- { path: "robots.txt" }
- { path: "humans.txt" }
- { path: "config.php" }
- { path: "php.ini" }
- { path: "vqmod/pathReplaces.php" }
ocstore_shared_template_files:
- { path: "css/.htaccess" }
- { path: "download/.htaccess" }
- { path: "image/.htaccess" }
ocstore_shared_stub_files:
- { path: "system/logs/{{ ocstore_error_filename}}", mode: "660" }
- { path: "vqmod/logs/vqmod.log", mode: "660" }
ocstore_admin_template_files:
- { path: "config.php" }
- { path: "php.ini" }
License
MIT / BSD
Author Information
This role was created in 2017 by Alexander Kapitman
ansible-galaxy install Akman.ocstore_deploy