Skip to content

Commit

Permalink
Merge pull request #465 from linode/dev
Browse files Browse the repository at this point in the history
Release v0.25.1
  • Loading branch information
yec-akamai authored Feb 6, 2024
2 parents b02ed68 + 1565ae0 commit 919c6c8
Show file tree
Hide file tree
Showing 59 changed files with 136 additions and 116 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,23 @@ name: Run Unit test

jobs:
run-tests:
runs-on: ubuntu-latest

# TODO:
# Upgrade back to ubuntu-latest when the permission issue fixed
runs-on: ubuntu-20.04
defaults:
run:
working-directory: .ansible/collections/ansible_collections/linode/cloud
steps:
- name: checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
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@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.11'

- name: install dependencies
run: make deps
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ clean:
rm -f *.tar.gz && rm -rf galaxy.yml

build: deps clean gendocs
python scripts/render_galaxy.py $(COLLECTION_VERSION) && ansible-galaxy collection build
python3 scripts/render_galaxy.py $(COLLECTION_VERSION) && ansible-galaxy collection build

publish: build
@if test "$(GALAXY_TOKEN)" = ""; then \
Expand Down Expand Up @@ -56,7 +56,7 @@ gendocs:

DOCS_PATH=$(DOCS_PATH) ./scripts/specdoc_generate.sh
ansible-doc-extractor --template=template/module.rst.j2 $(DOCS_PATH)/inventory plugins/inventory/*.py
python scripts/render_readme.py $(COLLECTION_VERSION)
python3 scripts/render_readme.py $(COLLECTION_VERSION)

# if want to add all the test add the tag --tags never at the end
# ansible-test integration $(TEST_ARGS) --tags never
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ The `LINODE_API_URL` environment variable pr the `api_url` module option can be
label: my-linode
type: g6-nanode-1
region: us-east
image: linode/ubuntu20.04
image: linode/ubuntu22.04
root_pass: verysecurepassword!!!
state: present
```
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/database_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ List and filter on Linode Managed Databases.
"hour_of_day": 0,
"week_of_month": null
},
"version": "8.0.26"
"version": "8.0.30"
}
]
```
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/event_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ List and filter on Linode events.
"rate":null,
"read":true,
"secondary_entity":{
"id":"linode/debian9",
"id":"linode/debian11",
"label":"linode1234",
"type":"linode",
"url":"/v4/linode/instances/1234"
Expand Down
8 changes: 4 additions & 4 deletions docs/modules/instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Manage Linode Instances, Configs, and Disks.
label: my-linode
type: g6-nanode-1
region: us-east
image: linode/ubuntu20.04
image: linode/ubuntu22.04
root_pass: verysecurepassword!!!
private_ip: false
authorized_keys:
Expand All @@ -34,7 +34,7 @@ Manage Linode Instances, Configs, and Disks.
label: my-linode
type: g6-nanode-1
region: us-east
image: linode/ubuntu20.04
image: linode/ubuntu22.04
root_pass: verysecurepassword!!!
private_ip: false
authorized_keys:
Expand All @@ -61,7 +61,7 @@ Manage Linode Instances, Configs, and Disks.
state: present
disks:
- label: boot
image: linode/ubuntu18.04
image: linode/ubuntu22.04
size: 3000
root_pass: ans1ble-test!
- label: swap
Expand Down Expand Up @@ -299,7 +299,7 @@ Manage Linode Instances, Configs, and Disks.
"has_user_data": true,
"hypervisor": "kvm",
"id": 123,
"image": "linode/debian10",
"image": "linode/debian11",
"ipv4": [
"203.0.113.1",
"192.0.2.1"
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/instance_info.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Get info about a Linode Instance.
"has_user_data": true,
"hypervisor": "kvm",
"id": 123,
"image": "linode/debian10",
"image": "linode/debian11",
"ipv4": [
"203.0.113.1",
"192.0.2.1"
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/instance_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ List and filter on Linode Instances.
"host_uuid": "example-uuid",
"hypervisor": "kvm",
"id": 123,
"image": "linode/debian10",
"image": "linode/debian11",
"ipv4": [
"203.0.113.1",
"192.0.2.1"
Expand Down
6 changes: 3 additions & 3 deletions docs/modules/lke_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Manage Linode LKE clusters.
linode.cloud.lke_cluster:
label: 'my-cluster'
region: us-southeast
k8s_version: 1.23
k8s_version: 1.28
node_pools:
- type: g6-standard-1
count: 3
Expand All @@ -27,7 +27,7 @@ Manage Linode LKE clusters.
linode.cloud.lke_cluster:
label: 'my-cluster'
region: us-southeast
k8s_version: 1.23
k8s_version: 1.28
node_pools:
- type: g6-standard-1
count: 2
Expand Down Expand Up @@ -87,7 +87,7 @@ Manage Linode LKE clusters.
},
"created": "2019-09-12T21:25:30Z",
"id": 1234,
"k8s_version": "1.23",
"k8s_version": "1.28",
"label": "lkecluster12345",
"region": "us-central",
"tags": [
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/lke_cluster_info.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Get info about a Linode LKE cluster.
},
"created": "2019-09-12T21:25:30Z",
"id": 1234,
"k8s_version": "1.23",
"k8s_version": "1.28",
"label": "lkecluster12345",
"region": "us-central",
"tags": [
Expand Down
6 changes: 3 additions & 3 deletions docs/modules/stackscript.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Manage a Linode StackScript.
- name: Create a basic StackScript
linode.cloud.stackscript:
label: my-stackscript
images: ['linode/ubuntu20.04']
images: ['linode/ubuntu22.04']
description: Install a system package
script: |
#!/bin/bash
Expand Down Expand Up @@ -54,8 +54,8 @@ Manage a Linode StackScript.
"description": "This StackScript installs and configures MySQL",
"id": 10079,
"images": [
"linode/debian9",
"linode/debian8"
"linode/debian11",
"linode/debian10"
],
"is_public": true,
"label": "a-stackscript",
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/stackscript_info.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ Get info about a Linode StackScript.
"description": "This StackScript installs and configures MySQL",
"id": 10079,
"images": [
"linode/debian9",
"linode/debian8"
"linode/debian11",
"linode/debian10"
],
"is_public": true,
"label": "a-stackscript",
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/stackscript_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ List and filter on Linode stackscripts.
"description": "This StackScript installs and configures MySQL\n",
"id": 10079,
"images": [
"linode/debian9",
"linode/debian8"
"linode/debian11",
"linode/debian10"
],
"is_public": true,
"label": "a-stackscript",
Expand Down
1 change: 1 addition & 0 deletions examples/mysql_adminer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ While in the `mysql_adminer` directory, run the following:

```bash
export LINODE_TOKEN=mytoken
export ANSIBLE_HOST_KEY_CHECKING=False
ansible-playbook deploy.yml
```

Expand Down
2 changes: 2 additions & 0 deletions examples/mysql_adminer/roles/configure_adminer/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
pip:
name: docker-py
state: present
environment:
PIP_BREAK_SYSTEM_PACKAGES: 1

- name: Start and enable docker
sysvinit:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
pip:
name: docker-py
state: present
environment:
PIP_BREAK_SYSTEM_PACKAGES: 1

- name: Start and enable docker
sysvinit:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
---

- name: Wait for the volume to be available
wait_for:
path: "{{ var_vol_mountpoint }}"
state: present

- name: Create a ext4 filesystem on the attached volume
filesystem:
fstype: ext4
Expand Down
4 changes: 2 additions & 2 deletions examples/mysql_adminer/roles/infra/tasks/instances.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
label: "{{resource_prefix}}-mysql"
type: g6-standard-2
region: "{{ region }}"
image: linode/alpine3.14
image: linode/alpine3.19
private_ip: true
authorized_keys:
- "{{ key_pair.public_key }}"
Expand All @@ -23,7 +23,7 @@
label: "{{resource_prefix}}-adminer"
type: g6-nanode-1
region: "{{ region }}"
image: linode/alpine3.14
image: linode/alpine3.19
private_ip: true
authorized_keys:
- "{{ key_pair.public_key }}"
Expand Down
1 change: 1 addition & 0 deletions examples/obj_static_site/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ While in the `obj_static_site` directory, run the following:

```bash
export LINODE_TOKEN=mytoken
export ANSIBLE_HOST_KEY_CHECKING=False
ansible-playbook deploy.yml
```

Expand Down
1 change: 1 addition & 0 deletions examples/simple_website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ While in the `simple_website` directory, run the following:

```bash
export LINODE_TOKEN=mytoken
export ANSIBLE_HOST_KEY_CHECKING=False
ansible-playbook deploy.yml
```

Expand Down
2 changes: 1 addition & 1 deletion examples/simple_website/roles/infra/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
label: "{{resource_prefix}}-{{item}}"
type: g6-nanode-1
region: us-east
image: linode/alpine3.14
image: linode/alpine3.19
private_ip: true
booted: true
authorized_keys:
Expand Down
2 changes: 2 additions & 0 deletions examples/simple_website/roles/website/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
pip:
name: docker-py
state: present
environment:
PIP_BREAK_SYSTEM_PACKAGES: 1

- name: Start and enable docker
sysvinit:
Expand Down
2 changes: 1 addition & 1 deletion plugins/module_utils/doc_fragments/database_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
"hour_of_day": 0,
"week_of_month": null
},
"version": "8.0.26"
"version": "8.0.30"
}
]''']
2 changes: 1 addition & 1 deletion plugins/module_utils/doc_fragments/event_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"rate":null,
"read":true,
"secondary_entity":{
"id":"linode/debian9",
"id":"linode/debian11",
"label":"linode1234",
"type":"linode",
"url":"/v4/linode/instances/1234"
Expand Down
8 changes: 4 additions & 4 deletions plugins/module_utils/doc_fragments/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
label: my-linode
type: g6-nanode-1
region: us-east
image: linode/ubuntu20.04
image: linode/ubuntu22.04
root_pass: verysecurepassword!!!
private_ip: false
authorized_keys:
Expand All @@ -23,7 +23,7 @@
label: my-linode
type: g6-nanode-1
region: us-east
image: linode/ubuntu20.04
image: linode/ubuntu22.04
root_pass: verysecurepassword!!!
private_ip: false
authorized_keys:
Expand All @@ -47,7 +47,7 @@
state: present
disks:
- label: boot
image: linode/ubuntu18.04
image: linode/ubuntu22.04
size: 3000
root_pass: ans1ble-test!
- label: swap
Expand Down Expand Up @@ -98,7 +98,7 @@
"has_user_data": true,
"hypervisor": "kvm",
"id": 123,
"image": "linode/debian10",
"image": "linode/debian11",
"ipv4": [
"203.0.113.1",
"192.0.2.1"
Expand Down
2 changes: 1 addition & 1 deletion plugins/module_utils/doc_fragments/instance_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"host_uuid": "example-uuid",
"hypervisor": "kvm",
"id": 123,
"image": "linode/debian10",
"image": "linode/debian11",
"ipv4": [
"203.0.113.1",
"192.0.2.1"
Expand Down
6 changes: 3 additions & 3 deletions plugins/module_utils/doc_fragments/lke_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
linode.cloud.lke_cluster:
label: 'my-cluster'
region: us-southeast
k8s_version: 1.23
k8s_version: 1.28
node_pools:
- type: g6-standard-1
count: 3
Expand All @@ -16,7 +16,7 @@
linode.cloud.lke_cluster:
label: 'my-cluster'
region: us-southeast
k8s_version: 1.23
k8s_version: 1.28
node_pools:
- type: g6-standard-1
count: 2
Expand All @@ -36,7 +36,7 @@
},
"created": "2019-09-12T21:25:30Z",
"id": 1234,
"k8s_version": "1.23",
"k8s_version": "1.28",
"label": "lkecluster12345",
"region": "us-central",
"tags": [
Expand Down
Loading

0 comments on commit 919c6c8

Please sign in to comment.