Bug 1149424 - Include policy.v3cloudsample.json example
Summary: Include policy.v3cloudsample.json example
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: openstack-keystone
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alan Pevec (Fedora)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1149425
TreeView+ depends on / blocked
 
Reported: 2014-10-04 23:50 UTC by Nathan Kinder
Modified: 2014-10-10 20:34 UTC (History)
8 users (show)

Fixed In Version: openstack-keystone-2014.2-0.6rc2.fc22
Clone Of:
: 1149425 (view as bug list)
Environment:
Last Closed: 2014-10-10 20:34:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Nathan Kinder 2014-10-04 23:50:27 UTC
The openstack-keystone package should include the upstream policy.v3cloudsample.json example policy file.  This policy file is very useful for deployments that make use of Keystone's domains.  The upstream policy is available in the Keystone source tree at:

  /etc/policy.v3cloudsample.json

This should probably be installed in /usr/share/keystone where we already install the example paste and wsgi config files.

Comment 1 Nathan Kinder 2014-10-05 05:07:21 UTC
This should just be a matter of making hte following changes to the openstack-keystone spec file:

-------------------------------------------------------------------------
diff --git a/openstack-keystone.spec b/openstack-keystone.spec
index 9df6661..886d7b5 100644
--- a/openstack-keystone.spec
+++ b/openstack-keystone.spec
@@ -152,6 +152,7 @@ install -d -m 755 %{buildroot}%{_sysconfdir}/keystone
 install -p -D -m 640 etc/keystone.conf %{buildroot}%{_sysconfdir}/keystone/keystone.conf
 install -p -D -m 644 etc/keystone-paste.ini %{buildroot}%{_datadir}/keystone/keystone-dist-paste.ini
 install -p -D -m 644 %{SOURCE20} %{buildroot}%{_datadir}/keystone/keystone-dist.conf
+install -p -D -m 644 etc/policy.v3cloudsample.json %{buildroot}%{_datadir}/keystone/policy.v3cloudsample.json
 install -p -D -m 640 etc/logging.conf.sample %{buildroot}%{_sysconfdir}/keystone/logging.conf
 install -p -D -m 640 etc/default_catalog.templates %{buildroot}%{_sysconfdir}/keystone/default_catalog.templates
 install -p -D -m 640 etc/policy.json %{buildroot}%{_sysconfdir}/keystone/policy.json
@@ -239,6 +240,7 @@ fi
 %dir %{_datadir}/keystone
 %attr(0644, root, keystone) %{_datadir}/keystone/keystone-dist.conf
 %attr(0644, root, keystone) %{_datadir}/keystone/keystone-dist-paste.ini
+%attr(0644, root, keystone) %{_datadir}/keystone/policy.v3cloudsample.json
 %attr(0755, root, root) %{_datadir}/keystone/sample_data.sh
 %attr(0644, root, keystone) %{_datadir}/keystone/keystone.wsgi
 %attr(0644, root, keystone) %{_datadir}/keystone/wsgi-keystone.conf
-------------------------------------------------------------------------


Note You need to log in before you can comment on or make changes to this bug.