c7n-openstack-0.1.9


توضیحات

Cloud Custodian - OpenStack Provider
ویژگی مقدار
سیستم عامل -
نام فایل c7n-openstack-0.1.9
نام c7n-openstack
نسخه کتابخانه 0.1.9
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Cloud Custodian Project
ایمیل نویسنده -
آدرس صفحه اصلی https://cloudcustodian.io
آدرس اینترنتی https://pypi.org/project/c7n-openstack/
مجوز Apache-2.0
# Custodian OpenStack Support Work in Progress - Not Ready For Use. ## Quick Start ### Installation ``` pip install c7n_openstack ``` ### OpenStack Environment Configration C7N will find cloud config for as few as 1 cloud and as many as you want to put in a config file. It will read environment variables and config files, and it also contains some vendor specific default values so that you don't have to know extra info to use OpenStack: * If you have a config file, you will get the clouds listed in it * If you have environment variables, you will get a cloud named envvars * If you have neither, you will get a cloud named defaults with base defaults Create a clouds.yml file: ```yaml clouds: demo: region_name: RegionOne auth: username: 'admin' password: XXXXXXX project_name: 'admin' domain_name: 'Default' auth_url: 'https://montytaylor-sjc.openstack.blueboxgrid.com:5001/v2.0' ``` Please note: c7n will look for a file called `clouds.yaml` in the following locations: * Current Directory * ~/.config/openstack * /etc/openstack More information at [https://pypi.org/project/os-client-config](https://pypi.org/project/os-client-config) ### Create a c7n policy yaml file as follows: ```yaml policies: - name: demo resource: openstack.flavor filters: - type: value key: vcpus value: 1 op: gt ``` ### Run c7n and report the matched resources: ```sh mkdir -p output custodian run demo.yaml -s output custodian report demo.yaml -s output --format grid ``` ## Examples filter examples: ```yaml policies: - name: test-flavor resource: openstack.flavor filters: - type: value key: vcpus value: 1 op: gt - name: test-project resource: openstack.project filters: [] - name: test-server-image resource: openstack.server filters: - type: image image_name: cirros-0.5.1 - name: test-user resource: openstack.user filters: - type: role project_name: demo role_name: _member_ system_scope: false - name: test-server-flavor resource: openstack.server filters: - type: flavor vcpus: 1 - name: test-server-age resource: openstack.server filters: - type: age op: lt days: 1 - name: test-server-tags resource: openstack.server filters: - type: tags tags: - key: a value: a - key: b value: c op: any ```


نیازمندی

مقدار نام
==0.9.26 c7n
==1.26.109 boto3
==4.17.3 jsonschema
==3.0.5 argcomplete
==2.8.2 python-dateutil
==6.0 pyyaml
==0.9.0 tabulate
==5.2.0 importlib-metadata
==0.18.1 docutils
==1.29.109 botocore
==1.0.1 jmespath
==0.6.0 s3transfer
==22.2.0 attrs
==5.12.0 importlib-resources
==1.3.10 pkgutil-resolve-name
==0.19.3 pyrsistent
==4.5.0 typing-extensions
==1.16.0 six
==3.15.0 zipp
==1.26.15 urllib3
==0.52.0 openstacksdk
==1.4.4 appdirs
==40.0.1 cryptography
==5.1.1 decorator
==1.1.8 dogpile-cache
==1.1.0 iso8601
==1.32 jsonpatch
==5.1.2 keystoneauth1
==2.5.0 munch
==0.11.0 netifaces
==1.7.0 os-service-types
==5.11.1 pbr
==1.4.0 requestsexceptions
==1.15.1 cffi
==3.5.2 stevedore
==2.3 jsonpointer
==2.28.2 requests
==2.21 pycparser
==2022.12.7 certifi
==3.1.0 charset-normalizer
==3.4 idna


زبان مورد نیاز

مقدار نام
>=3.7,<4.0 Python


نحوه نصب


نصب پکیج whl c7n-openstack-0.1.9:

    pip install c7n-openstack-0.1.9.whl


نصب پکیج tar.gz c7n-openstack-0.1.9:

    pip install c7n-openstack-0.1.9.tar.gz