Skip to content

Commit

Permalink
Default to DEVELOPMENT
Browse files Browse the repository at this point in the history
Change default Opcache behavior
Do NOT install Netdata monitoring by default
Adds option for Composer require-dev packages
Fixes issue #123
Fixes issue #121
Helps address issue #120
  • Loading branch information
freephile committed Nov 11, 2024
1 parent 387ba9c commit 69c5db7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
9 changes: 7 additions & 2 deletions config/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: "[email protected]"
m_timezone: "America/New_York"
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/roles/init-controller-config/templates/public.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/roles/mediawiki/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 69c5db7

Please sign in to comment.