Skip to content

Commit

Permalink
Install Matomo server and module (#78)
Browse files Browse the repository at this point in the history
* add ansible-role-matomo

* install and config matomo drupal module

* enable matomo

* Update requirements.yml

* Update requirements.yml
  • Loading branch information
Natkeeran authored and dannylamb committed Oct 1, 2018
1 parent 7d17d1a commit 8427534
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inventory/vagrant/group_vars/webserver/drupal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ drupal_composer_dependencies:
- "drupal/search_api_solr:^2.0"
- "drupal/facets:1.x-dev"
- "drupal/content_browser:^1.0@alpha"
- "drupal/matomo:^1.7"
- "islandora/carapace:dev-8.x-1.x"
- "islandora/openseadragon:dev-8.x-1.x"
- "islandora/islandora_image:dev-8.x-1.x"
Expand Down Expand Up @@ -41,6 +42,7 @@ drupal_enable_modules:
- search_api_solr_defaults
- facets
- content_browser
- matomo
- islandora_core_feature
- controlled_access_terms
drupal_trusted_hosts:
Expand Down
4 changes: 4 additions & 0 deletions requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,7 @@
- src: https://github.com/Islandora-Devops/ansible-role-keymaster
name: Islandora-Devops.keymaster
version: 0.0.1

- src: https://github.com/Islandora-Devops/ansible-role-matomo
name: Islandora-Devops.matomo
version: 0.0.1
13 changes: 13 additions & 0 deletions roles/internal/webserver-app/tasks/drupal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,17 @@
args:
creates: "{{ drupal_external_libraries_directory }}/masonry"

# Set Matomo Settings
- name: Set Matomo site id.
command: "{{ drush_path }} -y config-set matomo.settings site_id 1"
args:
chdir: "{{ drupal_core_path }}"
register: set_search_api_config
changed_when: "'Do you want to update site_id' in set_search_api_config.stdout"

- name: Set Matmo sever url.
command: "{{ drush_path }} -y config-set matomo.settings url_http http://localhost:8000/matomo/"
args:
chdir: "{{ drupal_core_path }}"
register: set_search_api_config
changed_when: "'Do you want to update site_id' in set_search_api_config.stdout"
1 change: 1 addition & 0 deletions webserver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@
- geerlingguy.drupal
- Islandora-Devops.drupal-openseadragon
- webserver-app
- Islandora-Devops.matomo

0 comments on commit 8427534

Please sign in to comment.