Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 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/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ jobs:
steps:
- name: Notify Slack
id: main_message
uses: slackapi/slack-github-action@v2.0.0
uses: slackapi/slack-github-action@v2.1.0
with:
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
Expand Down Expand Up @@ -238,7 +238,7 @@ jobs:

- name: Test summary thread
if: success()
uses: slackapi/slack-github-action@v2.0.0
uses: slackapi/slack-github-action@v2.1.0
with:
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
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 @@ -54,7 +54,7 @@ jobs:

- name: Notify Slack
if: (success() || failure()) && github.repository == 'linode/ansible_linode'
uses: slackapi/slack-github-action@v2.0.0
uses: slackapi/slack-github-action@v2.1.0
with:
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-notify-slack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- name: Notify Slack - Main Message
id: main_message
uses: slackapi/slack-github-action@v2.0.0
uses: slackapi/slack-github-action@v2.1.0
with:
method: chat.postMessage
token: ${{ secrets.SLACK_BOT_TOKEN }}
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ jobs:
with:
path: .ansible/collections/ansible_collections/linode/cloud

- name: update packages
run: sudo apt-get update -y

- name: install make
run: sudo apt-get install -y build-essential

- name: setup python 3
uses: actions/setup-python@v5
with:
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ else
exit 1;
endif
@echo "ua_prefix: E2E" >> $(INTEGRATION_CONFIG)
@echo "api_url: $(TEST_API_URL)" >> $(INTEGRATION_CONFIG)
@echo "api_version: $(TEST_API_VERSION)" >> $(INTEGRATION_CONFIG)
@echo "ca_file: $(TEST_API_CA)" >> $(INTEGRATION_CONFIG)
@echo "api_url: $$(url=$${LINODE_API_URL:-$${TEST_API_URL:-https://api.linode.com}}; echo $${url%/}/)" >> $(INTEGRATION_CONFIG)
@echo "api_version: $${LINODE_API_VERSION:-$${TEST_API_VERSION:-v4beta}}" >> $(INTEGRATION_CONFIG)
@echo "ca_file: $${LINODE_CA:-$${TEST_API_CA}}" >> $(INTEGRATION_CONFIG)

inject:
@echo "Injecting documentation into source files"
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Name | Description |
[linode.cloud.account_availability_info](./docs/modules/account_availability_info.md)|Get info about a Linode Account Availability.|
[linode.cloud.account_info](./docs/modules/account_info.md)|Get info about a Linode Account.|
[linode.cloud.child_account_info](./docs/modules/child_account_info.md)|Get info about a Linode Child Account.|
[linode.cloud.database_config_info](./docs/modules/database_config_info.md)|Get info about a Linode Configuration.|
[linode.cloud.database_mysql_info](./docs/modules/database_mysql_info.md)|Get info about a Linode MySQL Managed Database.|
[linode.cloud.database_postgresql_info](./docs/modules/database_postgresql_info.md)|Get info about a Linode PostgreSQL Managed Database.|
[linode.cloud.domain_info](./docs/modules/domain_info.md)|Get info about a Linode Domain.|
Expand All @@ -75,6 +76,7 @@ Name | Description |
[linode.cloud.lke_version_info](./docs/modules/lke_version_info.md)|Get info about a Linode LKE Version.|
[linode.cloud.nodebalancer_info](./docs/modules/nodebalancer_info.md)|Get info about a Linode Node Balancer.|
[linode.cloud.object_cluster_info](./docs/modules/object_cluster_info.md)|**NOTE: This module has been deprecated because it relies on deprecated API endpoints. Going forward, `region` will be the preferred way to designate where Object Storage resources should be created.**|
[linode.cloud.object_storage_quota_info](./docs/modules/object_storage_quota_info.md)|Get info about a Linode Object Storage Quota.|
[linode.cloud.placement_group_info](./docs/modules/placement_group_info.md)|Get info about a Linode Placement Group.|
[linode.cloud.profile_info](./docs/modules/profile_info.md)|Get info about a Linode Profile.|
[linode.cloud.region_info](./docs/modules/region_info.md)|Get info about a Linode Region.|
Expand Down Expand Up @@ -112,6 +114,7 @@ Name | Description |
[linode.cloud.nodebalancer_type_list](./docs/modules/nodebalancer_type_list.md)|List and filter on Node Balancer Types.|
[linode.cloud.object_cluster_list](./docs/modules/object_cluster_list.md)|**NOTE: This module has been deprecated because it relies on deprecated API endpoints. Going forward, `region` will be the preferred way to designate where Object Storage resources should be created.**|
[linode.cloud.object_storage_endpoint_list](./docs/modules/object_storage_endpoint_list.md)|List and filter on Object Storage Endpoints.|
[linode.cloud.object_storage_quota_list](./docs/modules/object_storage_quota_list.md)|List and filter on Object Storage Quotas.|
[linode.cloud.placement_group_list](./docs/modules/placement_group_list.md)|List and filter on Placement Groups.|
[linode.cloud.region_list](./docs/modules/region_list.md)|List and filter on Regions.|
[linode.cloud.ssh_key_list](./docs/modules/ssh_key_list.md)|List and filter on SSH Keys.|
Expand Down
275 changes: 275 additions & 0 deletions docs/modules/database_config_info.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,275 @@
# database_config_info

