Server IP : 85.193.89.191 / Your IP : 13.58.228.208 Web Server : Apache System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : bitrix ( 600) PHP Version : 8.1.27 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python2.7/site-packages/ansible/plugins/inventory/ |
Upload File : |
� � �\c @` s� d d l m Z m Z m Z e Z d Z d Z d d l m Z d d l m Z d d l m Z d d l m Z m Z d d l m Z d d l m Z m Z m Z y d d l Z d d l Z Wn e k r� e d � � n Xd e e e f d � � YZ d S( i ( t absolute_importt divisiont print_functions� name: aws_rds plugin_type: inventory short_description: rds instance source description: - Get instances and clusters from Amazon Web Services RDS. - Uses a YAML configuration file that ends with aws_rds.(yml|yaml). options: boto_profile: description: The boto profile to use. The plugin will look for an instance role if no credentials are provided. env: - name: AWS_PROFILE - name: AWS_DEFAULT_PROFILE aws_access_key_id: description: The AWS access key to use. If you have specified a profile, you don't need to provide an access key/secret key/session token. env: - name: AWS_ACCESS_KEY_ID - name: AWS_ACCESS_KEY - name: EC2_ACCESS_KEY aws_secret_access_key: description: The AWS secret key that corresponds to the access key. If you have specified a profile, you don't need to provide an access key/secret key/session token. env: - name: AWS_SECRET_ACCESS_KEY - name: AWS_SECRET_KEY - name: EC2_SECRET_KEY aws_security_token: description: The AWS security token if using temporary access and secret keys. env: - name: AWS_SECURITY_TOKEN - name: AWS_SESSION_TOKEN - name: EC2_SECURITY_TOKEN regions: description: A list of regions in which to describe RDS instances and clusters. Available regions are listed here U(https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html) default: [] filters: description: A dictionary of filter value pairs. Available filters are listed here U(https://docs.aws.amazon.com/cli/latest/reference/rds/describe-db-instances.html#options). If you filter by db-cluster-id and I(include_clusters) is True it will apply to clusters as well. default: {} strict_permissions: description: By default if an AccessDenied exception is encountered this plugin will fail. You can set strict_permissions to False in the inventory config file which will allow the restrictions to be gracefully skipped. type: bool default: True include_clusters: description: Whether or not to query for Aurora clusters as well as instances type: bool default: False statuses: description: A list of desired states for instances/clusters to be added to inventory. Set to ['all'] as a shorthand to find everything. type: list default: - creating - available extends_documentation_fragment: - inventory_cache - constructed requirements: - boto3 - botocore author: Sloane Hertel (@s-hertel) s� plugin: aws_rds regions: - us-east-1 - ca-central-1 keyed_groups: - key: 'db_parameter_groups|json_query("[].db_parameter_group_name")' prefix: rds_parameter_group - key: engine prefix: rds - key: tags - key: region ( t AnsibleError( t to_native( t is_boto3_error_code( t! ansible_dict_to_boto3_filter_listt boto3_tag_list_to_ansible_dict( t camel_dict_to_snake_dict( t BaseInventoryPlugint Constructablet CacheableNs= The RDS dynamic inventory plugin requires boto3 and botocore.t InventoryModulec B` s� e Z d Z d � Z d � Z d � Z e d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z e d � Z RS( t aws_rdsc C` s) t t | � j � i | _ d | _ d S( N( t superR t __init__t credentialst Nonet boto_profile( t self( ( sE /usr/lib/python2.7/site-packages/ansible/plugins/inventory/aws_rds.pyR j s c c` s� x� | D]� } y. t j j d | j � j d | | j � } Wn� t j j t j j f k r� } | j r� y( t j j d | j � j d | � } Wq� t j j t j j f k r� } t d t | � � � q� Xq� t d t | � � � n X| | f Vq Wd S( s� :param regions: A list of regions to create a boto3 client Generator that yields a boto3 client and the region t profile_namet rdss"