
{% set controller = salt['grains.filter_by']({
    'Debian': {
        'pkgs': ['cinder-api', 'cinder-scheduler', 'lvm2', 'python-cinder', 'gettext-base', 'python-memcache', 'python-pycadf'],
        'services': ['cinder-api', 'cinder-scheduler'],
        'wipe_method': 'none',
        'notification': False,
        'audit': {
          'enabled': false
        }
    },
    'RedHat': {
        'pkgs': ['openstack-cinder', 'python-cinder', 'lvm2', 'python-pycadf'],
        'services': ['openstack-cinder-api', 'openstack-cinder-scheduler'],
        'wipe_method': 'none',
        'notification': False,
        'audit': {
          'enabled': false
        }
    },
}, merge=pillar.cinder.get('controller', {})) %}

{% set volume = salt['grains.filter_by']({
    'Debian': {
        'pkgs': ['cinder-volume', 'lvm2', 'sysfsutils', 'sg3-utils', 'python-cinder','python-mysqldb','p7zip', 'gettext-base', 'python-memcache', 'python-pycadf'],
        'services': ['cinder-volume'],
        'wipe_method': 'none',
        'notification': False,
        'audit': {
          'enabled': false
        }
    },
    'RedHat': {
        'pkgs': ['openstack-cinder', 'python-cinder', 'lvm2', 'sysfsutils', 'sg3_utils', 'device-mapper-multipath', 'device-mapper-multipath-libs', 'python-pycadf'],
        'services': ['openstack-cinder-volume'],
        'wipe_method': 'none',
        'notification': False,
        'audit': {
          'enabled': false
        }
    },
}, merge=pillar.cinder.get('volume', {})) %}
