python 3.9 is used for noggin

This commit is contained in:
nazunalika 2022-05-25 12:17:46 -07:00
parent dfe4f60ab8
commit dc8d1a0ef8
Signed by: label
GPG Key ID: 6735C0E1BD65D048
4 changed files with 18 additions and 20 deletions

View File

@ -0,0 +1,4 @@
<?php
header("Location: https://accounts.rockylinux.org");
exit;
?>

View File

@ -2,21 +2,15 @@
# Patch up various pieces of mantis to customize it. We do not rely on local # Patch up various pieces of mantis to customize it. We do not rely on local
# bug tracker accounts. We are doing regex instead of just replacing the # bug tracker accounts. We are doing regex instead of just replacing the
# file as a whole. Should make it easier to deal with upgrades in theory. # file as a whole. Should make it easier to deal with upgrades in theory.
- name: Change signup_page.php to Account Services - name: Overwrite signup page
ansible.builtin.replace: ansible.builtin.copy:
path: "/var/www/mantisbt-{{ mantis_version }}/{{ item }}" src: "var/www/mantisbt/signup_page.php"
regexp: 'signup_page.php' dest: "/var/www/mantisbt-{{ mantis_version }}/signup_page.php"
replace: 'https://accounts.rockylinux.org' owner: apache
with_items: group: apache
- core/print_api.php mode: '0664'
- lost_pwd_page.php tags:
- login_page.php - harden
- name: Change special signup_page.php reference
ansible.builtin.replace:
path: "/var/www/mantisbt-{{ mantis_version }}/core/layout_api.php"
regexp: "' . helper_mantis_url( 'signup_page.php' ) . '"
replace: 'https://accounts.rockylinux.org'
- name: Remove LDAP from checks for signup button - name: Remove LDAP from checks for signup button
ansible.builtin.lineinfile: ansible.builtin.lineinfile:

View File

@ -2,8 +2,8 @@
- name: Ensure python is installed - name: Ensure python is installed
ansible.builtin.dnf: ansible.builtin.dnf:
name: name:
- python3 - python39
- python3-pip - python39-pip
state: present state: present
- name: Ensure noggin user exists - name: Ensure noggin user exists
@ -31,7 +31,7 @@
- name: Noggin user must install poetry - name: Noggin user must install poetry
pip: pip:
name: poetry name: poetry
executable: pip3 executable: pip3.9
become: true become: true
become_user: noggin become_user: noggin

View File

@ -1,7 +1,7 @@
--- ---
# mantis vars # mantis vars
mantis_version: 2.25.2 mantis_version: 2.25.3
mantis_checksum: "sha256:8b087e71594fd70d2d2e39d2d2e1285b47a9919d8d8fd268df009df76ebc3671" mantis_checksum: "sha256:e74db914ecd369f80f52a8672c7c85dafcd4b824bea00e2b4d8ba12f8c55a2fc"
mantis_pkg: mantis_pkg:
- php - php
- php-ldap - php-ldap