File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ apache2
2+ apache2-devel
13bc
24bridge-utils
35ca-certificates-mozilla
@@ -23,9 +25,11 @@ python-cmd2 # dist:opensuse-12.3
2325python-devel # pyOpenSSL
2426python-xml
2527screen
28+ systemd-devel # for systemd-python
2629tar
2730tcpdump
2831unzip
2932util-linux
3033wget
34+ which
3135zlib-devel
Original file line number Diff line number Diff line change @@ -53,8 +53,15 @@ APACHE_LOG_DIR="/var/log/${APACHE_NAME}"
5353function enable_apache_mod {
5454 local mod=$1
5555 # Apache installation, because we mark it NOPRIME
56- if is_ubuntu || is_suse ; then
57- if ! a2query -m $mod ; then
56+ if is_ubuntu; then
57+ # Skip mod_version as it is not a valid mod to enable
58+ # on debuntu, instead it is built in.
59+ if [[ " $mod " != " version" ]] && ! a2query -m $mod ; then
60+ sudo a2enmod $mod
61+ restart_apache_server
62+ fi
63+ elif is_suse; then
64+ if ! a2enmod -q $mod ; then
5865 sudo a2enmod $mod
5966 restart_apache_server
6067 fi
@@ -96,7 +103,7 @@ function install_apache_uwsgi {
96103 # delete the temp directory
97104 sudo rm -rf $dir
98105
99- if is_ubuntu; then
106+ if is_ubuntu || is_suse ; then
100107 # we've got to enable proxy and proxy_uwsgi for this to work
101108 sudo a2enmod proxy
102109 sudo a2enmod proxy_uwsgi
@@ -171,6 +178,8 @@ function apache_site_config_for {
171178# enable_apache_site() - Enable a particular apache site
172179function enable_apache_site {
173180 local site=$@
181+ # Many of our sites use mod version. Just enable it.
182+ enable_apache_mod version
174183 if is_ubuntu; then
175184 sudo a2ensite ${site}
176185 elif is_fedora || is_suse; then
Original file line number Diff line number Diff line change @@ -212,6 +212,9 @@ function init_CA {
212212 if is_fedora; then
213213 sudo cp $INT_CA_DIR /ca-chain.pem /usr/share/pki/ca-trust-source/anchors/devstack-chain.pem
214214 sudo update-ca-trust
215+ elif is_suse; then
216+ sudo cp $INT_CA_DIR /ca-chain.pem /usr/share/pki/trust/anchors/devstack-chain.pem
217+ sudo update-ca-certificates
215218 elif is_ubuntu; then
216219 sudo cp $INT_CA_DIR /ca-chain.pem /usr/local/share/ca-certificates/devstack-int.crt
217220 sudo cp $ROOT_CA_DIR /cacert.pem /usr/local/share/ca-certificates/devstack-root.crt
@@ -355,6 +358,9 @@ function fix_system_ca_bundle_path {
355358 elif is_ubuntu; then
356359 sudo rm -f $capath
357360 sudo ln -s /etc/ssl/certs/ca-certificates.crt $capath
361+ elif is_suse; then
362+ sudo rm -f $capath
363+ sudo ln -s /etc/ssl/ca-bundle.pem $capath
358364 else
359365 echo " Don't know how to set the CA bundle, expect the install to fail."
360366 fi
@@ -417,6 +423,9 @@ function enable_mod_ssl {
417423
418424 if is_ubuntu; then
419425 sudo a2enmod ssl
426+ elif is_suse; then
427+ sudo a2enmod ssl
428+ sudo a2enflag SSL
420429 elif is_fedora; then
421430 # Fedora enables mod_ssl by default
422431 :
@@ -523,6 +532,9 @@ $listen_string
523532 LogFormat "%v %h %l %u %t \"%r\" %>s %b"
524533</VirtualHost>
525534EOF
535+ if is_suse ; then
536+ sudo a2enflag SSL
537+ fi
526538 for mod in ssl proxy proxy_http; do
527539 enable_apache_mod $mod
528540 done
You can’t perform that action at this time.
0 commit comments