Skip to content
This repository has been archived by the owner on Oct 10, 2021. It is now read-only.

Commit

Permalink
convert db params as variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Natkeeran committed Sep 20, 2018
1 parent e73ecd3 commit 8558cf2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Install location

matomo_host: localhost
webserver_document_root: /var/www/html
matomo_install_dir: /var/www/html/matomo
matomo_base_url: http://localhost:8080/matomo
matomo_base_url: "http://{{ matomo_host }}:8080/matomo"

# Install options
console_install: true
Expand Down
10 changes: 5 additions & 5 deletions templates/config.ini.php.j2
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
; <?php exit; ?> DO NOT REMOVE THIS LINE
; file automatically generated or modified by Matomo; you can manually override the default values in global.ini.php by redefining them in this file.
[database]
host = "127.0.0.1"
username = "matomo"
password = "islandora"
dbname = "matomo"
host = {{ matomo_host }}
username = {{ matomo_db_user }}
password = {{ matomo_db_password }}
dbname = {{ matomo_db_name }}
tables_prefix = "matomo_"

[General]
salt = "bc32ffdbba9cb51a7886fd3f5d8e2ff6"
trusted_hosts[] = "localhost"
trusted_hosts[] = "{{ ansible_ssh_host }}:8000"
trusted_hosts[] = "{{ matomo_host }}:8000"

[PluginsInstalled]
PluginsInstalled[] = "Diagnostics"
Expand Down

0 comments on commit 8558cf2

Please sign in to comment.