Add default configuration files to data_files

In order to make it simpler to use the default
configuration files when deploying services
from source, the files are added to pbr's
data_files section so that the files are
included in the built wheels and therefore
deployed with the code. Packaging and deployment
tools can then more easily use the default files
if they wish to.

This pattern is already established with similar
files for neutron, designate and glance as has
been mentioned in the related bug report.

Change-Id: Ibeed85e148298e1aea7542b950bc24a7f0513de8
Closes-Bug: #1718356
This commit is contained in:
Jesse Pretorius 2017-09-21 15:11:46 +01:00 committed by Jesse Pretorius (odyssey4me)
parent 4ce27f6522
commit 110259750e
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,7 @@
---
other:
- |
The default rootwrap configuration files are now included when
building the ironic python package. The files are included in
the path ``etc/ironic`` relative to the root of where ironic
is installed.

View File

@ -17,6 +17,10 @@ classifier =
Programming Language :: Python :: 2.7
[files]
data_files =
etc/ironic =
etc/ironic/rootwrap.conf
etc/ironic/rootwrap.d = etc/ironic/rootwrap.d/*
packages =
ironic
ironic_tempest_plugin