diff --git a/config/defaults.yml b/config/defaults.yml index 76add3c6..365e9bd6 100644 --- a/config/defaults.yml +++ b/config/defaults.yml @@ -20,11 +20,16 @@ # as part of the Autodeployer https://www.mediawiki.org/wiki/Meza/Autodeployer meza_repository_url: https://github.com/nasa/meza.git +# Should composer install Dev Dependencies +# Toggle this to 'false' for any development +# 'true' Disables require-dev packages +m_disable_composer_dev_dependencies: false + # production mode toggles opcache to NOT validate timestamps # so live edits will NOT be seen without restarting the webserver # production mode decreases opcache log verbosity to exclude warnings # Toggle this to 'false' for any development -m_opcache_production_mode: true +m_opcache_production_mode: false m_httpd_server_admin: "admin@example.com" m_timezone: "America/New_York" @@ -82,7 +87,7 @@ mysql_slow_query_time: "5" mysql_performance_schema: "on" # Netdata is a monitoring and alerting system -m_install_netdata: true +m_install_netdata: false # netdata runs on 19999 by default. We'll expose it at 20000 netdata_internal_port: 19999 netdata_external_port: 20000 diff --git a/src/roles/init-controller-config/templates/public.yml.j2 b/src/roles/init-controller-config/templates/public.yml.j2 index 6ecac162..c346efdf 100644 --- a/src/roles/init-controller-config/templates/public.yml.j2 +++ b/src/roles/init-controller-config/templates/public.yml.j2 @@ -8,7 +8,8 @@ # so live edits will NOT be seen without restarting the webserver # production mode decreases opcache log verbosity to exclude warnings # Toggle this to 'false' for any development -m_opcache_production_mode: True +# The template defaults this to 'true' - including the case where it is '' +m_opcache_production_mode: {{ m_opcache_production_mode | default(true, true) }} # Set a default authentication method for all wikis that don't specify one # FIXME #763: List types, and descriptions diff --git a/src/roles/mediawiki/tasks/main.yml b/src/roles/mediawiki/tasks/main.yml index 1f5c27ab..35c8ef15 100644 --- a/src/roles/mediawiki/tasks/main.yml +++ b/src/roles/mediawiki/tasks/main.yml @@ -232,7 +232,7 @@ composer: command: update working_dir: "{{ m_mediawiki }}" - no_dev: true + no_dev: "{{ m_disable_composer_dev_dependencies| default(false, true) }}" tags: - composer-extensions - latest @@ -253,7 +253,7 @@ composer: command: update working_dir: "{{ m_mediawiki }}" - no_dev: true + no_dev: "{{ m_disable_composer_dev_dependencies| default(false, true) }}" tags: - extensions - composer-extensions