Get info about a Linode Configuration.

- [Minimum Required Fields](#minimum-required-fields)
- [Examples](#examples)
- [Parameters](#parameters)
- [Return Values](#return-values)

## Minimum Required Fields
| Field | Type | Required | Description |
|-------------|-------|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `api_token` | `str` | **Required** | The Linode account personal access token. It is necessary to run the module. <br/>It can be exposed by the environment variable `LINODE_API_TOKEN` instead. <br/>See details in [Usage](https://github.com/linode/ansible_linode?tab=readme-ov-file#usage). |

## Examples

```yaml
- name: Get all available engine configuration fields for MySQL databases
linode.cloud.database_config_info:
engine: mysql
```

```yaml
- name: Get all available engine configuration fields for PostgreSQL databases
linode.cloud.database_config_info:
engine: postgresql
```


## Parameters

| Field | Type | Required | Description |
|-----------|------|----------|------------------------------------------------------------------------------|
| `engine` | <center>`str`</center> | <center>**Required**</center> | The Database Engine of the Configuration to resolve. |

## Return Values

- `config` - The returned Configuration.

- Sample Response:
```json

{
"binlog_retention_period": {
"description": "The minimum amount of time in seconds to keep binlog entries before deletion. This may be extended for services that require binlog entries for longer than the default for example if using the MySQL Debezium Kafka connector.",
"example": 600,
"maximum": 86400,
"minimum": 600,
"requires_restart": false,
"type": "integer"
},
"mysql": {
"connect_timeout": {
"description": "The number of seconds that the mysqld server waits for a connect packet before responding with Bad handshake",
"example": 10,
"maximum": 3600,
"minimum": 2,
"requires_restart": false,
"type": "integer"
},
"default_time_zone": {
"description": "Default server time zone as an offset from UTC (from -12:00 to +12:00), a time zone name, or 'SYSTEM' to use the MySQL server default.",
"example": "+03:00",
"maxLength": 100,
"minLength": 2,
"pattern": "^([-+][\\d:]*|[\\w/]*)$",
"requires_restart": false,
"type": "string"
},
"group_concat_max_len": {
"description": "The maximum permitted result length in bytes for the GROUP_CONCAT() function.",
"example": 1024,
"maximum": 18446744073709551615,
"minimum": 4,
"requires_restart": false,
"type": "integer"
},
"information_schema_stats_expiry": {
"description": "The time, in seconds, before cached statistics expire",
"example": 86400,
"maximum": 31536000,
"minimum": 900,
"requires_restart": false,
"type": "integer"
},
"innodb_change_buffer_max_size": {
"description": "Maximum size for the InnoDB change buffer, as a percentage of the total size of the buffer pool. Default is 25",
"example": 30,
"maximum": 50,
"minimum": 0,
"requires_restart": false,
"type": "integer"
},
"innodb_flush_neighbors": {
"description": "Specifies whether flushing a page from the InnoDB buffer pool also flushes other dirty pages in the same extent (default is 1): 0 - dirty pages in the same extent are not flushed, 1 - flush contiguous dirty pages in the same extent, 2 - flush dirty pages in the same extent",
"example": 0,
"maximum": 2,
"minimum": 0,
"requires_restart": false,
"type": "integer"
},
"innodb_ft_min_token_size": {
"description": "Minimum length of words that are stored in an InnoDB FULLTEXT index. Changing this parameter will lead to a restart of the MySQL service.",
"example": 3,
"maximum": 16,
"minimum": 0,
"requires_restart": true,
"type": "integer"
},
"innodb_ft_server_stopword_table": {
"description": "This option is used to specify your own InnoDB FULLTEXT index stopword list for all InnoDB tables.",
"example": "db_name/table_name",
"maxLength": 1024,
"pattern": "^.+/.+$",
"requires_restart": false,
"type": [
"null",
"string"
]
},
"innodb_lock_wait_timeout": {
"description": "The length of time in seconds an InnoDB transaction waits for a row lock before giving up. Default is 120.",
"example": 50,
"maximum": 3600,
"minimum": 1,
"requires_restart": false,
"type": "integer"
},
"innodb_log_buffer_size": {
"description": "The size in bytes of the buffer that InnoDB uses to write to the log files on disk.",
"example": 16777216,
"maximum": 4294967295,
"minimum": 1048576,
"requires_restart": false,
"type": "integer"
},
"innodb_online_alter_log_max_size": {
"description": "The upper limit in bytes on the size of the temporary log files used during online DDL operations for InnoDB tables.",
"example": 134217728,
"maximum": 1099511627776,
"minimum": 65536,
"requires_restart": false,
"type": "integer"
},
"innodb_read_io_threads": {
"description": "The number of I/O threads for read operations in InnoDB. Default is 4. Changing this parameter will lead to a restart of the MySQL service.",
"example": 10,
"maximum": 64,
"minimum": 1,
"requires_restart": true,
"type": "integer"
},
"innodb_rollback_on_timeout": {
"description": "When enabled a transaction timeout causes InnoDB to abort and roll back the entire transaction. Changing this parameter will lead to a restart of the MySQL service.",
"example": true,
"requires_restart": true,
"type": "boolean"
},
"innodb_thread_concurrency": {
"description": "Defines the maximum number of threads permitted inside of InnoDB. Default is 0 (infinite concurrency - no limit)",
"example": 10,
"maximum": 1000,
"minimum": 0,
"requires_restart": false,
"type": "integer"
},
"innodb_write_io_threads": {
"description": "The number of I/O threads for write operations in InnoDB. Default is 4. Changing this parameter will lead to a restart of the MySQL service.",
"example": 10,
"maximum": 64,
"minimum": 1,
"requires_restart": true,
"type": "integer"
},
"interactive_timeout": {
"description": "The number of seconds the server waits for activity on an interactive connection before closing it.",
"example": 3600,
"maximum": 604800,
"minimum": 30,
"requires_restart": false,
"type": "integer"
},
"internal_tmp_mem_storage_engine": {
"description": "The storage engine for in-memory internal temporary tables.",
"enum": [
"TempTable",
"MEMORY"
],
"example": "TempTable",
"requires_restart": false,
"type": "string"
},
"max_allowed_packet": {
"description": "Size of the largest message in bytes that can be received by the server. Default is 67108864 (64M)",
"example": 67108864,
"maximum": 1073741824,
"minimum": 102400,
"requires_restart": false,
"type": "integer"
},
"max_heap_table_size": {
"description": "Limits the size of internal in-memory tables. Also set tmp_table_size. Default is 16777216 (16M)",
"example": 16777216,
"maximum": 1073741824,
"minimum": 1048576,
"requires_restart": false,
"type": "integer"
},
"net_buffer_length": {
"description": "Start sizes of connection buffer and result buffer. Default is 16384 (16K). Changing this parameter will lead to a restart of the MySQL service.",
"example": 16384,
"maximum": 1048576,
"minimum": 1024,
"requires_restart": true,
"type": "integer"
},
"net_read_timeout": {
"description": "The number of seconds to wait for more data from a connection before aborting the read.",
"example": 30,
"maximum": 3600,
"minimum": 1,
"requires_restart": false,
"type": "integer"
},
"net_write_timeout": {
"description": "The number of seconds to wait for a block to be written to a connection before aborting the write.",
"example": 30,
"maximum": 3600,
"minimum": 1,
"requires_restart": false,
"type": "integer"
},
"sort_buffer_size": {
"description": "Sort buffer size in bytes for ORDER BY optimization. Default is 262144 (256K)",
"example": 262144,
"maximum": 1073741824,
"minimum": 32768,
"requires_restart": false,
"type": "integer"
},
"sql_mode": {
"description": "Global SQL mode. Set to empty to use MySQL server defaults. When creating a new service and not setting this field Akamai default SQL mode (strict, SQL standard compliant) will be assigned.",
"example": "ANSI,TRADITIONAL",
"maxLength": 1024,
"pattern": "^[A-Z_]*(,[A-Z_]+)*$",
"requires_restart": false,
"type": "string"
},
"sql_require_primary_key": {
"description": "Require primary key to be defined for new tables or old tables modified with ALTER TABLE and fail if missing. It is recommended to always have primary keys because various functionality may break if any large table is missing them.",
"example": true,
"requires_restart": false,
"type": "boolean"
},
"tmp_table_size": {
"description": "Limits the size of internal in-memory tables. Also set max_heap_table_size. Default is 16777216 (16M)",
"example": 16777216,
"maximum": 1073741824,
"minimum": 1048576,
"requires_restart": false,
"type": "integer"
},
"wait_timeout": {
"description": "The number of seconds the server waits for activity on a noninteractive connection before closing it.",
"example": 28800,
"maximum": 2147483,
"minimum": 1,
"requires_restart": false,
"type": "integer"
}
}
}
```


Loading
Loading