Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pulling in changes for 8.7, setting config, and clearing cache afterwards #118

Merged
merged 5 commits into from
Jun 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion inventory/vagrant/group_vars/webserver/drupal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ drupal_composer_dependencies:
- "drupal/pdf:1.x-dev"
- "islandora/carapace:1.0.0"
- "islandora/islandora_defaults:dev-8.x-1.x"
drupal_composer_project_package: "islandora/drupal-project:8.6.10"
drupal_composer_project_package: "islandora/drupal-project:8.7"
drupal_composer_project_options: "--prefer-dist --stability dev --no-interaction"
drupal_core_path: "{{ drupal_composer_install_dir }}/web"
drupal_db_user: drupal8
Expand Down
25 changes: 13 additions & 12 deletions post-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,16 @@
vagrant_user: "{% if ansible_os_family == 'RedHat' %}vagrant{% else %}ubuntu{% endif %}"

tasks:
# Some tomfoolery to get the demo module to install.
# Subject to https://www.drupal.org/node/2599228
# Should be fixed in Drupal 8.7
- name: Install islandora_defaults module (fail ok)
command: "{{ drush_path }} --root {{ drupal_core_path }} -y en islandora_defaults"
ignore_errors: yes
- name: Update entities
command: "{{ drush_path }} --root {{ drupal_core_path }} -y entity:updates"
- name: Uninstall islandora_defaults module
command: "{{ drush_path }} --root {{ drupal_core_path }} -y pmu islandora_defaults"
- name: Install islandora_defaults module (should not fail)

- name: Install islandora_defaults module
command: "{{ drush_path }} --root {{ drupal_core_path }} -y en islandora_defaults"

- name: Import feature
command: "{{ drush_path }} --root {{ drupal_core_path }} -y fim --bundle=islandora islandora_defaults"

- name: Add admin to fedoraAdmin role
command: "{{ drush_path }} --root {{ drupal_core_path }} -y urol fedoraadmin admin"

- name: Install islandora_search
command: "{{ drush_path }} --root {{ drupal_core_path }} -y en islandora_search"

Expand All @@ -39,6 +33,9 @@
command: "{{ drush_path }} --root {{ drupal_core_path }} -y cset --input-format=yaml islandora.settings gemini_pseudo_bundles.{{ item.0 }} {{ item.1 }}"
with_indexed_items: "{{ drupal_gemini_pseudo_bundles }}"

- name: Set media urls
command: "{{ drush_path }} --root {{ drupal_core_path }} -y cset --input-format=yaml media.settings standalone_url true"

- name: Run migrations
command: "{{ drush_path }} --root {{ drupal_core_path }} -y -l localhost:{{ apache_listen_port }} --userid=1 mim --group=islandora"

Expand All @@ -64,7 +61,7 @@
group: "{{ webserver_app_user }}"
mode: 0775
recurse: yes

- name: Chown islandora core feature
file:
dest: "{{ drupal_core_path }}/modules/contrib/islandora/modules/islandora_core_feature"
Expand All @@ -91,3 +88,7 @@
group: "{{ webserver_app_user }}"
mode: 0775
recurse: yes

- name: Clear cache
command: "{{ drush_path }} --root {{ drupal_core_path }} -y cr"