Support for RHEL

Change-Id: I829c9e71bc24845e852228d3ced7ec5b29c8a29b
This commit is contained in:
Filip Pytloun 2016-02-17 15:20:22 +01:00
parent 7f464cb05c
commit aa77c29ad5
6 changed files with 23 additions and 101 deletions

View File

@ -1,5 +1,5 @@
# PBR should always appear first
pbr>=0.6,!=0.7,<1.0
pbr>=0.6,!=0.7
# Horizon Core Requirements
Babel>=1.3
Django>=1.4.2,<1.7
@ -72,4 +72,4 @@ horizon-contrib>=2015.7.6
argparse
cliff>=1.6.0
simplejson>=2.2.0
python-memcached
python-memcached

View File

@ -1,5 +1,5 @@
# PBR should always appear first
pbr>=0.6,!=0.7,<1.0
pbr>=0.6,!=0.7
# Horizon Core Requirements
Babel>=1.3
Django>=1.4.2,<1.7
@ -67,4 +67,4 @@ python-muranoclient>=0.5.5
raven
horizon-contrib>=2015.7.6
python-memcached
python-memcached

View File

@ -1,6 +1,10 @@
{% set server = salt['grains.filter_by']({
'Debian': {
'pkgs': ['openstack-dashboard', 'python-lesscpy', 'python-memcache'],
'pkgs_multi': ['python-memcache', 'python-psycopg2', 'python-imaging',
'python-docutils', 'python-simplejson', 'build-essential',
'libxslt1-dev', 'libxml2-dev', 'libffi-dev', 'libssl-dev',
'gettext', 'python-lesscpy'],
'ssl_pkgs': ['openstack-dashboard'],
'service': 'apache2',
'config': '/etc/openstack-dashboard/local_settings.py',
@ -12,7 +16,11 @@
'cache': {'host': '127.0.0.1', 'port': 11211}
},
'RedHat': {
'pkgs': ['openstack-dashboard', 'python-memcached'],
'pkgs': ['openstack-dashboard', 'python-lesscpy', 'python-memcached'],
'pkgs_multi': ['python-memcached', 'python-psycopg2', 'python-pillow',
'python-docutils', 'python-simplejson', 'libxslt-devel', 'gcc',
'libxml2-devel', 'libffi-devel', 'openssl-devel',
'gettext', 'python-lesscpy'],
'ssl_pkgs': ['mod_ssl'],
'service': 'httpd',
'config': '/etc/openstack-dashboard/local_settings',

View File

@ -2,56 +2,6 @@
{%- if server.enabled %}
include:
- git
- python
{% if grains.os_family == 'Debian' %}
horizon_packages:
pkg.installed:
- names:
- python-memcache
- python-psycopg2
- python-imaging
- python-docutils
- python-simplejson
- build-essential
- libxslt1-dev
- libxml2-dev
- libffi-dev
- libssl-dev
- gettext
- require:
- pkg: python_packages
pip.installed:
- name: lesscpy
- require:
- pkg: python_packages
{% endif %}
{% if grains.os_family == 'RedHat' %}
horizon_packages:
pkg.installed:
- names:
- python-imaging
- python-docutils
- python-simplejson
- gettext
- require:
- pkg: python_packages
pip.installed:
- name: lesscpy
- require:
- pkg: python_packages
{%- endif %}
/var/log/horizon:
file.directory:
- mode: 770
- user: horizon
- group: root
- horizon.server.multi.service_git
{%- endif %}

View File

@ -5,54 +5,11 @@ include:
- git
- python
{% if grains.os_family == 'Debian' %}
horizon_packages:
pkg.installed:
- names:
- python-memcache
- python-psycopg2
- python-imaging
- python-docutils
- python-simplejson
- build-essential
- libxslt1-dev
- libxml2-dev
- libffi-dev
- libssl-dev
- gettext
- require:
- pkg: python_packages
pip.installed:
- name: lesscpy
- require:
- pkg: python_packages
{% endif %}
{% if grains.os_family == 'RedHat' %}
horizon_packages:
pkg.installed:
- names:
- python-imaging
- python-docutils
- python-simplejson
- gettext
- require:
- pkg: python_packages
pip.installed:
- name: lesscpy
- names: {{ server.pkgs_multi }}
- require:
- pkg: python_packages
{%- endif %}
/var/log/horizon:
file.directory:
- mode: 770
- user: horizon
- group: root
{%- endif %}

View File

@ -10,6 +10,14 @@ horizon_user:
- system: True
- home: /srv/horizon
/var/log/horizon:
file.directory:
- mode: 770
- user: horizon
- group: root
- require:
- user: horizon_user
/srv/horizon/sites:
file.directory:
- makedirs: true
@ -41,7 +49,6 @@ horizon_user:
- require:
- file: /srv/horizon/sites
- pkg: horizon_packages
- pip: horizon_packages
{{ app_name }}_{{ app.source.address }}:
git.latest: