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
# 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.
- name: Change signup_page.php to Account Services
ansible.builtin.replace:
path: "/var/www/mantisbt-{{ mantis_version }}/{{ item }}"
regexp: 'signup_page.php'
replace: 'https://accounts.rockylinux.org'
with_items:
- core/print_api.php
- lost_pwd_page.php
- login_page.php
- 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: Overwrite signup page
ansible.builtin.copy:
src: "var/www/mantisbt/signup_page.php"
dest: "/var/www/mantisbt-{{ mantis_version }}/signup_page.php"
owner: apache
group: apache
mode: '0664'
tags:
- harden
- name: Remove LDAP from checks for signup button
ansible.builtin.lineinfile:

View File

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

View File

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