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

Upgrade to jammy64 and PHP 8.1 #243

Merged
merged 2 commits into from
Dec 19, 2022
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
4 changes: 2 additions & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ $memory = ENV.fetch("ISLANDORA_VAGRANT_MEMORY", "4096")
$hostname = ENV.fetch("ISLANDORA_VAGRANT_HOSTNAME", "islandora8")
$virtualBoxDescription = ENV.fetch("ISLANDORA_VAGRANT_VIRTUALBOXDESCRIPTION", "Islandora 8")

# The Vagrant Base Box to use. Currently works with 'ubuntu/focal64'.
$vagrantBox = ENV.fetch("ISLANDORA_DISTRO", "ubuntu/focal64")
# The Vagrant Base Box to use. Currently works with 'ubuntu/jammy64'.
$vagrantBox = ENV.fetch("ISLANDORA_DISTRO", "ubuntu/jammy64")

# See the "install profile" section of the README for the full gamut available.
$drupalProfile = ENV.fetch("ISLANDORA_INSTALL_PROFILE", "starter")
Expand Down
5 changes: 2 additions & 3 deletions crayfish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
- hosts: crayfish
become: yes

vars:
php_version: "7.4"

roles:
- name: geerlingguy.repo-remi
when: "ansible_os_family == 'RedHat' and islandora_build_box|bool == True"
Expand All @@ -14,6 +11,8 @@
when: islandora_build_base_box|bool == True
- name: geerlingguy.php
when: islandora_build_base_box|bool == True
- name: geerlingguy.php-mysql
when: islandora_build_base_box|bool == True
- name: geerlingguy.git
when: islandora_build_base_box|bool == True
- name: geerlingguy.composer
Expand Down
3 changes: 3 additions & 0 deletions inventory/vagrant/group_vars/all/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ mysql_users:
# Used by both the webserver and crayfish role for CentOS.
php_enablerepo: "remi-php72"
php_packages_state: "latest"
# This is the PHP version installed
# Changing this requires you to build a new base box.
php_version: "8.1"

# Log4j
os_environment:
Expand Down
6 changes: 3 additions & 3 deletions inventory/vagrant/group_vars/tomcat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tomcat9_users:
- manager-gui

# For Fedora 5
# Use "file-simple", for test instance
# Use "file-simple", for test instance
# For production use either "jdbc-mysql" or "jdbc-postgresql"
#fcrepo_persistence: file-simple

Expand Down Expand Up @@ -59,7 +59,7 @@ fcrepo_syn_tokens:
- fedoraAdmin
token: "{{ islandora_syn_token }}"

fcrepo_version: "6.0.0"
fcrepo_version: "6.3.0"
fcrepo_home_dir: "/opt/fcrepo"
fcrepo_data_dir: "{{ fcrepo_home_dir }}/data"
fcrepo_auth_header_name: "X-Islandora"
Expand All @@ -84,4 +84,4 @@ cantaloupe_create_FilesystemCache_dir: yes
cantaloupe_resolver_static: HttpSource
cantaloupe_HttpResolver_BasicLookupStrategy_url_prefix: ""
cantaloupe_processor_selection_strategy: ManualSelectionStrategy
cantaloupe_StreamProcessor_retrieval_strategy: CacheStrategy
cantaloupe_StreamProcessor_retrieval_strategy: CacheStrategy
12 changes: 6 additions & 6 deletions requirements.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- src: geerlingguy.php-mysql
version: 2.0.1
version: 2.1.0

- src: geerlingguy.repo-epel
version: 1.2.4
Expand All @@ -8,13 +8,13 @@
version: 1.2.0

- src: geerlingguy.apache
version: 3.0.0
version: 3.3.0

- src: geerlingguy.php-versions
version: 4.0.0
version: 5.0.0

- src: geerlingguy.php
version: 4.0.0
version: 4.8.0

- src: geerlingguy.composer
version: 1.9.2
Expand All @@ -29,10 +29,10 @@
version: 1.4.3

- src: geerlingguy.solr
version: 5.3.0
version: 5.4.1

- src: geerlingguy.java
version: 1.10.0
version: 2.2.0

- src: geerlingguy.drupal
version: 4.3.0
Expand Down
4 changes: 0 additions & 4 deletions roles/internal/Islandora-Devops.crayfish/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ crayfish_milliner_is_fedora_6: true
# crayfish_packages:
# - ImageMagick

php_packages_extra:
- php7.0-mysql
- php7.0-pgsql

# homarus
crayfish_homarus_log_file: /var/log/islandora/homarus.log
crayfish_homarus_log_level: DEBUG
Expand Down
22 changes: 0 additions & 22 deletions roles/internal/Islandora-Devops.crayfish/tasks/install.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
---

- name: Add ImageMagick repo (apt)
apt_repository:
repo: 'ppa:lyrasis/imagemagick-jp2'
when: ansible_os_family == "Debian"

- name: Install epel repository
yum:
name: epel-release
Expand Down Expand Up @@ -57,23 +52,6 @@
become_user: "{{ crayfish_user }}"
become: true

- name: "Get symfony/flex version"
composer:
command: show
working_dir: "{{ crayfish_install_dir }}/Houdini"
arguments: symfony/flex
changed_when: true
register: flex_package_info
ignore_errors: true
become: true
become_user: "{{ crayfish_user }}"

- name: "Delete Houdini vendor folder to update symfony/flex"
file:
state: absent
path: "{{ crayfish_install_dir }}/Houdini/vendor"
when: "'versions : * v1.13.3' in flex_package_info.stdout"

- name: Build crayfish code including dependencies
composer:
command: install
Expand Down
20 changes: 0 additions & 20 deletions roles/internal/Islandora-Devops.crayfish/tests/mysql.yml

This file was deleted.

20 changes: 0 additions & 20 deletions roles/internal/Islandora-Devops.crayfish/tests/pgsql.yml

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion roles/internal/Islandora-Devops.crayfish/vars/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@ __crayfish_packages:
- tesseract-ocr-srp
- ffmpeg
- poppler-utils
__crayfish_db: mysql
1 change: 0 additions & 1 deletion roles/internal/Islandora-Devops.crayfish/vars/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ __crayfish_packages:
- tesseract-langpack-srp
- ffmpeg
- poppler-utils
__crayfish_db: mysql
9 changes: 5 additions & 4 deletions vars/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
grok_version_tag: v3.1.0

php_packages_extra:
- libapache2-mod-php7.4
- php7.4-mysql
- php7.4-pgsql
- php7.4-gd
- "libapache2-mod-php{{ php_version }}"
- "php{{ php_version }}-mysql"
- "php{{ php_version }}-pgsql"
- "php{{ php_version }}-gd"
- "php{{ php_version }}-xml"

4 changes: 1 addition & 3 deletions webserver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
- hosts: webserver
become: yes

vars:
php_version: "7.4"

environment:
COMPOSER_MEMORY_LIMIT: -1

Expand All @@ -25,6 +22,7 @@
- name: geerlingguy.composer
when: islandora_build_base_box|bool == True
- name: geerlingguy.drush # Include drush as drupal-openseadragon needs it.
when: islandora_build_base_box|bool == False

- name: geerlingguy.drupal
when: islandora_build_base_box|bool == False
Expand Down