| {%- set version = salt['pillar.get']('designate:server:version') -%} |
| {%- set api_address = salt['pillar.get']('designate:server:bind:api:address', '127.0.0.1') -%} |
| {%- set api_port = salt['pillar.get']('designate:server:bind:api:port', '9001') -%} |
| {% set server = salt['grains.filter_by']({ |
| 'default': { |
| 'api': { |
| 'base_uri': 'http://' + api_address + ':' + api_port + '/' |
| } |
| }, |
| 'Debian': { |
| 'pkgs': ['designate-api', 'designate-central', 'designate-sink'], |
| 'services': ['designate-api', 'designate-central', 'designate-sink'], |
| }, |
| 'RedHat': { |
| 'pkgs': ['openstack-designate-api', 'openstack-designate-central', 'openstack-designate-sink'], |
| 'services': ['designate-api', 'designate-central', 'designate-sink'], |
| }, |
| }, merge=pillar.designate.get('server', {}), base='default') %} |
| |
| {% set pool_manager = salt['grains.filter_by']({ |
| 'Debian': { |
| 'pkgs': ['designate-pool-manager', 'designate-mdns', 'designate-zone-manager'], |
| 'services': ['designate-pool-manager', 'designate-mdns', 'designate-zone-manager'], |
| }, |
| 'RedHat': { |
| 'pkgs': ['openstack-designate-pool-manager', 'openstack-designate-mdns', 'openstack-designate-zone-manager'], |
| 'services': ['designate-pool-manager', 'designate-mdns', 'designate-zone-manager'], |
| }, |
| }, merge=pillar.designate.get('pool_manager')) %} |
| |
| {% set worker = salt['grains.filter_by']({ |
| 'Debian': { |
| 'pkgs': ['designate-worker', 'designate-mdns', 'designate-producer'], |
| 'services': ['designate-worker', 'designate-mdns', 'designate-producer'], |
| }, |
| 'RedHat': { |
| 'pkgs': ['openstack-designate-worker', 'openstack-designate-mdns', 'openstack-designate-producer'], |
| 'services': ['designate-worker', 'designate-mdns', 'designate-producer'], |
| }, |
| }, merge=pillar.designate.get('worker', {})) %} |
| |
| {% set agent = salt['grains.filter_by']({ |
| 'Debian': { |
| 'pkgs': ['designate-agent'], |
| 'services': ['designate-agent'], |
| }, |
| 'RedHat': { |
| 'pkgs': ['openstack-designate-agent'], |
| 'services': ['designate-agent'], |
| }, |
| }, merge=pillar.designate.get('agent', {})) %} |
| |
| {% set client = salt['grains.filter_by']({ |
| 'Debian': { |
| 'pkgs': ['python-designateclient'], |
| }, |
| 'RedHat': { |
| 'pkgs': ['python-designateclient'], |
| }, |
| }, merge=pillar.designate.get('client', {})) %} |