|
| 1 | +--- |
| 2 | +argument_specs: |
| 3 | + main: |
| 4 | + version_added: 2.0.0 |
| 5 | + short_description: A role to Create/Delete/Configure an Azure Database for PostgreSQL server. |
| 6 | + description: |
| 7 | + - A role to Create/Delete/Configure an Azure Database for PostgreSQL server. |
| 8 | + - This role requires an azure user account with valid permission. |
| 9 | + options: |
| 10 | + azure_manage_postgresql_operation: |
| 11 | + description: Operation to perform. |
| 12 | + default: "create" |
| 13 | + choices: ["create", "delete"] |
| 14 | + azure_manage_postgresql_delete_option: |
| 15 | + description: |
| 16 | + - used with `azure_manage_postgresql_operation` set to delete. |
| 17 | + - This option specifies wether to delete all resources including resource group and PostgreSQL server, or only the postgresql server. |
| 18 | + - If not specified only the firewall rules and/or the configuration settings and/or the database instances defined using dedicated variables will be removed from the PostgreSQL Server. |
| 19 | + choices: ['all', 'server'] |
| 20 | + azure_manage_postgresql_resource_group: |
| 21 | + description: |
| 22 | + - Resource group on/from which the Database server will be created/deleted. |
| 23 | + required: true |
| 24 | + azure_manage_postgresql_region: |
| 25 | + description: An Azure location for the resources. |
| 26 | + azure_manage_postgresql_tags: |
| 27 | + description: Dictionary of string:string pairs to assign as metadata to the object. |
| 28 | + type: dict |
| 29 | + elements: str |
| 30 | + azure_manage_postgresql_postgresql_name: |
| 31 | + description: The name of the Server. |
| 32 | + azure_manage_postgresql_postgresql_sku: |
| 33 | + description: The SKU (pricing tier) of the server. |
| 34 | + required: true |
| 35 | + type: dict |
| 36 | + options: |
| 37 | + name: |
| 38 | + description: |
| 39 | + - The name of the SKU, typically, tier + family + cores, for example B_Gen4_1, GP_Gen5_8. |
| 40 | + tier: |
| 41 | + description: The tier of the particular SKU. Valid values are Basic, Standard. |
| 42 | + capacity: |
| 43 | + description: The scale up/out capacity, representing the server's compute units. |
| 44 | + size: |
| 45 | + description: The size code, to be interpreted by resource as appropriate. |
| 46 | + azure_manage_postgresql_postgresql_storage_mb: |
| 47 | + description: The maximum storage allowed for a server. |
| 48 | + azure_manage_postgresql_postgresql_geo_redundant_backup: |
| 49 | + description: |
| 50 | + - Choose between locally redundant(default) or geo-redundant backup. |
| 51 | + - This cannot be updated after first deployment. |
| 52 | + default: false |
| 53 | + type: bool |
| 54 | + azure_manage_postgresql_postgresql_backup_retention_days: |
| 55 | + description: Backup retention period between 7 and 35 days. |
| 56 | + default: '7' |
| 57 | + azure_manage_postgresql_postgresql_version: |
| 58 | + description: Server version. |
| 59 | + choices: ['9.5', '9.6', '10', '11'] |
| 60 | + default: '9.5' |
| 61 | + azure_manage_postgresql_postgresql_enforce_ssl: |
| 62 | + description: Enable SSL enforcement. |
| 63 | + default: False |
| 64 | + type: bool |
| 65 | + azure_manage_postgresql_postgresql_storage_autogrow: |
| 66 | + description: Enable storage autogrow. |
| 67 | + default: False |
| 68 | + type: bool |
| 69 | + azure_manage_postgresql_postgresql_admin_username: |
| 70 | + description: |
| 71 | + - The administrator's login name of a server. |
| 72 | + - Can only be specified when the server is being created (and is required for creation). |
| 73 | + azure_manage_postgresql_postgresql_admin_password: |
| 74 | + description: |
| 75 | + - The password of the administrator login. |
| 76 | + - When this is not defined, the role will generated a password that can be read later in the variable name. |
| 77 | + azure_manage_postgresql_postgresql_create_mode: |
| 78 | + description: |
| 79 | + - Create mode of SQL Server. |
| 80 | + - restore from geo redundant (geo_restore), or restore from point in time (point_in_time_restore). |
| 81 | + choices: ['default, geo_restore', 'point_in_time_restore'] |
| 82 | + default: 'default' |
| 83 | + azure_manage_postgresql_postgresql_source_server_id: |
| 84 | + description: |
| 85 | + - Id of the source server if azure_manage_postgresql_postgresql_create_mode is set to default. |
| 86 | + azure_manage_postgresql_postgresql_restore_point_in_time: |
| 87 | + description: |
| 88 | + - Restore point creation time (ISO8601 format), specifying the time to restore from. |
| 89 | + - Required if azure_manage_postgresql_postgresql_create_mode is set to point_in_time_restore. |
| 90 | + azure_manage_postgresql_postgresql_settings: |
| 91 | + description: |
| 92 | + - list of configuration settings for PostgreSQL Server. |
| 93 | + type: list |
| 94 | + elements: dict |
| 95 | + options: |
| 96 | + name: |
| 97 | + description: setting name. |
| 98 | + value: |
| 99 | + description: value of the setting. |
| 100 | + azure_manage_postgresql_postgresql_firewall_rules: |
| 101 | + description: list of firewall rule to add/remove to the PostgreSQL Server. |
| 102 | + type: list |
| 103 | + elements: dict |
| 104 | + options: |
| 105 | + name: |
| 106 | + description: The name of the PostgreSQL firewall rule. |
| 107 | + start_ip_address: |
| 108 | + description: |
| 109 | + - The start IP address of the PostgreSQL firewall rule. |
| 110 | + - Must be IPv4 format. |
| 111 | + end_ip_address: |
| 112 | + description: |
| 113 | + - The end IP address of the PostgreSQL firewall rule. |
| 114 | + - Must be IPv4 format. |
| 115 | + azure_manage_postgresql_postgresql_database_instances: |
| 116 | + description: |
| 117 | + - list of database instances to create/delete on/from the PostgreSQL Server. |
| 118 | + type: list |
| 119 | + elements: dict |
| 120 | + options: |
| 121 | + name: |
| 122 | + description: The name of the PostgreSQL database instance. |
| 123 | + charset: |
| 124 | + description: |
| 125 | + - The charset of the database. Check PostgreSQL documentation for possible values. |
| 126 | + - This is only set on creation, use force to recreate a database if the values don't match. |
| 127 | + collation: |
| 128 | + description: |
| 129 | + -The collation of the database. |
| 130 | + - Check PostgreSQL documentation. This is only set on creation, use force to recreate a database if the values don't match. |
| 131 | + force: |
| 132 | + description: |
| 133 | + - When set to `True`, will delete and recreate the existing PostgreSQL database if any of the properties don't match what is set. |
| 134 | + - Ignore when operation is set to `delete`. |
| 135 | + type: bool |
0 commit comments