From 110259750e15323a2cbc3c8fb29b9d51cc68cf7c Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Thu, 21 Sep 2017 15:11:46 +0100 Subject: [PATCH] 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 --- .../notes/ironic-cfg-defaults-4708eed8adeee609.yaml | 7 +++++++ setup.cfg | 4 ++++ 2 files changed, 11 insertions(+) create mode 100644 releasenotes/notes/ironic-cfg-defaults-4708eed8adeee609.yaml diff --git a/releasenotes/notes/ironic-cfg-defaults-4708eed8adeee609.yaml b/releasenotes/notes/ironic-cfg-defaults-4708eed8adeee609.yaml new file mode 100644 index 0000000000..2e0b28ac57 --- /dev/null +++ b/releasenotes/notes/ironic-cfg-defaults-4708eed8adeee609.yaml @@ -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. diff --git a/setup.cfg b/setup.cfg index 268571b855..6c32425356 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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