---
# Copyright 2014, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

horizon_system_service_name: apache2

horizon_devel_distro_packages:
  - git-core
  - libxslt-devel
  - openssl
  - libopenssl-devel

horizon_distro_packages:
  - apache2
  - apache2-utils
  - apache2-mod_wsgi
  - cronie
  - cronie-anacron
  - gettext
  - python-MySQL-python
  - which
  - MariaDB-devel           # required to build MySQL-python

horizon_service_distro_packages:
  - openstack-horizon-plugin-designate-ui
  - openstack-horizon-plugin-gbp-ui
  - openstack-horizon-plugin-ironic-ui
  - openstack-horizon-plugin-magnum-ui
  - openstack-horizon-plugin-manila-ui
  - openstack-horizon-plugin-monasca-ui
  - openstack-horizon-plugin-neutron-fwaas-ui
  - openstack-horizon-plugin-neutron-lbaas-ui
  - openstack-horizon-plugin-neutron-vpnaas-ui
  - openstack-horizon-plugin-sahara-ui
  - openstack-horizon-plugin-trove-ui
  - python-horizon
  - python-memcached

# SUSE does not currently have packages for the following dashboards
horizon_enable_heat_ui: False
horizon_enable_octavia_ui: False

horizon_apache_conf: "/etc/apache2/httpd.conf"
horizon_apache_default_log_folder: "/var/log/apache2"
horizon_apache_default_log_owner: "root"
horizon_apache_default_log_grp: "root"
horizon_apache_security_conf: "{{ horizon_apache_conf }}"

horizon_apache_configs:
  - { src: "horizon_apache_ports.conf.j2", dest: "/etc/apache2/conf.d/ports.conf", owner: "root", group: "root" }
  - { src: "openstack_dashboard.conf.j2", dest: "/etc/apache2/conf.d/openstack-dashboard.conf", owner: "root", group: "root" }

horizon_apache_default_sites:
  - "/etc/apache2/conf.d/gitweb.conf"

horizon_apache_modules:
  - name: "authz_host"
    state: "present"
  - name: "access_compat"
    state: "present"
  - name: "version"
    state: "present"
  - name: "ssl"
    state: "present"
  - name: "wsgi"
    state: "present"
  - name: "rewrite"
    state: "present"
  - name: "headers"
    state: "present"

_horizon_lib_dir: "/srv/www/openstack-dashboard"
horizon_python_lib_dir: "/usr/lib/python2.7/site-packages"
horizon_dashboard_panel_dir: "{{ _horizon_lib_dir }}/openstack_dashboard/enabled"