kind: distutils
depends:
- erlang.bst
- unmaintained/django.bst
- unmaintained/xstatic.bst
- openstack-clients.bst
- unmaintained/test-tools.bst
- python-tools.bst
- unmaintained/openstack-services/anyjson.bst
- unmaintained/openstack-services/keystonemiddleware.bst
- unmaintained/openstack-services/kombu.bst
- unmaintained/openstack-services/oslo-concurrency.bst
- unmaintained/openstack-services/oslo-context.bst
- unmaintained/openstack-services/oslo-db.bst
- unmaintained/openstack-services/oslo-log.bst
- unmaintained/openstack-services/oslo-messaging.bst
- unmaintained/openstack-services/oslo-middleware.bst
- unmaintained/openstack-services/oslo-rootwrap.bst
- unmaintained/openstack-services/osprofiler.bst
- unmaintained/openstack-services/paste.bst
- unmaintained/openstack-services/retrying.bst
- unmaintained/openstack-services/routes.bst
- unmaintained/openstack-services/taskflow.bst
- unmaintained/openstack-services/rtslib-fb.bst
- unmaintained/openstack-services/sqlalchemy.bst
- unmaintained/openstack-services/sqlalchemy-migrate.bst
- unmaintained/openstack-services/suds.bst
- unmaintained/openstack-services/oslo-vmware.bst
sources:
- kind: git
  url: upstream:openstack/cinder
  track: 2015.1.0
  ref: 5987bb2290f629e59b0bcced2f8fe22cdeb9cc6d
variables:
  python: python
config:
  post-install-commands:
  - install -D -m 644 etc/cinder/logging_sample.conf "%{install-root}"/etc/cinder/logging.conf
  - install -D -m 644 etc/cinder/api-paste.ini "%{install-root}"/etc/cinder/api-paste.ini
  - install -D -m 644 etc/cinder/policy.json "%{install-root}"/etc/cinder/policy.json
  - install -D -m 640 etc/cinder/rootwrap.conf "%{install-root}"/etc/cinder/rootwrap.conf
  - mkdir -p "%{install-root}"/etc/cinder/rootwrap.d
  - install -D -m 644 etc/cinder/rootwrap.d/* "%{install-root}"/etc/cinder/rootwrap.d/
  - mkdir -p "%{install-root}"/etc/sudoers.d
  - |
    install -D -m 0440 /proc/self/fd/0 <<'EOF' "%{install-root}"/etc/sudoers.d/cinder-rootwrap
    Defaults:cinder !requiretty

    cinder ALL=(root) NOPASSWD: /usr/bin/cinder-rootwrap /etc/cinder/rootwrap.conf *
    EOF
