Skip to content

Commit

Permalink
Merge pull request #19 from nasa/35.x
Browse files Browse the repository at this point in the history
sync grc-atf to 35.x
  • Loading branch information
ndc-rkevans authored Jul 7, 2023
2 parents 9cdc90d + 9885e24 commit fabcf0c
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 74 deletions.
45 changes: 2 additions & 43 deletions config/RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,58 +8,18 @@ package_openssh_client: openssh-clients
package_cron: cronie
package_apache: httpd-devel
package_php_apache_deps7:
- zlib-devel
- sqlite-devel
- bzip2-devel
- pcre-devel
- openssl-devel
- curl-devel
- libxml2-devel
- libXpm-devel
- gmp-devel
- libicu-devel
- t1lib-devel
- aspell-devel
- libcurl-devel
- libjpeg-devel
- libvpx-devel
- libpng-devel
- freetype-devel
- readline-devel
- libtidy-devel
- libmcrypt-devel
- pam-devel
- sendmail
- sendmail-cf
- m4
- xz-libs
- mariadb-libs
package_php_apache_deps8:
- zlib-devel
- sqlite-devel
- bzip2-devel
- pcre-devel
- openssl-devel
- curl-devel
- libxml2-devel
- libXpm-devel
- gmp-devel
- libicu-devel
- t1lib-devel
- aspell-devel
- libcurl-devel
- libjpeg-devel
- libvpx-devel
- libpng-devel
- freetype-devel
- readline-devel
- libtidy-devel
- libmcrypt-devel
- pam-devel
package_php_apache_deps8:
- sendmail
- sendmail-cf
- m4
- xz-libs
- zlib-devel
package_java: java-1.8.0-openjdk
package_python3: python36
package_python3_pip: python36-pip
Expand All @@ -82,7 +42,6 @@ package_lua: [ 'lua', 'lua-devel' ]
package_imagemagick:
- ghostscript
- ImageMagick
- ImageMagick-devel
package_ntp: ntpd
package_ntp8: chrony

Expand Down
49 changes: 31 additions & 18 deletions config/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,36 +236,49 @@ m_php_fpm_port: 9090

# All load balancer types
load_balancers_all: >
{{ groups['load_balancers'] | default([]) }} +
{{ groups['load_balancers_meza_internal'] | default([]) }} +
{{ groups['load_balancers_meza_external'] | default([]) }} +
{{ groups['load_balancers_nonmeza'] | default([]) }} +
{{ groups['load_balancers_nonmeza_internal'] | default([]) }} +
{{ groups['load_balancers_nonmeza_external'] | default([]) }}
{{
( groups.get('load_balancers', [] ) ) +
( groups.get('load_balancers_meza_internal', [] ) ) +
( groups.get('load_balancers_meza_external', [] ) ) +
( groups.get('load_balancers_meza_nonmeza', [] ) ) +
( groups.get('load_balancers_meza_nonmeza_internal', [] ) ) +
( groups.get('load_balancers_meza_nonmeza_external', [] ) )
}}
# Just load balancers for handling internal services
load_balancers_internal: >
{{ groups['load_balancers_meza_internal'] | default([]) }} +
{{ groups['load_balancers_nonmeza_internal'] | default([]) }}
{{
( groups.get('load_balancers_meza_internal', [] ) ) +
( groups.get('load_balancers_meza_nonmeza_internal', [] ) )
}}
# Just load balancers for handling external traffic
load_balancers_external: >
{{ groups['load_balancers_meza_external'] | default([]) }} +
{{ groups['load_balancers_nonmeza_external'] | default([]) }}
{{
( groups.get('load_balancers_meza_external', [] ) ) +
( groups.get('load_balancers_meza_nonmeza_external', [] ) )
}}
# Just load balancers that handle internal and external
load_balancers_full: >
{{ groups['load_balancers'] | default([]) }} +
{{ groups['load_balancers_nonmeza'] | default([]) }}
{{
( groups.get('load_balancers', [] ) ) +
( groups.get('load_balancers_nonmeza', [] ) )
}}
# Just load balancers managed by Meza
load_balancers_meza: >
{{ groups['load_balancers'] | default([]) }} +
{{ groups['load_balancers_meza_internal'] | default([]) }} +
{{ groups['load_balancers_meza_external'] | default([]) }}
{{
( groups.get('load_balancers', [] ) ) +
( groups.get('load_balancers_meza_internal', [] ) ) +
( groups.get('load_balancers_meza_external', [] ) )
}}
# Just unmanaged load balancers (AWS, etc).
load_balancers_nonmeza: >
{{ groups['load_balancers_nonmeza'] | default([]) }} +
{{ groups['load_balancers_nonmeza_internal'] | default([]) }} +
{{ groups['load_balancers_nonmeza_external'] | default([]) }}
{{
( groups.get('load_balancers_nonmeza', [] ) ) +
( groups.get('load_balancers_nonmeza_internal', [] ) ) +
( groups.get('load_balancers_nonmeza_external', [] ) )
}}
24 changes: 11 additions & 13 deletions src/roles/apache-php/tasks/php-redhat8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
name: "php5*"
state: absent

- name: Switch to php 7.4
shell: dnf -y module switch-to php:7.4

- name: Ensure PHP packages for Rocky/RHEL8 installed
package:
name:
Expand All @@ -33,27 +36,22 @@
- php-ldap
- php-fpm
- php-pear
- libmemcached-devel
state: present

- name: install libmemcached-devel
dnf:
name: libmemcached-devel
enablerepo: devel

# PHP memcached extension needed for SAML auth
- name: Ensure PEAR channel up-to-date
shell: pear channel-update pecl.php.net

# --configureoptions parameter is not supported in our version of pecl.
- name: Install memcached PECL packages
shell: >
pecl install
--configureoptions
'with-libmemcached-dir="no"
with-zlib-dir="no"
with-system-fastlz="no"
enable-memcached-igbinary="no"
enable-memcached-msgpack="no"
enable-memcached-json="no"
enable-memcached-protocol="no"
enable-memcached-sasl="yes"
enable-memcached-session="yes"'
memcached
printf 'no\nno\nno\nno\nno\nno\nno\nyes\nyes\n' |
pecl install memcached
ignore_errors: true
notify:
- restart apache
Expand Down

0 comments on commit fabcf0c

Please sign in to comment.