blob: aef6028eb3770becf4e057d6ecc0152817805eef [file] [log] [blame]
{%- set default_params = {
'cacert_file': salt['grains.filter_by']({
'Debian': '/etc/ssl/certs/ca-certificates.crt',
'RedHat': '/etc/pki/tls/certs/ca-bundle.crt'
}),
'bind': {
'private_protocol': 'http',
'public_protocol': 'http', }}
%}
{% set server = salt['grains.filter_by']({
'BaseDefaults': default_params,
'Debian': {
'pkgs': ['keystone', 'python-keystone', 'python-keystoneclient', 'python-psycopg2', 'python-mysqldb', 'mysql-client', 'python-six', 'python-memcache', 'python-openstackclient', 'gettext-base', 'python-pycadf'],
'service_name': 'keystone',
'version': 'icehouse',
'api_version': '2',
'cors': {},
'hash_algorithm': 'sha256',
'max_request_body_size': '114688',
'tokens': {
'engine': 'database',
'expiration': '86400'
},
'notification': False,
'roles': ['admin', 'Member'],
'cacert': '/etc/ssl/certs/ca-certificates.crt',
'logging': {
'app_name': 'keystone',
'log_appender': false,
'log_handlers': {
'watchedfile': {
'enabled': true
}
},
},
},
'RedHat': {
'pkgs': ['openstack-keystone', 'openstack-utils', 'python-keystone', 'python-keystoneclient', 'python-pycadf'],
'service_name': 'openstack-keystone',
'api_version': '2',
'version': 'icehouse',
'cors': {},
'hash_algorithm': 'sha256',
'max_request_body_size': '114688',
'tokens': {
'engine': 'database',
'expiration': '86400'
},
'notification': False,
'roles': ['admin', 'Member'],
'cacert': '/etc/pki/tls/certs/ca-bundle.crt',
'logging': {
'app_name': 'keystone',
'log_appender': false,
'log_handlers': {
'watchedfile': {
'enabled': true
}
},
},
},
}, merge=pillar.get('keystone', {}).get('server', {}), base='BaseDefaults') %}
{% set client = salt['grains.filter_by']({
'Debian': {
'pkgs': ['python-keystoneclient', 'python-openstackclient'],
'service': 'keystone',
'roles': ['admin', 'Member'],
'os_client_config': {
'pkgs': ['python-os-client-config'],
},
},
'RedHat': {
'pkgs': ['python-keystoneclient'],
'roles': ['admin', 'Member'],
},
}, merge=pillar.get('keystone', {}).get('client', {})) %}
{% set control = salt['grains.filter_by']({
'Debian': {
'pkgs': [],
},
'RedHat': {
'pkgs': [],
},
}, merge=pillar.get('keystone', {}).get('control', {})) %}
{% set monitoring = salt['grains.filter_by']({
'default': {
'error_log_rate': 0.2,
'http_response_time_p90': 3,
'failed_auths': {
'percentage': 50,
'all_auths_rate': 0.1,
},
'endpoint_failed_major_threshold': 0.5,
'telegraf_openstack_input_plugin_interval': '3m',
'telegraf_openstack_output_plugin_expiration_interval': '6m',
'output_openstack_port': 9127,
},
}, grain='os_family', merge=salt['pillar.get']('keystone:monitoring')) %}