diff options
author | ricolin <rico.lin@easystack.cn> | 2017-10-06 13:01:40 +0800 |
---|---|---|
committer | ricolin <rico.lin@easystack.cn> | 2017-11-21 16:23:11 +0800 |
commit | b171490450c4eff1efb2dab065e5e17f9cb570d8 (patch) | |
tree | 8132f17a7d546f4294e154292580ab8907dbd147 /.gitignore | |
parent | 121627bce76bae2b193b0b86baa1ed14e96ddd8e (diff) | |
download | heat-b171490450c4eff1efb2dab065e5e17f9cb570d8.tar.gz |
[policy in code] Part 1 Base framework
This adds the basic framework for registering and using default policy
rules. Rules should be defined and returned from a module in
heat/policies/, and then added to the list in heat/policies/__init__.py.
new policy wrapers `registered_identified_stack` and
`registered_policy_enforce` has been added for policy enforcement of
registered rules with same parameter as `identified_stack` and
`policy_enforce` besides set `is_registered_policy` flag to true.
This flag will decide to use new policy framework or not.
Now we can use `tox -e genpolicy` to check and generate policy file.
Change-Id: I7a232b3ea7ce0f69a5b7ffa278ceace7a76b666f
Partially-Implements: bp policy-in-code
Diffstat (limited to '.gitignore')
-rw-r--r-- | .gitignore | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index 073858cde..c307e065e 100644 --- a/.gitignore +++ b/.gitignore @@ -25,5 +25,8 @@ etc/heat/heat.conf.sample # integration tests requirements are auto-generated from stub file heat_integrationtests/requirements.txt +# generated policy file +etc/heat/policy.json.sample + # Files created by releasenotes build releasenotes/build |