Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
path: .ansible/collections/ansible_collections/linode/cloud

- name: setup python 3
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ env.DEFAULT_PYTHON_VERSION }}

Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
path: .ansible/collections/ansible_collections/linode/cloud

- name: setup python 3
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ env.DEFAULT_PYTHON_VERSION }}

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/integration-tests-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
submodules: 'recursive'

- name: setup python 3
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.x'

Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/github-script@v7
- uses: actions/github-script@v8
id: update-check-run
if: ${{ inputs.pull_request_number != '' && fromJson(steps.commit-hash.outputs.data).repository.pullRequest.headRef.target.oid == inputs.sha }}
env:
Expand Down Expand Up @@ -144,7 +144,7 @@ jobs:

steps:
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.x'

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
submodules: 'recursive'

- name: Setup Python 3
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ inputs.run-eol-python-version == 'true' && env.EOL_PYTHON_VERSION || inputs.python-version || env.DEFAULT_PYTHON_VERSION }}

Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
submodules: 'recursive'

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.x'

Expand Down Expand Up @@ -174,7 +174,7 @@ jobs:

steps:
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.x'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
uses: actions/checkout@v5

- name: setup python 3
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.x'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly-smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
submodules: 'recursive'

- name: Setup Python 3
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ inputs.run-eol-python-version == 'true' && env.EOL_PYTHON_VERSION || inputs.python-version || env.DEFAULT_PYTHON_VERSION }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
path: .ansible/collections/ansible_collections/linode/cloud

- name: setup python 3
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.x'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
path: .ansible/collections/ansible_collections/linode/cloud

- name: setup python 3
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,11 @@ Name | Description |
[linode.cloud.volume_list](./docs/modules/volume_list.md)|List and filter on Linode Volumes.|
[linode.cloud.volume_type_list](./docs/modules/volume_type_list.md)|List and filter on Volume Types.|
[linode.cloud.vpc_ip_list](./docs/modules/vpc_ip_list.md)|List and filter on VPC IP Addresses.|
[linode.cloud.vpc_ipv6_list](./docs/modules/vpc_ipv6_list.md)|List and filter on all VPC IPv6 addresses for a given VPC.|
[linode.cloud.vpc_list](./docs/modules/vpc_list.md)|List and filter on VPCs.|
[linode.cloud.vpc_subnet_list](./docs/modules/vpc_subnet_list.md)|List and filter on VPC Subnets.|
[linode.cloud.vpcs_ip_list](./docs/modules/vpcs_ip_list.md)|List and filter on all VPC IP Addresses.|
[linode.cloud.vpcs_ipv6_list](./docs/modules/vpcs_ipv6_list.md)|List and filter on all VPC IPv6 addresses.|


### Inventory Plugins
Expand Down
5 changes: 5 additions & 0 deletions docs/modules/database_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ List and filter on Linode Managed Databases.
"id": 123,
"instance_uri": "/v4/databases/mysql/instances/123",
"label": "example-db",
"private_network": {
"public_access": true,
"subnet_id": 456,
"vpc_id": 123
},
"region": "us-east",
"status": "active",
"type": "g6-dedicated-2",
Expand Down
29 changes: 29 additions & 0 deletions docs/modules/database_mysql_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,20 @@ Create, read, and update a Linode MySQL database.
state: present
```

```yaml
- name: Create a MySQL database attached to a VPC
linode.cloud.database_mysql_v2:
label: my-db
region: us-mia
engine: mysql/8
type: g6-nanode-1
private_network:
vpc_id: 123
subnet_id: 456
public_access: true
state: present
```

```yaml
- name: Delete a MySQL database
linode.cloud.database_mysql_v2:
Expand All @@ -88,6 +102,8 @@ Create, read, and update a Linode MySQL database.
| `engine` | <center>`str`</center> | <center>Optional</center> | The Managed Database engine in engine/version format. **(Updatable)** |
| [`engine_config` (sub-options)](#engine_config) | <center>`dict`</center> | <center>Optional</center> | Various parameters used to configure this database's underlying engine. NOTE: If a configuration parameter is not current accepted by this field, configure using the linode.cloud.api_request module. **(Updatable)** |
| `label` | <center>`str`</center> | <center>Optional</center> | The label of the Managed Database. |
| `detach_private_network` | <center>`bool`</center> | <center>Optional</center> | If true, the Managed Database will be detached from its current private network when `private_network` is null. If the Managed Database is not currently attached to a private network or the private_network field is specified, this option has no effect. This is not necessary when switching between VPC subnets. **(Default: `False`)** |
| [`private_network` (sub-options)](#private_network) | <center>`dict`</center> | <center>Optional</center> | Restricts access to this database using a virtual private cloud (VPC) that you've configured in the region where the database will live. **(Updatable)** |
| `region` | <center>`str`</center> | <center>Optional</center> | The region of the Managed Database. |
| `type` | <center>`str`</center> | <center>Optional</center> | The Linode Instance type used by the Managed Database for its nodes. **(Updatable)** |
| [`fork` (sub-options)](#fork) | <center>`dict`</center> | <center>Optional</center> | Information about a database to fork from. |
Expand Down Expand Up @@ -133,6 +149,14 @@ Create, read, and update a Linode MySQL database.
| `tmp_table_size` | <center>`int`</center> | <center>Optional</center> | Limits the size of internal in-memory tables. Also sets max_heap_table_size. Default is 16777216 (16M). |
| `wait_timeout` | <center>`int`</center> | <center>Optional</center> | The number of seconds the server waits for activity on a noninteractive connection before closing it. |

### private_network

| Field | Type | Required | Description |
|-----------|------|----------|------------------------------------------------------------------------------|
| `vpc_id` | <center>`int`</center> | <center>**Required**</center> | The ID of the virtual private cloud (VPC) to restrict access to this database using |
| `subnet_id` | <center>`int`</center> | <center>**Required**</center> | The ID of the VPC subnet to restrict access to this database using. |
| `public_access` | <center>`bool`</center> | <center>Optional</center> | Set to `true` to allow clients outside of the VPC to connect to the database using a public IP address. **(Default: `False`)** |

### fork

| Field | Type | Required | Description |
Expand Down Expand Up @@ -183,6 +207,11 @@ Create, read, and update a Linode MySQL database.
"oldest_restore_time": "2025-02-10T20:15:07",
"platform": "rdbms-default",
"port": 11876,
"private_network": {
"public_access": true,
"subnet_id": 456,
"vpc_id": 123
},
"region": "ap-west",
"ssl_connection": true,
"status": "active",
Expand Down
29 changes: 29 additions & 0 deletions docs/modules/database_postgresql_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,20 @@ Create, read, and update a Linode PostgreSQL database.
state: present
```

```yaml
- name: Create a PostgreSQL database attached to a VPC
linode.cloud.database_postgresql_v2:
label: my-db
region: us-mia
engine: postgresql/16
type: g6-nanode-1
private_network:
vpc_id: 123
subnet_id: 456
public_access: true
state: present
```

```yaml
- name: Delete a PostgreSQL database
linode.cloud.database_postgresql_v2:
Expand All @@ -88,6 +102,8 @@ Create, read, and update a Linode PostgreSQL database.
| `engine` | <center>`str`</center> | <center>Optional</center> | The Managed Database engine in engine/version format. **(Updatable)** |
| [`engine_config` (sub-options)](#engine_config) | <center>`dict`</center> | <center>Optional</center> | Various parameters used to configure this database's underlying engine. NOTE: If a configuration parameter is not current accepted by this field, configure using the linode.cloud.api_request module. **(Updatable)** |
| `label` | <center>`str`</center> | <center>Optional</center> | The label of the Managed Database. |
| `detach_private_network` | <center>`bool`</center> | <center>Optional</center> | If true, the Managed Database will be detached from its current private network when `private_network` is null. If the Managed Database is not currently attached to a private network or the private_network field is specified, this option has no effect. This is not necessary when switching between VPC subnets. **(Default: `False`)** |
| [`private_network` (sub-options)](#private_network) | <center>`dict`</center> | <center>Optional</center> | Restricts access to this database using a virtual private cloud (VPC) that you've configured in the region where the database will live. **(Updatable)** |
| `region` | <center>`str`</center> | <center>Optional</center> | The region of the Managed Database. |
| `type` | <center>`str`</center> | <center>Optional</center> | The Linode Instance type used by the Managed Database for its nodes. **(Updatable)** |
| [`fork` (sub-options)](#fork) | <center>`dict`</center> | <center>Optional</center> | Information about a database to fork from. |
Expand Down Expand Up @@ -158,6 +174,14 @@ Create, read, and update a Linode PostgreSQL database.
|-----------|------|----------|------------------------------------------------------------------------------|
| `max_failover_replication_time_lag` | <center>`int`</center> | <center>Optional</center> | Number of seconds of master unavailability before triggering database failover to standby. |

### private_network

| Field | Type | Required | Description |
|-----------|------|----------|------------------------------------------------------------------------------|
| `vpc_id` | <center>`int`</center> | <center>**Required**</center> | The ID of the virtual private cloud (VPC) to restrict access to this database using |
| `subnet_id` | <center>`int`</center> | <center>**Required**</center> | The ID of the VPC subnet to restrict access to this database using. |
| `public_access` | <center>`bool`</center> | <center>Optional</center> | Set to `true` to allow clients outside of the VPC to connect to the database using a public IP address. **(Default: `False`)** |

### fork

| Field | Type | Required | Description |
Expand Down Expand Up @@ -208,6 +232,11 @@ Create, read, and update a Linode PostgreSQL database.
"oldest_restore_time": "2025-02-10T20:15:07",
"platform": "rdbms-default",
"port": 11876,
"private_network": {
"public_access": true,
"subnet_id": 456,
"vpc_id": 123
},
"region": "ap-west",
"ssl_connection": true,
"status": "active",
Expand Down
Loading
Loading