murano/.gitignore
Felipe Monteiro b360bf7ab7 Add policy sample generation
This adds the entry point and config file necessary for using the
oslo.policy sample generation script. It also adds a tox target to
simplify the usage of it. Finally, this commit adds
murano.common.policies.base.list_rules to
murano.common.polices (__init__.py) so that the base rules are
also included in the generated policy file.

Note that the policy sample is generated as a YAML which is
the standard adopted by Nova [0] and Keystone [1] and is now
the standard across OpenStack since Ocata [2]:

    While the old json format policy file is still supported,
    we recommend using the newer YAML format file, more intuitive
    syntax.

The output from tox -egenpolicy will be:

    murano.policy.sample.yaml in murano/etc.

The policy documentation was already updated in
I1a8581a559e4333a74d56a5bdce7e6d1f117907d

[0] e845d66a1b/etc/nova/nova-policy-generator.conf
[1] https://github.com/openstack/keystone/blob/master/config-generator/keystone-policy-generator.conf
[2] https://docs.openstack.org/ocata/config-reference/policy-yaml-file.html#older-json-format-policy

Change-Id: I2356ac0b2033bd83caaf2672189670fc300e55fd
Partially-Implements: blueprint policy-in-code
2017-06-17 16:11:17 +01:00

57 lines
795 B
Plaintext

#swap file
*.swp
#IntelJ Idea
.idea/
#virtualenv
.venv/
#Build results
build/
dist/
*.egg-info/
*.egg
eggs/
.eggs/
develop-eggs/
.tox
AUTHORS
ChangeLog
.testrepository
.coverage
cover
api-ref/build/
#Python
*.pyc
#Translation build
*.mo
#SQLite Database files
*.sqlite
#Autogenerated Documentation
doc/source/api
#Config file for functional tests
murano/tests/functional/engine/config.conf
#Autogenerated sample config file and policy file
etc/murano/murano.conf.sample
etc/murano/murano-cfapi.conf.sample
etc/murano.policy.yaml.sample
#User Config file for Murano
etc/murano/murano.conf
etc/murano/murano-cfapi.conf
etc/murano/logging.conf
# pylint autogenerated support files
tools/lintstack.head.py
tools/pylint_exceptions
# Files created by releasenotes build
releasenotes/build