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

Allow-list composer plugins #217

Closed
wants to merge 4 commits into from
Closed
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
1 change: 1 addition & 0 deletions inventory/vagrant/group_vars/all/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ islandora_extra_ubuntu_packages:
- build-essential
- vim
- python3-mysqldb
- acl

islandora_extra_centos_packages:
- wget
Expand Down
1 change: 1 addition & 0 deletions inventory/vagrant/group_vars/webserver/drupal.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---

drupal_composer_install_dir: /var/www/html/drupal
drupal_composer_project_options: "--prefer-dist --no-interaction"
drupal_core_owner: "{{ ansible_user }}"

drupal_deploy_dir: "{{ drupal_composer_install_dir }}"
Expand Down
12 changes: 12 additions & 0 deletions roles/internal/composer-plugins-fix/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---

- name: Explicitly allow composer plugins for drupal
community.general.composer:
command: config
global_command: true
arguments: "allow-plugins.{{ item }} true"
loop:
- composer/installers
- drupal/core-composer-scaffold
- drupal/core-project-message
- zaporylie/composer-drupal-optimizations
7 changes: 4 additions & 3 deletions vars/standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ drupal_build_composer_project: true
drupal_composer_dependencies:
- "zaporylie/composer-drupal-optimizations:^1.1"
- "drupal/devel:^4.0"
- "drupal/core-dev:^9.1"
- "drush/drush:^10.3"
- "drupal/rdfui:^1.0-beta1"
- "drupal/restui:^1.16"
Expand All @@ -20,9 +19,11 @@ drupal_composer_dependencies:
- "drupal/transliterate_filenames:^1.3"
- "easyrdf/easyrdf:^1.1"
- "drupal/context:^4.0@beta"
- "--with-all-dependencies islandora/islandora_defaults:^2 islandora/openseadragon:^2 islandora/controlled_access_terms:^2"
- "drupal/flysystem:^2@beta"
- "islandora/islandora:*"
- "islandora/islandora_defaults:*"
- "islandora-rdm/islandora_fits:dev-8.x-1.x"
drupal_composer_project_package: "drupal/recommended-project:^9.1"
drupal_composer_project_package: "drupal/recommended-project:^9@stable"

drupal_install_profile: standard
drupal_enable_modules:
Expand Down
1 change: 1 addition & 0 deletions webserver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- geerlingguy.php-mysql
- geerlingguy.git
- geerlingguy.composer
- composer-plugins-fix
- geerlingguy.drush
- geerlingguy.drupal
- perms-fix
Expand Down