-
Notifications
You must be signed in to change notification settings - Fork 102
add attribute to control the placement of policy.json #937
Comments
I too think we should have better control / configurability on the policy.json file. IMO I think we should default to the upstream policy.json as provided in the "service" repo "/etc" directory. This would be a flat file and provide for no configurability. However, To make the policy configurable we should allow the user to change the policy file to something else in the configuration file for the "service". This would allow the user to change the policy outside the scope of chef. This change would be an attribute added in all of our "service" cookbooks and I envision it as a |
I do not think trying to manage access controls via chef attributes is a very ideal solution. It would be better to get behind a policy service instead (https://wiki.openstack.org/wiki/Congress). |
I'm not thinking of managing the file as a template in chef. Just as a file resource with no templating and an option to either drop it or not. The user can upload their own policy file into the chef server. While congress is cool and all it doesn't solve the fact that we, in some cases, drop down a policy.json and in other cases do not. And in most cases override the packages default version of the file with unintended consequences. |
Seems like cutting the policy.json files out of the cookbooks might be the best plan then. That way you use the one shipped with the package. |
What he said. I say we rip it all out. |
I disagree, being that redhat and canonical both make opinionated changes in the packages which differ between distros and that we support both distros we need to make updates to our deployments to ensure that the installations are as similar as possible. Shipping the default upstream Other related issues on standardizing the deployments: #917 |
Do the upstreams make any changes to the policy.json files? |
The upstreams are setup for each service based on what the project considers "stable", if that's what your asking. Example: |
@cloudnull I was asking if RHEL/Ubuntu make changes to the policy.json files or are they dropping the same thing as in the openstack repos? |
we have a couple of cookbooks (nova-network, heat, and ceilometer) that have policy.json as a template while the others use the default packaged versions. Support has asked that we template this so we should provide a mechanism to selectively template this file and instructions on how to import the version of policy.json that they want to ship around. I do not think that this file should be attributed in any way.
The text was updated successfully, but these errors were encountered: