|
19 | 19 | # - magnum_configure_flavor |
20 | 20 | # - start_magnum |
21 | 21 | # - configure_iptables_magnum |
22 | | -# - configure_apache_magnum |
23 | 22 | # - stop_magnum |
24 | 23 | # - cleanup_magnum |
25 | 24 |
|
@@ -372,45 +371,6 @@ function configure_iptables_magnum { |
372 | 371 | fi |
373 | 372 | } |
374 | 373 |
|
375 | | -function configure_apache_magnum { |
376 | | - # Set redirection for kubernetes openstack cloud provider |
377 | | - # FIXME: When [1] is in kubernetes, we won't need the redirection anymore. |
378 | | - # [1] https://github.com/gophercloud/gophercloud/pull/423 |
379 | | - HTACCESS_PATH=/var/www/html |
380 | | - if is_ubuntu; then |
381 | | - OVERRIDE_CONF_FILE=/etc/apache2/apache2.conf |
382 | | - elif is_fedora; then |
383 | | - OVERRIDE_CONF_FILE=/etc/httpd/conf/httpd.conf |
384 | | - fi |
385 | | - # If horizon is enabled then we need |
386 | | - if is_service_enabled horizon; then |
387 | | - HTACCESS_PATH=$DEST/horizon/.blackhole |
388 | | - sudo tee -a $APACHE_CONF_DIR/horizon.conf <<EOF |
389 | | -<Directory $HTACCESS_PATH> |
390 | | -Options Indexes FollowSymLinks |
391 | | -AllowOverride all |
392 | | -Require all granted |
393 | | -</Directory> |
394 | | -EOF |
395 | | - else |
396 | | - sudo tee -a $OVERRIDE_CONF_FILE <<EOF |
397 | | -<Directory $HTACCESS_PATH> |
398 | | - Options Indexes FollowSymLinks |
399 | | - AllowOverride all |
400 | | - Require all granted |
401 | | -</Directory> |
402 | | -EOF |
403 | | - fi |
404 | | - |
405 | | - sudo mkdir -p $HTACCESS_PATH |
406 | | - sudo tee $HTACCESS_PATH/.htaccess <<EOF |
407 | | -RewriteEngine on |
408 | | -RewriteRule ^v2\.0(.*) /identity/v2.0\$1 |
409 | | -RewriteRule ^v3(.*) /identity/v3\$1 |
410 | | -EOF |
411 | | - enable_apache_mod rewrite |
412 | | -} |
413 | | - |
414 | 374 | # start_magnum() - Start running processes, including screen |
415 | 375 | function start_magnum { |
416 | 376 |
|
|
0 commit comments