diff --git a/manifests/all.pp b/manifests/all.pp index 9c4b403..a733c54 100644 --- a/manifests/all.pp +++ b/manifests/all.pp @@ -34,6 +34,7 @@ # [purge_nova_config] Whether unmanaged nova.conf entries should be purged. Optional. Defaults to true. # [libvirt_type] The virualization type being controlled by libvirt. Optional. Defaults to 'kvm'. # [nova_volume] The name of the volume group to use for nova volume allocation. Optional. Defaults to 'nova-volumes'. +# [horizon] (bool) is horizon installed. Defaults to: true # === Examples # # class { 'openstack::all': @@ -108,6 +109,7 @@ class openstack::all ( # Rabbit $rabbit_user = 'nova', # Horizon + $horizon = true, $cache_server_ip = '127.0.0.1', $cache_server_port = '11211', $swift = false, @@ -369,13 +371,15 @@ class openstack::all ( } ######## Horizon ######## - class { 'openstack::horizon': - secret_key => $secret_key, - cache_server_ip => $cache_server_ip, - cache_server_port => $cache_server_port, - swift => $swift, - quantum => $quantum, - horizon_app_links => $horizon_app_links, + if ($horizon) { + class { 'openstack::horizon': + secret_key => $secret_key, + cache_server_ip => $cache_server_ip, + cache_server_port => $cache_server_port, + swift => $swift, + quantum => $quantum, + horizon_app_links => $horizon_app_links, + } } } diff --git a/manifests/controller.pp b/manifests/controller.pp index 0cae84d..6e750db 100644 --- a/manifests/controller.pp +++ b/manifests/controller.pp @@ -35,6 +35,7 @@ # [secret_key] secret key to encode cookies, … # [cache_server_ip] local memcached instance ip # [cache_server_port] local memcached instance port +# [horizon] (bool) is horizon installed. Defaults to: true # [swift] (bool) is swift installed # [quantum] (bool) is quantum installed # The next is an array of arrays, that can be used to add call-out links to the dashboard for other apps. @@ -117,6 +118,7 @@ class openstack::controller ( # Rabbit $rabbit_user = 'nova', # Horizon + $horizon = true, $cache_server_ip = '127.0.0.1', $cache_server_port = '11211', $horizon_app_links = undef, @@ -295,13 +297,15 @@ class openstack::controller ( ######## Horizon ######## - class { 'openstack::horizon': - secret_key => $secret_key, - cache_server_ip => $cache_server_ip, - cache_server_port => $cache_server_port, - swift => $swift, - quantum => $quantum, - horizon_app_links => $horizon_app_links, + if ($horizon) { + class { 'openstack::horizon': + secret_key => $secret_key, + cache_server_ip => $cache_server_ip, + cache_server_port => $cache_server_port, + swift => $swift, + quantum => $quantum, + horizon_app_links => $horizon_app_links, + } } }