kind: distutils
depends:
- erlang.bst
- unmaintained/django.bst
- unmaintained/xstatic.bst
- openstack-clients.bst
- unmaintained/test-tools.bst
- python-tools.bst
- unmaintained/openstack-services/retrying.bst
- unmaintained/openstack-services/alembic.bst
- unmaintained/openstack-services/croniter.bst
- unmaintained/openstack-services/jsonpath-rw.bst
- unmaintained/openstack-services/kafka-python.bst
- unmaintained/openstack-services/keystonemiddleware.bst
- unmaintained/openstack-services/msgpack-python.bst
- unmaintained/openstack-services/oslo-context.bst
- unmaintained/openstack-services/oslo-db.bst
- unmaintained/openstack-services/oslo-concurrency.bst
- unmaintained/openstack-services/oslo-policy.bst
- unmaintained/openstack-services/oslo-rootwrap.bst
- unmaintained/openstack-services/pecan.bst
- unmaintained/openstack-services/posix-ipc-tarball.bst
- unmaintained/openstack-services/oslo-messaging.bst
- unmaintained/openstack-services/oslo-middleware.bst
- unmaintained/openstack-services/pysnmp.bst
- unmaintained/openstack-services/sqlalchemy.bst
- unmaintained/openstack-services/sqlalchemy-migrate.bst
- unmaintained/openstack-services/tooz.bst
- unmaintained/openstack-services/werkzeug.bst
- unmaintained/openstack-services/wsme.bst
- unmaintained/openstack-services/requests-aws.bst
sources:
- kind: git
  url: upstream:openstack/ceilometer
  track: 2014.1.0
  ref: b0447ed8e7bee371bf7095c86e47d717abe89edc
variables:
  python: python
config:
  install-commands:
    (>):
    - mkdir -p "%{install-root}"/etc/ceilometer
    - install -D -m 644 etc/ceilometer/*.json "%{install-root}"/etc/ceilometer
    - install -D -m 644 etc/ceilometer/*.yaml "%{install-root}"/etc/ceilometer
    - install -D -m 644 etc/ceilometer/api_paste.ini "%{install-root}"/etc/ceilometer/api_paste.ini
    - install -D -m 640 etc/ceilometer/rootwrap.conf "%{install-root}"/etc/ceilometer/rootwrap.conf
    - mkdir -p "%{install-root}"/etc/ceilometer/rootwrap.d
    - install -D -m 644 etc/ceilometer/rootwrap.d/* "%{install-root}"/etc/ceilometer/rootwrap.d/
    - mkdir -p "%{install-root}"/etc/sudoers.d
    - |
      install -D -m 0440 /proc/self/fd/0 <<'EOF' "%{install-root}"/etc/sudoers.d/ceilometer-rootwrap
      Defaults:ceilometer !requiretty

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