??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
 Udac@`sJddlmZmZmZeZidd6dgd6dd6ZdZd Zd Z dd l Z ydd l Z dd l Z Wnek rnXy"dd lZ dd lZ eZWnek reZnXdd lmZdd lmZddlmZmZmZmZidd6dd6dd6dd6dd6dd6ZdefdYZdd4dYZdd5dYZ dd6d YZ!d!d7d"YZ"d#d8d$YZ#d%d9d&YZ$d'Z%d(Z&d)Z'd*Z(d+Z)d,Z*d-Z+d.Z,d/Z-d0Z.d1Z/d2Z0e1d3krFe0nd S(:i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontstableinterfacetstatust communityt supported_bysO --- module: rds version_added: "1.3" short_description: create, delete, or modify Amazon rds instances, rds snapshots, and related facts description: - Creates, deletes, or modifies rds resources. - When creating an instance it can be either a new instance or a read-only replica of an existing instance. - This module has a dependency on python-boto >= 2.5 and will soon be deprecated. - The 'promote' command requires boto >= 2.18.0. Certain features such as tags rely on boto.rds2 (boto >= 2.26.0). - Please use boto3 based M(rds_instance) instead. options: command: description: - Specifies the action to take. The 'reboot' option is available starting at version 2.0 required: true choices: [ 'create', 'replicate', 'delete', 'facts', 'modify' , 'promote', 'snapshot', 'reboot', 'restore' ] instance_name: description: - Database instance identifier. Required except when using command=facts or command=delete on just a snapshot source_instance: description: - Name of the database to replicate. Used only when command=replicate. db_engine: description: - The type of database. Used only when command=create. - mariadb was added in version 2.2 choices: ['mariadb', 'MySQL', 'oracle-se1', 'oracle-se2', 'oracle-se', 'oracle-ee', 'sqlserver-ee', 'sqlserver-se', 'sqlserver-ex', 'sqlserver-web', 'postgres', 'aurora'] size: description: - Size in gigabytes of the initial storage for the DB instance. Used only when command=create or command=modify. instance_type: description: - The instance type of the database. Must be specified when command=create. Optional when command=replicate, command=modify or command=restore. If not specified then the replica inherits the same instance type as the source instance. username: description: - Master database username. Used only when command=create. password: description: - Password for the master database username. Used only when command=create or command=modify. region: description: - The AWS region to use. If not specified then the value of the EC2_REGION environment variable, if any, is used. required: true aliases: [ 'aws_region', 'ec2_region' ] db_name: description: - Name of a database to create within the instance. If not specified then no database is created. Used only when command=create. engine_version: description: - Version number of the database engine to use. Used only when command=create. If not specified then the current Amazon RDS default engine version is used parameter_group: description: - Name of the DB parameter group to associate with this instance. If omitted then the RDS default DBParameterGroup will be used. Used only when command=create or command=modify. license_model: description: - The license model for this DB instance. Used only when command=create or command=restore. choices: [ 'license-included', 'bring-your-own-license', 'general-public-license', 'postgresql-license' ] multi_zone: description: - Specifies if this is a Multi-availability-zone deployment. Can not be used in conjunction with zone parameter. Used only when command=create or command=modify. type: bool iops: description: - Specifies the number of IOPS for the instance. Used only when command=create or command=modify. Must be an integer greater than 1000. security_groups: description: - Comma separated list of one or more security groups. Used only when command=create or command=modify. vpc_security_groups: description: - Comma separated list of one or more vpc security group ids. Also requires `subnet` to be specified. Used only when command=create or command=modify. port: description: - Port number that the DB instance uses for connections. Used only when command=create or command=replicate. - Prior to 2.0 it always defaults to null and the API would use 3306, it had to be set to other DB default values when not using MySql. Starting at 2.0 it automatically defaults to what is expected for each C(db_engine). default: 3306 for mysql, 1521 for Oracle, 1433 for SQL Server, 5432 for PostgreSQL. upgrade: description: - Indicates that minor version upgrades should be applied automatically. - Used only when command=create or command=modify or command=restore or command=replicate. type: bool default: 'no' option_group: description: - The name of the option group to use. If not specified then the default option group is used. Used only when command=create. maint_window: description: - > Maintenance window in format of ddd:hh24:mi-ddd:hh24:mi. (Example: Mon:22:00-Mon:23:15) If not specified then a random maintenance window is assigned. Used only when command=create or command=modify. backup_window: description: - Backup window in format of hh24:mi-hh24:mi. If not specified then a random backup window is assigned. Used only when command=create or command=modify. backup_retention: description: - > Number of days backups are retained. Set to 0 to disable backups. Default is 1 day. Valid range: 0-35. Used only when command=create or command=modify. zone: description: - availability zone in which to launch the instance. Used only when command=create, command=replicate or command=restore. aliases: ['aws_zone', 'ec2_zone'] subnet: description: - VPC subnet group. If specified then a VPC instance is created. Used only when command=create. snapshot: description: - Name of snapshot to take. When command=delete, if no snapshot name is provided then no snapshot is taken. If used with command=delete with no instance_name, the snapshot is deleted. Used with command=facts, command=delete or command=snapshot. aws_secret_key: description: - AWS secret key. If not set then the value of the AWS_SECRET_KEY environment variable is used. aliases: [ 'ec2_secret_key', 'secret_key' ] aws_access_key: description: - AWS access key. If not set then the value of the AWS_ACCESS_KEY environment variable is used. aliases: [ 'ec2_access_key', 'access_key' ] wait: description: - When command=create, replicate, modify or restore then wait for the database to enter the 'available' state. When command=delete wait for the database to be terminated. type: bool default: 'no' wait_timeout: description: - how long before wait gives up, in seconds default: 300 apply_immediately: description: - Used only when command=modify. If enabled, the modifications will be applied as soon as possible rather than waiting for the next preferred maintenance window. type: bool default: 'no' force_failover: description: - Used only when command=reboot. If enabled, the reboot is done using a MultiAZ failover. type: bool default: 'no' version_added: "2.0" new_instance_name: description: - Name to rename an instance to. Used only when command=modify. version_added: "1.5" character_set_name: description: - Associate the DB instance with a specified character set. Used with command=create. version_added: "1.9" publicly_accessible: description: - explicitly set whether the resource should be publicly accessible or not. Used with command=create, command=replicate. Requires boto >= 2.26.0 version_added: "1.9" tags: description: - tags dict to apply to a resource. Used with command=create, command=replicate, command=restore. Requires boto >= 2.26.0 version_added: "1.9" requirements: - "python >= 2.6" - "boto" author: - "Bruce Pennypacker (@bpennypacker)" - "Will Thames (@willthames)" extends_documentation_fragment: - aws - ec2 sZ # Basic mysql provisioning example - rds: command: create instance_name: new-database db_engine: MySQL size: 10 instance_type: db.m1.small username: mysql_admin password: 1nsecure tags: Environment: testing Application: cms # Create a read-only replica and wait for it to become available - rds: command: replicate instance_name: new-database-replica source_instance: new_database wait: yes wait_timeout: 600 # Delete an instance, but create a snapshot before doing so - rds: command: delete instance_name: new-database snapshot: new_database_snapshot # Get facts about an instance - rds: command: facts instance_name: new-database register: new_database_facts # Rename an instance and wait for the change to take effect - rds: command: modify instance_name: new-database new_instance_name: renamed-database wait: yes # Reboot an instance and wait for it to become available again - rds: command: reboot instance_name: database wait: yes # Restore a Postgres db instance from a snapshot, wait for it to become available again, and # then modify it to add your security group. Also, display the new endpoint. # Note that the "publicly_accessible" option is allowed here just as it is in the AWS CLI - local_action: module: rds command: restore snapshot: mypostgres-snapshot instance_name: MyNewInstanceName region: us-west-2 zone: us-west-2b subnet: default-vpc-xx441xxx publicly_accessible: yes wait: yes wait_timeout: 600 tags: Name: pg1_test_name_tag register: rds - local_action: module: rds command: modify instance_name: MyNewInstanceName region: us-west-2 vpc_security_groups: sg-xxx945xx - debug: msg: "The new db endpoint is {{ rds.instance.endpoint }}" s% instance: description: the rds instance returned: always type: complex contains: engine: description: the name of the database engine returned: when RDS instance exists type: str sample: "oracle-se" engine_version: description: the version of the database engine returned: when RDS instance exists type: str sample: "11.2.0.4.v6" license_model: description: the license model information returned: when RDS instance exists type: str sample: "bring-your-own-license" character_set_name: description: the name of the character set that this instance is associated with returned: when RDS instance exists type: str sample: "AL32UTF8" allocated_storage: description: the allocated storage size in gigabytes (GB) returned: when RDS instance exists type: str sample: "100" publicly_accessible: description: the accessibility options for the DB instance returned: when RDS instance exists type: bool sample: "true" latest_restorable_time: description: the latest time to which a database can be restored with point-in-time restore returned: when RDS instance exists type: str sample: "1489707802.0" secondary_availability_zone: description: the name of the secondary AZ for a DB instance with multi-AZ support returned: when RDS instance exists and is multy-AZ type: str sample: "eu-west-1b" backup_window: description: the daily time range during which automated backups are created if automated backups are enabled returned: when RDS instance exists and automated backups are enabled type: str sample: "03:00-03:30" auto_minor_version_upgrade: description: indicates that minor engine upgrades will be applied automatically to the DB instance during the maintenance window returned: when RDS instance exists type: bool sample: "true" read_replica_source_dbinstance_identifier: description: the identifier of the source DB instance if this RDS instance is a read replica returned: when read replica RDS instance exists type: str sample: "null" db_name: description: the name of the database to create when the DB instance is created returned: when RDS instance exists type: str sample: "ASERTG" endpoint: description: the endpoint uri of the database instance returned: when RDS instance exists type: str sample: "my-ansible-database.asdfaosdgih.us-east-1.rds.amazonaws.com" port: description: the listening port of the database instance returned: when RDS instance exists type: int sample: 3306 parameter_groups: description: the list of DB parameter groups applied to this RDS instance returned: when RDS instance exists and parameter groups are defined type: complex contains: parameter_apply_status: description: the status of parameter updates returned: when RDS instance exists type: str sample: "in-sync" parameter_group_name: description: the name of the DP parameter group returned: when RDS instance exists type: str sample: "testawsrpprodb01spfile-1ujg7nrs7sgyz" option_groups: description: the list of option group memberships for this RDS instance returned: when RDS instance exists type: complex contains: option_group_name: description: the option group name for this RDS instance returned: when RDS instance exists type: str sample: "default:oracle-se-11-2" status: description: the status of the RDS instance's option group membership returned: when RDS instance exists type: str sample: "in-sync" pending_modified_values: description: a dictionary of changes to the RDS instance that are pending returned: when RDS instance exists type: complex contains: db_instance_class: description: the new DB instance class for this RDS instance that will be applied or is in progress returned: when RDS instance exists type: str sample: "null" db_instance_identifier: description: the new DB instance identifier this RDS instance that will be applied or is in progress returned: when RDS instance exists type: str sample: "null" allocated_storage: description: the new allocated storage size for this RDS instance that will be applied or is in progress returned: when RDS instance exists type: str sample: "null" backup_retention_period: description: the pending number of days for which automated backups are retained returned: when RDS instance exists type: str sample: "null" engine_version: description: indicates the database engine version returned: when RDS instance exists type: str sample: "null" iops: description: the new provisioned IOPS value for this RDS instance that will be applied or is being applied returned: when RDS instance exists type: str sample: "null" master_user_password: description: the pending or in-progress change of the master credentials for this RDS instance returned: when RDS instance exists type: str sample: "null" multi_az: description: indicates that the single-AZ RDS instance is to change to a multi-AZ deployment returned: when RDS instance exists type: str sample: "null" port: description: specifies the pending port for this RDS instance returned: when RDS instance exists type: str sample: "null" db_subnet_groups: description: information on the subnet group associated with this RDS instance returned: when RDS instance exists type: complex contains: description: description: the subnet group associated with the DB instance returned: when RDS instance exists type: str sample: "Subnets for the UAT RDS SQL DB Instance" name: description: the name of the DB subnet group returned: when RDS instance exists type: str sample: "samplesubnetgrouprds-j6paiqkxqp4z" status: description: the status of the DB subnet group returned: when RDS instance exists type: str sample: "complete" subnets: description: the description of the DB subnet group returned: when RDS instance exists type: complex contains: availability_zone: description: subnet availability zone information returned: when RDS instance exists type: complex contains: name: description: availability zone returned: when RDS instance exists type: str sample: "eu-west-1b" provisioned_iops_capable: description: whether provisioned iops are available in AZ subnet returned: when RDS instance exists type: bool sample: "false" identifier: description: the identifier of the subnet returned: when RDS instance exists type: str sample: "subnet-3fdba63e" status: description: the status of the subnet returned: when RDS instance exists type: str sample: "active" N(t AnsibleModule(tAWSRetry(tHAS_BOTOtconnect_to_awstec2_argument_spectget_aws_connection_infoi tauroratmariadbtmysqlitoracleit sqlserveri8tpostgrest RDSExceptioncB`seZdZRS(cC`st|dr3|jr3|j|_|j|_nat|dr|d|jkr||jdd|_|jdd|_nt||_d|_dS(Nt error_messagetbodytErrortMessagetCodes Unknown Error(thasattrRtmessaget error_codetcodeRtstr(tselftexc((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/rds.pyt__init__s (t__name__t __module__R!(((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/rds.pyRst RDSConnectioncB`steZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z RS( cK`sOyttj|||_Wn,tjjk rJ}|jd|jnXdS(Ntmsg(R tbototrdst connectiont exceptiontBotoServerErrort fail_jsonR(Rtmoduletregiontaws_connect_paramste((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/rds.pyR!scC`s=yt|jj|dSWntjjk r8dSXdS(Ni(t RDSDBInstanceR(tget_all_dbinstancesR&R)R*tNone(Rt instancename((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/rds.pytget_db_instance scC`s@y!t|jjd|dSWntjjk r;dSXdS(Nt snapshot_idi(t RDSSnapshotR(tget_all_dbsnapshotsR&R)R*R2(Rt snapshotid((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/rds.pytget_db_snapshots!c K`se||d|jj|||||||ddd}t|SWn%tjjk re} t| nXdS(NtCreateDBInstanceResponsetCreateDBInstanceResultt DBInstance(R(RDR^R&R)R*R( RR<R=R>R?R@RARBRCR/((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/rds.pyRDvs cK`s^y2|jj|||ddd}t|SWn%tjjk rY}t|nXdS(Nt#CreateDBInstanceReadReplicaResponset!CreateDBInstanceReadReplicaResultRo(R(RGR^R&R)R*R(RR<RFRBRCR/((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/rds.pyRGs cK`s[y/|jj||ddd}t|SWn%tjjk rV}t|nXdS(NtDeleteDBInstanceResponsetDeleteDBInstanceResultRo(R(RIR^R&R)R*R(RR<RBRCR/((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/rds.pyRIs !cC`sXy,|jj|ddd}t|SWn%tjjk rS}t|nXdS(NtDeleteDBSnapshotResponsetDeleteDBSnapshotResultt DBSnapshot(R(RLRjR&R)R*R(RRKRCR/((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/rds.pyRLs cK`s[y/|jj||ddd}t|SWn%tjjk rV}t|nXdS(NtModifyDBInstanceResponsetModifyDBInstanceResultRo(R(RNR^R&R)R*R(RR<RBRCR/((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/rds.pyRNs !cK`s[y/|jj||ddd}t|SWn%tjjk rV}t|nXdS(NtRebootDBInstanceResponsetRebootDBInstanceResultRo(R(RPR^R&R)R*R(RR<RBRCR/((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/rds.pyRPs !cK`s^y2|jj|||ddd}t|SWn%tjjk rY}t|nXdS(Nt'RestoreDBInstanceFromDBSnapshotResponset%RestoreDBInstanceFromDBSnapshotResultRo(R(RSR^R&R)R*R(RR<RKRRRBRCR/((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/rds.pyRSs cK`s^y2|jj|||ddd}t|SWn%tjjk rY}t|nXdS(NtCreateDBSnapshotResponsetCreateDBSnapshotResultRv(R(RURjR&R)R*R(RRKR<RBRCR/((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/rds.pyRUs $cK`s[y/|jj||ddd}t|SWn%tjjk rV}t|nXdS(NtPromoteReadReplicaResponsetPromoteReadReplicaResultRo(R(RVR^R&R)R*R(RR<RBRCR/((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/rds.pyRVs !(R"R#R!R4R9RDRGRIRLRNRPRSRURV(((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/rds.pyRWXs      R0cB`seZdZdZRS(cC`s%||_|j|_|j|_dS(N(tinstancetidtnameR(Rt dbinstance((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/rds.pyR!s  cC`si |jd6|jjd6|jd6|jjd6|jjd6|jjd6|jjd6|jjd6|jj d 6|jj d 6|jj d 6}t |jd r|jj d |d <|jj d|d<|jjdk rdjd|jjD|dstvpc_security_groupstDBNametreplication_source(RRRRRtbackup_retention_periodtpreferred_backup_windowtpreferred_maintenance_windowtmulti_azR>tmaster_usernameRRRRR2tjoinRt%ReadReplicaSourceDBInstanceIdentifierRa(Rtd((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/rds.pytget_datas6          &    ( (R"R#R!R(((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/rds.pyR0s R^cB`seZdZdZRS(cC`sO||_d|kr!d|_n|jjd|_|jjd|_dS(NtDBInstanceIdentifiertDBInstanceStatus(RR2RtgetR(RR((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/rds.pyR!s    cC`sNi|jd6|jdd6|jdd6|jdd6|jdd 6|jd d 6|jd d 6|jdd6|jdd6|jd6|jdd6|jdd6|jdd6|jdd6|jdd6|jdd6|jdd 6|jd!d"6|jd#d$6|jd%d&6|jd'd(6|jd)d*6|jdd+6}|jd,dk rg}x8|jd,D])}|ji|d-d.6|d/d06qgW||d16|d?d@6|dA7sRtEndpointtAddressR( RRRR2tappendtlowerRRR(RRRRRtpdvtdsgR((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/rds.pyRs  ' '               '"   )(R"R#R!R(((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/rds.pyR^s R6cB`seZdZdZRS(cC`s%||_|j|_|j|_dS(N(RKRRR(RRK((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/rds.pyR!Cs  cC`si|jd6|jjd6|jd6|jjd6|jjd6|jjd6}t|jdrs|jj|dRRRRtdb_parameter_group_nameRRRtnew_db_instance_identifierRtdb_security_groupsRs/Parameter %s requires boto.rds (boto >= 2.26.0)s(Parameter %s is not valid for %s commandRRtvpc_security_group_idsR(RBRR+RtupdatetsettkeystitemsR2RtsplitRR&R'tVPCSecurityGroupMembership(R R R,Rtvtoptional_paramstoptional_params_rdstoptional_params_rds2t sec_grouptkRBt vpc_groupst groups_listR((sD/usr/lib/python2.7/site-packages/ansible/modules/cloud/amazon/rds.pyRs !      )$ !"     cJC`s5t}|jtdtdddddddd d d g d td td tdtd tdtdddddddddddddg d tdtd tdtddgd td td td!td"td td#td td$td td%td td&tdd'd(d)d*gd td+tdd,d td-td td.td td/tdd0d td1td tdd2d3tdd,d4td5td td6td td7td td8td td9tdd:d;gd td<td td=tdd,d4td>tdd2d4d?d td td@tdd,d4tdAtd tdBtddCd tdDtd tdEtd tdFtdd,d td4t!tdG|}ts|jdHdIni td6t d6t d6t d6t d6t d6td 6td 6td 6}t|\}}}|sW|jdHdJn|jd1dkr|jddk r|jddkrdK|jdkr|jdjdKdL}n |jd}t|j|jd1sd   N        "  Vh*X  $  /  %     T P