美文网首页
openstack 各个模块的config, policy.ya

openstack 各个模块的config, policy.ya

作者: cloudFans | 来源:发表于2021-01-15 13:36 被阅读0次

比如 neutron

# pwd

# github/neutron

(py3env) [root@control01 neutron]# ll
total 112
drwxr-xr-x.  2 root root    24 Jan 15 11:36 api-ref
-rw-r--r--.  1 root root   790 Jan 15 11:36 bindep.txt
-rw-r--r--.  1 root root   603 Jan 15 11:36 CONTRIBUTING.rst
drwxr-xr-x.  3 root root   182 Jan 15 11:36 devstack
drwxr-xr-x.  3 root root    60 Jan 15 11:36 doc
drwxr-xr-x.  5 root root   195 Jan 15 12:13 etc
-rw-r--r--.  1 root root  2453 Jan 15 11:36 HACKING.rst
-rw-r--r--.  1 root root 10143 Jan 15 11:36 LICENSE
-rw-r--r--.  1 root root  2488 Jan 15 11:36 lower-constraints.txt
drwxr-xr-x. 26 root root  4096 Jan 15 11:47 neutron
drwxr-xr-x.  2 root root   170 Jan 15 11:47 neutron.egg-info
drwxr-xr-x.  2 root root   271 Jan 15 11:36 playbooks
-rw-r--r--.  1 root root  2896 Jan 15 11:36 plugin.spec
drwxr-xr-x.  4 root root    77 Jan 15 11:36 rally-jobs
-rw-r--r--.  1 root root   907 Jan 15 11:36 README.rst
drwxr-xr-x.  4 root root    33 Jan 15 11:36 releasenotes
-rw-r--r--.  1 root root  1931 Jan 15 11:36 requirements.txt
drwxr-xr-x.  7 root root   132 Jan 15 11:36 roles
-rw-r--r--.  1 root root 16228 Jan 15 11:36 setup.cfg
-rw-r--r--.  1 root root  1030 Jan 15 11:36 setup.py
-rw-r--r--.  1 root root 27196 Jan 15 11:36 TESTING.rst
-rw-r--r--.  1 root root   650 Jan 15 11:36 test-requirements.txt
drwxr-xr-x.  4 root root  4096 Jan 15 11:36 tools
-rw-r--r--.  1 root root  9911 Jan 15 11:36 tox.ini
drwxr-xr-x.  3 root root    17 Jan 15 11:36 vagrant
drwxr-xr-x.  2 root root   162 Jan 15 11:36 zuul.d

(py3env) [root@control01 neutron]# ls -l etc/
total 60
-rw-r--r--. 1 root root  1802 Jan 15 11:36 api-paste.ini
drwxr-xr-x. 4 root root    39 Jan 15 11:36 neutron
drwxr-xr-x. 2 root root  4096 Jan 15 11:36 oslo-config-generator
drwxr-xr-x. 2 root root    25 Jan 15 11:36 oslo-policy-generator
-rw-r--r--. 1 root root 38026 Jan 15 11:47 policy.yaml.sample
-rw-r--r--. 1 root root   134 Jan 15 11:36 README.policy.yaml.txt
-rw-r--r--. 1 root root   305 Jan 15 11:36 README.txt
-rw-r--r--. 1 root root  1079 Jan 15 11:36 rootwrap.conf


(py3env) [root@control01 neutron]# cat etc/README.policy.yaml.txt
To generate the sample policy.yaml file, run the following command from the top
level of the neutron directory:

    tox -e genpolicy
(py3env) [root@control01 neutron]# cat etc/README.txt
To generate the sample neutron configuration files, run the following
command from the top level of the neutron directory:

tox -e genconfig

If a 'tox' environment is unavailable, then you can run the following script
instead to generate the configuration files:

./tools/generate_config_file_samples.sh
(py3env) [root@control01 neutron]#


pip install tox
tox -e genpolicy
tox -e genconfig


相关文章

网友评论

      本文标题:openstack 各个模块的config, policy.ya

      本文链接:https://www.haomeiwen.com/subject/csxwaktx.html