ansible-role-mediawiki/defaults/main.yml

75 lines
1.8 KiB
YAML

---
#
# This playbook depends on the php-fpm, mysql role and nginx
#
mw_install_from_package: False
# Distribution packages are always obsolete
mw_install_from_tar: True
mw_version: 1.35
mw_minor_minor: 1
mw_download_url: http://releases.wikimedia.org/mediawiki/{{ mw_version }}/mediawiki-{{ mw_version }}.{{ mw_minor_minor }}.tar.gz
mw_download_dir: /srv/mediawiki
mw_install_dir: /var/www/html
mw_conf_dir: /etc/mediawiki
mw_servername: '{{ ansible_fqdn }}'
mw_db_host: localhost
mw_db_table_prefix: 'mw_'
mw_local_nginx_virtualhost: '{{ mw_local_nginx }}'
mw_context: wiki
mw_doc_root: '{{ mw_install_dir }}/{{ mw_context }}'
mw_wiki_servername: '{{ ansible_fqdn }}'
mw_wiki_name: 'Mediawiki Installation'
mw_upload_subdirs:
- archive
- thumb
- temp
mw_local_mysql: True
mw_local_nginx: True
mw_local_memcached: True
mw_memcached_hosts: '"127.0.0.1:11211"'
mw_db_name: mediawiki
mw_db_user: mediawiki_u
# mw_db_pwd: 'use a vault file'
mw_system_user: mwiki
# mw_admin_pwd: 'use a vault file'
# mw_secret_key: 'use a vault file'
mysql_db_data: '{{ mw_mysql_db_data }}'
mw_id: 'wiki'
mw_uri: '/wiki'
mw_http_port: 80
mw_https_port: 443
http_port: '{{ mw_http_port }}'
https_port: '{{ mw_https_port }}'
php_version: '{{ mw_php_version }}'
mw_php_additional_packages:
- 'php{{ php_version }}-mbstring'
- 'php{{ php_version }}-xmlrpc'
- 'php{{ php_version }}-soap'
- 'php{{ php_version }}-gd'
- 'php{{ php_version }}-xml'
- 'php{{ php_version }}-intl'
- 'php{{ php_version }}-mysql'
- 'php{{ php_version }}-cli'
- 'php{{ php_version }}-zip'
- 'php{{ php_version }}-curl'
- php-apcu
- php-wikidiff2
- imagemagick
- php-imagick
phpfpm_pools: '{{ mw_phpfpm_pools }}'
# This choice is not recommended. The package has a poor list of dependencies. We do not want to deal with those
mw_package:
- mediawiki