blob: 9b91ccafa08c253891e2ede7d731f1d9d686ea49 [file] [log] [blame]
{%- set vendor = salt['pillar.get']('opencontrail:common:vendor', 'opencontrail') %}
{%- load_yaml as base_defaults %}
{%- if vendor in ['opencontrail'] %}
common:
Debian:
vendor: opencontrail
source: {'engine': 'pkg', 'address': 'http://'}
pkgs:
['dpkg-dev', 'contrail-utils', 'contrail-nodemgr', 'gettext-base']
RedHat:
vendor: opencontrail
source: {'engine': 'pkg', 'address': 'http://'}
pkgs:
['contrail-utils', 'contrail-nodemgr']
collector:
Debian:
pkgs:
['contrail-analytics', 'python-cassandra']
redis_config: '/etc/redis/redis.conf'
services:
['supervisor-analytics', 'redis-server']
RedHat:
pkgs:
['contrail-analytics']
redis_config: '/etc/redis.conf'
services:
['supervisor-analytics', 'redis']
compute:
Debian:
pkgs:
['contrail-utils', 'iproute2', 'haproxy']
services:
['supervisor-vrouter']
dpdk:
enabled: False
RedHat:
pkgs:
['contrail-openstack-vrouter', 'contrail-utils', 'haproxy', 'contrail-vrouter-source']
services:
['supervisor-vrouter']
dpdk:
enabled: False
config:
Debian:
pkgs:
['contrail-config-openstack', 'ifmap-server']
services:
['supervisor-config']
RedHat:
pkgs:
['contrail-openstack-config']
services:
['supervisor-config']
control:
Debian:
pkgs:
['contrail-control', 'contrail-dns']
services:
['contrail-control', 'supervisor-control']
RedHat:
pkgs:
['contrail-openstack-control']
services:
['contrail-control', 'supervisor-control']
database:
Debian:
{%- if grains.get('oscodename') == 'trusty' %}
pkgs:
['cassandra', 'zookeeper', 'supervisor', 'openjdk-7-jre-headless', 'contrail-database']
{%- else %}
pkgs:
['cassandra', 'zookeeper', 'supervisor', 'openjdk-8-jre-headless', 'contrail-database']
{%- endif %}
cassandra_config: '/etc/cassandra/'
compaction_throughput_mb_per_sec: 16
services:
['supervisord-contrail-database', 'zookeeper']
RedHat:
pkgs:
['contrail-openstack-database', 'zookeeper', 'supervisor', 'java-1.7.0-openjdk-headless']
cassandra_config: '/etc/cassandra/conf/'
compaction_throughput_mb_per_sec: 16
services:
['supervisord-contrail-database', 'zookeeper']
web:
Debian:
pkgs:
['contrail-web-controller', 'gettext-base', 'nodejs-legacy']
services:
['contrail-webui-webserver', 'contrail-webui-jobserver']
database:
engine: cassandra
port: 9160
RedHat:
pkgs:
['contrail-web-controller']
services:
['supervisor-webui']
database:
engine: cassandra
port: 9160
client:
Debian:
pkgs:
['python-contrail']
RedHat:
pkgs:
[]
tor:
Debian:
agents: 1
bind:
port: 8086
{%- elif vendor == 'juniper' -%}
common:
Debian:
vendor: juniper
source: {'engine': 'pkg', 'address': 'http://'}
pkgs:
['dpkg-dev', 'contrail-utils', 'contrail-nodemgr', 'gettext-base']
RedHat:
vendor: juniper
source: {'engine': 'pkg', 'address': 'http://'}
pkgs:
['contrail-utils', 'contrail-nodemgr']
collector:
Debian:
pkgs:
['contrail-analytics', 'python-cassandra-driver']
redis_config: '/etc/redis/redis.conf'
services:
['supervisor-analytics', 'redis-server']
RedHat:
pkgs:
['contrail-analytics', 'python-cassandra-driver']
redis_config: '/etc/redis.conf'
services:
['supervisor-analytics', 'redis']
compute:
Debian:
pkgs:
['contrail-utils', 'iproute2', 'haproxy']
services:
['supervisor-vrouter']
dpdk:
enabled: False
RedHat:
pkgs:
['contrail-openstack-vrouter', 'contrail-utils', 'haproxy', 'contrail-vrouter-source']
services:
['supervisor-vrouter']
dpdk:
enabled: False
config:
Debian:
pkgs:
['contrail-config-openstack', 'ifmap-server']
services:
['supervisor-config']
RedHat:
pkgs:
['contrail-openstack-config']
services:
['supervisor-config']
control:
Debian:
pkgs:
['contrail-control', 'contrail-dns']
services:
['contrail-control', 'supervisor-control']
RedHat:
pkgs:
['contrail-openstack-control']
services:
['contrail-control', 'supervisor-control']
database:
Debian:
{%- if grains.get('oscodename') == 'trusty' %}
pkgs:
['cassandra', 'zookeeper', 'supervisor', 'openjdk-7-jre-headless', 'contrail-openstack-database']
{%- else %}
pkgs:
['cassandra', 'zookeeper', 'supervisor', 'openjdk-8-jre-headless', 'contrail-openstack-database']
{%- endif %}
cassandra_config: '/etc/cassandra/'
compaction_throughput_mb_per_sec: 16
services:
['supervisord-contrail-database', 'zookeeper']
RedHat:
pkgs:
['contrail-openstack-database', 'zookeeper', 'supervisor', 'java-1.7.0-openjdk-headless']
cassandra_config: '/etc/cassandra/conf/'
compaction_throughput_mb_per_sec: 16
services:
['supervisord-contrail-database', 'zookeeper']
web:
Debian:
pkgs:
['contrail-web-controller', 'contrail-openstack-webui', 'nodejs', 'gettext-base']
services:
['supervisor-webui']
database:
engine: cassandra
port: 9160
RedHat:
pkgs:
['contrail-web-controller']
services:
['supervisor-webui']
database:
engine: cassandra
port: 9160
client:
Debian:
pkgs:
['python-contrail']
RedHat:
pkgs:
[]
tor:
Debian:
agents: 1
bind:
port: 8086
{%- endif %}
{%- endload %}
{% set common = salt['grains.filter_by'](base_defaults['common'], merge=salt['pillar.get']('opencontrail:common', {}), base='common') %}
{% set collector = salt['grains.filter_by'](base_defaults['collector'], merge=salt['pillar.get']('opencontrail:collector', {}), base='collector') %}
{% set compute = salt['grains.filter_by'](base_defaults['compute'], merge=salt['pillar.get']('opencontrail:compute', {}), base='compute') %}
{% set config = salt['grains.filter_by'](base_defaults['config'], merge=salt['pillar.get']('opencontrail:config', {}), base='config') %}
{% set control = salt['grains.filter_by'](base_defaults['control'], merge=salt['pillar.get']('opencontrail:control', {}), base='control') %}
{% set database = salt['grains.filter_by'](base_defaults['database'], merge=salt['pillar.get']('opencontrail:database', {}), base='database') %}
{% set web = salt['grains.filter_by'](base_defaults['web'], merge=salt['pillar.get']('opencontrail:web', {}), base='web') %}
{% set client = salt['grains.filter_by'](base_defaults['client'], merge=salt['pillar.get']('opencontrail:client', {}), base='client') %}
{% set tor = salt['grains.filter_by'](base_defaults['tor'], merge=salt['pillar.get']('opencontrail:tor', {}), base='tor') %}