kind: distutils
depends:
- erlang.bst
- unmaintained/django.bst
- unmaintained/xstatic.bst
- openstack-clients.bst
- unmaintained/test-tools.bst
- python-tools.bst
- unmaintained/openstack-services/sqlalchemy.bst
- unmaintained/openstack-services/keystonemiddleware.bst
- unmaintained/openstack-services/routes.bst
- unmaintained/openstack-services/paste.bst
- unmaintained/openstack-services/sqlalchemy-migrate.bst
- unmaintained/openstack-services/websockify.bst
- unmaintained/openstack-services/oslo-db.bst
- unmaintained/openstack-services/oslo-rootwrap.bst
- unmaintained/openstack-services/oslo-messaging.bst
- unmaintained/openstack-services/rfc3986.bst
- unmaintained/openstack-services/oslo-concurrency.bst
- unmaintained/openstack-services/oslo-context.bst
- unmaintained/openstack-services/oslo-log.bst
- unmaintained/openstack-services/oslo-messaging.bst
sources:
- kind: git
  url: upstream:openstack/nova
  track: 2015.1.0
  ref: 8397b6464af520903f546ce4c6d51a2eb5b4c8a8
variables:
  python: python
config:
  install-commands:
    (>):
    - mkdir -p "%{install-root}"/etc/nova
    - install -m 644 etc/nova/api-paste.ini "%{install-root}"/etc/nova/
    - install -m 644 etc/nova/cells.json "%{install-root}"/etc/nova/
    - install -m 644 etc/nova/logging_sample.conf "%{install-root}"/etc/nova/logging.conf
    - install -m 644 etc/nova/policy.json "%{install-root}"/etc/nova/
    - install -m 640 etc/nova/rootwrap.conf "%{install-root}"/etc/nova/rootwrap.conf
    - mkdir -p "%{install-root}"/etc/nova/rootwrap.d
    - install -m 644 etc/nova/rootwrap.d/* "%{install-root}"/etc/nova/rootwrap.d/
    - mkdir -p "%{install-root}"/etc/sudoers.d
    - |
      install -D -m 0440 /proc/self/fd/0 <<'EOF' "%{install-root}"/etc/sudoers.d/nova-rootwrap
      Defaults:nova !requiretty

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