File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 370370
371371- job :
372372 name : devstack-base
373- parent : multinode
373+ parent : openstack- multinode-fips
374374 abstract : true
375375 description : |
376376 Base abstract Devstack job.
Original file line number Diff line number Diff line change @@ -2498,6 +2498,11 @@ function clean_pyc_files {
24982498 fi
24992499}
25002500
2501+ function is_fips_enabled {
2502+ fips=` cat /proc/sys/crypto/fips_enabled`
2503+ [ " $fips " == " 1" ]
2504+ }
2505+
25012506# Restore xtrace
25022507$_XTRACE_FUNCTIONS_COMMON
25032508
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ function recreate_database_mysql {
6363}
6464
6565function configure_database_mysql {
66- local my_conf mysql slow_log
66+ local my_conf mysql slow_log my_client_conf
6767 echo_summary " Configuring and starting MySQL"
6868
6969 if is_ubuntu; then
@@ -80,6 +80,15 @@ function configure_database_mysql {
8080 exit_distro_not_supported " mysql configuration"
8181 fi
8282
83+ # Set fips mode on
84+ if is_ubuntu; then
85+ if is_fips_enabled; then
86+ my_client_conf=/etc/mysql/mysql.conf.d/mysql.cnf
87+ iniset -sudo $my_client_conf mysql ssl-fips-mode " on"
88+ iniset -sudo $my_conf mysqld ssl-fips-mode " on"
89+ fi
90+ fi
91+
8392 # Change bind-address from localhost (127.0.0.1) to any (::)
8493 iniset -sudo $my_conf mysqld bind-address " $( ipv6_unquote $SERVICE_LISTEN_ADDRESS ) "
8594
You can’t perform that action at this time.
0 commit comments