Require the UI package when creating the virtual host

Quickstart is failing with this error:

Error: Cannot create /var/www/openstack-tripleo-ui/dist;
       parent directory /var/www/openstack-tripleo-ui does not exist
Error: /Stage[main]/Tripleo::Ui/Apache::Vhost[tripleo-ui]/File[/var/www/openstack-tripleo-ui/dist]
       ensure: change from absent to directory
       failed: Cannot create /var/www/openstack-tripleo-ui/dist; parent directory /var/www/openstack-tripleo-ui does not exist

Puppet cant create the folders tree by itself.

Closes-bug: 1698105
Change-Id: I5cce963a6225552f4b7253cb34edc72b392b9dda
This commit is contained in:
Carlos Camacho 2017-06-15 11:49:42 +02:00
parent d0970575cd
commit 76b0074c76
2 changed files with 3 additions and 4 deletions

View File

@ -17,10 +17,6 @@
# UI profile for tripleo
#
class tripleo::profile::base::ui () {
package {'openstack-tripleo-ui': }
include ::apache
include ::tripleo::ui
}

View File

@ -136,13 +136,16 @@ class tripleo::ui (
$endpoint_config_swift = undef,
) {
package {'openstack-tripleo-ui': }
include ::apache
include ::apache::mod::proxy
include ::apache::mod::proxy_http
include ::apache::mod::proxy_wstunnel
::apache::vhost { 'tripleo-ui':
ensure => 'present',
require => Package['openstack-tripleo-ui'],
servername => $servername,
ip => $bind_host,
port => $ui_port,