Stateless support for horizon.

Enable /etc/horizon/local_settings.d/*.py configuration files
This commit is contained in:
Alberto Murillo
2016-04-19 16:57:29 -05:00
parent 620226c859
commit 7fbd2ce7cd
4 changed files with 31 additions and 0 deletions
+3
View File
@@ -15,3 +15,6 @@
- name: restart nginx
service: name=nginx enabled=yes state=restarted
- name: restart horizon
service: name=uwsgi@horizon enabled=yes state=restarted
@@ -0,0 +1,21 @@
---
# Copyright (c) 2016 Intel Corporation
#
# 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.
- name: Create configuration files directory
file: path=/etc/horizon/local_settings.d state=directory owner=httpd mode=550
- name: Create configuration file
template: src=10_host.py.j2 dest=/etc/horizon/local_settings.d/10_host.py owner=httpd mode=550
notify: restart horizon
+2
View File
@@ -15,6 +15,8 @@
- include: install.yml
- include: configure_horizon.yml
- name: Start horizon
service: name={{ item }} enabled=yes state=started
with_items:
+5
View File
@@ -0,0 +1,5 @@
OPENSTACK_HOST = "{{ groups['openstack_identity'][0] }}"
OPENSTACK_KEYSTONE_URL = "{{keystone_protocol}}://%s:{{keystone_public_port}}/v3" % OPENSTACK_HOST
{% if keystone_ssl %}
OPENSTACK_SSL_NO_VERIFY = True
{% endif %}