blob: 18f1cb5fb9eb66aff4ae75235a75478caec67acb [file] [log] [blame]
{%- if not salt['user.info']('cinder') %}
cinder_user:
user.present:
- name: cinder
- home: /var/lib/cinder
- uid: 304
- gid: 304
- shell: /bin/false
- system: True
- require_in:
{%- if pillar.cinder.get('controller', {}).get('enabled', False) %}
- pkg: cinder_controller_packages
{%- endif %}
{%- if pillar.cinder.get('volume', {}).get('enabled', False) %}
- pkg: cinder_volume_packages
{%- endif %}
cinder_group:
group.present:
- name: cinder
- gid: 304
- system: True
- require_in:
- user: cinder_user
{%- endif %}