---
# 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: httpd

horizon_devel_distro_packages:
  - git
  - libxslt-devel
  - openssl
  - openssl-libs

horizon_distro_packages:
  - cronie
  - cronie-anacron
  - gettext
  - httpd
  - httpd-tools
  - mod_ssl
  - mod_wsgi
  - which

horizon_service_distro_packages:
  - openstack-designate-ui
  - openstack-heat-ui
  - openstack-ironic-ui
  - openstack-magnum-ui
  - openstack-manila-ui
  - openstack-neutron-lbaas-ui
  - openstack-sahara-ui
  - openstack-trove-ui
  - openstack-octavia-ui
  - python-django-horizon
  - python-memcached
  - python-PyMySQL

horizon_apache_conf: "/etc/httpd/conf/httpd.conf"
horizon_apache_default_log_folder: "/var/log/httpd"
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/httpd/conf.d/ports.conf", owner: "root", group: "root" }
  - { src: "openstack_dashboard.conf.j2", dest: "/etc/httpd/conf.d/openstack-dashboard.conf", owner: "root", group: "root" }

horizon_apache_default_sites:
  - "/etc/httpd/conf.d/userdir.conf"
  - "/etc/httpd/conf.d/welcome.conf"
  - "/etc/httpd/conf.d/ssl.conf"

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