diff --git a/.github/release-please-manifest.json b/.github/release-please-manifest.json index 3693e6f..33bf7bf 100644 --- a/.github/release-please-manifest.json +++ b/.github/release-please-manifest.json @@ -1 +1 @@ -{".":"2.1.1"} +{".":"2.2.0"} diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index e6e54ac..185fc72 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: google-github-actions/release-please-action@v4 + - uses: googleapis/release-please-action@v4 with: token: ${{ secrets.HCLOUD_BOT_TOKEN }} config-file: .github/release-please-config.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e8f5a15..3582905 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,4 +53,4 @@ jobs: path: dist/ - name: Publish packages to PyPI - uses: pypa/gh-action-pypi-publish@v1.8.14 + uses: pypa/gh-action-pypi-publish@v1.9.0 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d9ea74a..12c4c9b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,7 +30,7 @@ repos: exclude: ^CHANGELOG\.md$ - repo: https://github.com/asottile/pyupgrade - rev: v3.15.2 + rev: v3.16.0 hooks: - id: pyupgrade args: [--py39-plus] @@ -41,11 +41,11 @@ repos: - id: isort - repo: https://github.com/psf/black-pre-commit-mirror - rev: 24.4.0 + rev: 24.4.2 hooks: - id: black - repo: https://github.com/pycqa/flake8 - rev: 7.0.0 + rev: 7.1.0 hooks: - id: flake8 diff --git a/CHANGELOG.md b/CHANGELOG.md index 2015a04..fb014a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,29 @@ # Changelog +## [2.2.0](https://github.com/ansible-community/molecule-hetznercloud/compare/2.1.1...2.2.0) (2024-06-11) + + +### Features + +* instance `server_type` now defaults to `cx22` ([#99](https://github.com/ansible-community/molecule-hetznercloud/issues/99)) ([b1bb242](https://github.com/ansible-community/molecule-hetznercloud/commit/b1bb24242272e2d8cfd82c6efde86f90994162c0)) + + +### Dependencies + +* update dependency molecule to >=5.0.0,<24.7 ([#98](https://github.com/ansible-community/molecule-hetznercloud/issues/98)) ([eb56da9](https://github.com/ansible-community/molecule-hetznercloud/commit/eb56da94eb088dbd5549882c294fe0207853670f)) +* update dependency pytest-cov to v5 ([#92](https://github.com/ansible-community/molecule-hetznercloud/issues/92)) ([3cde3ca](https://github.com/ansible-community/molecule-hetznercloud/commit/3cde3ca9a028ce4c1a1c8e1caaa1086f5074b328)) +* update pre-commit hook asottile/pyupgrade to v3.15.1 ([#83](https://github.com/ansible-community/molecule-hetznercloud/issues/83)) ([76cd33f](https://github.com/ansible-community/molecule-hetznercloud/commit/76cd33f77867fff898aac534e062e552e5aef401)) +* update pre-commit hook asottile/pyupgrade to v3.15.2 ([26bfb65](https://github.com/ansible-community/molecule-hetznercloud/commit/26bfb652fbe87177b107e00ab69c66f80e728095)) +* update pre-commit hook asottile/pyupgrade to v3.16.0 ([292dda1](https://github.com/ansible-community/molecule-hetznercloud/commit/292dda12a67a08ce453d1f235085810e8f1826fe)) +* update pre-commit hook pre-commit/pre-commit-hooks to v4.6.0 ([73035ce](https://github.com/ansible-community/molecule-hetznercloud/commit/73035ce0da0b474f118b4fb386b56bde1d3722af)) +* update pre-commit hook psf/black-pre-commit-mirror to v24.2.0 ([#82](https://github.com/ansible-community/molecule-hetznercloud/issues/82)) ([96030aa](https://github.com/ansible-community/molecule-hetznercloud/commit/96030aa38bb0cfb4c68301cab0f50ef73cf30ac5)) +* update pre-commit hook psf/black-pre-commit-mirror to v24.3.0 ([a8fce1f](https://github.com/ansible-community/molecule-hetznercloud/commit/a8fce1f11f23ad78c5c0746fe2191d91484d4e68)) +* update pre-commit hook psf/black-pre-commit-mirror to v24.4.0 ([41225db](https://github.com/ansible-community/molecule-hetznercloud/commit/41225db7d216fcd9a35afa352679f05cbd6d132f)) +* update pre-commit hook psf/black-pre-commit-mirror to v24.4.1 ([#95](https://github.com/ansible-community/molecule-hetznercloud/issues/95)) ([06df822](https://github.com/ansible-community/molecule-hetznercloud/commit/06df8229c11775bace06fed18657be2244a9ec65)) +* update pre-commit hook psf/black-pre-commit-mirror to v24.4.2 ([e03b63e](https://github.com/ansible-community/molecule-hetznercloud/commit/e03b63e9c035636df0bca464dc124e876d460d15)) +* update pypa/gh-action-pypi-publish action to v1.8.12 ([#87](https://github.com/ansible-community/molecule-hetznercloud/issues/87)) ([440c71d](https://github.com/ansible-community/molecule-hetznercloud/commit/440c71d8273b47985d0113ac26de8edf20fdab6f)) +* update pypa/gh-action-pypi-publish action to v1.8.14 ([#88](https://github.com/ansible-community/molecule-hetznercloud/issues/88)) ([c1f46bb](https://github.com/ansible-community/molecule-hetznercloud/commit/c1f46bba686f7369931441b3ebe24ab9eeb6c674)) + ## [2.1.1](https://github.com/ansible-community/molecule-hetznercloud/compare/2.1.0...2.1.1) (2024-02-09) diff --git a/README.md b/README.md index a4b093f..3070c04 100644 --- a/README.md +++ b/README.md @@ -46,13 +46,13 @@ $ pip install --upgrade molecule-hetznercloud - Each resource (servers, volumes, networks) name are prefixed with a hash (32 chars) based on the role and scenario path. This means you MAY reuse the same names (e.g. `instance-1`) across your scenarios. Resource names MUST not exceed their max length, for example the server name max length is 63 chars, with the prefix you only have 31 chars left for your name. -- In your `molecule.yml` files, the platforms server type (`platforms[].server_type`) field now defaults to `cx11`. If you already use the default, you MAY remove the field: +- In your `molecule.yml` files, the platforms server type (`platforms[].server_type`) field now defaults to `cx22`. If you already use the default, you MAY remove the field: ```patch platforms: - name: instance-1 image: debian-12 -- server_type: cx11 +- server_type: cx22 ``` ## Usage @@ -87,8 +87,8 @@ platforms: # required image: debian-12 # Name of the Server type this Server should be created with. - # default: cx11 - server_type: cx11 + # default: cx22 + server_type: cx22 # Name of Location to create Server in (must not be used together with datacenter). # default: omit location: hel1 diff --git a/molecule_hetznercloud/_version.py b/molecule_hetznercloud/_version.py index 0dbaa6b..1fc7f59 100644 --- a/molecule_hetznercloud/_version.py +++ b/molecule_hetznercloud/_version.py @@ -1,3 +1,3 @@ from __future__ import annotations -__version__ = "2.1.1" # x-release-please-version +__version__ = "2.2.0" # x-release-please-version diff --git a/molecule_hetznercloud/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/molecule.yml b/molecule_hetznercloud/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/molecule.yml index debeeb1..31fbda0 100644 --- a/molecule_hetznercloud/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/molecule.yml +++ b/molecule_hetznercloud/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/molecule.yml @@ -9,8 +9,8 @@ platforms: # required image: debian-12 # Name of the Server type this Server should be created with. - # default: cx11 - server_type: cx11 + # default: cx22 + server_type: cx22 # Name of Location to create Server in (must not be used together with datacenter). # default: omit location: hel1 diff --git a/molecule_hetznercloud/playbooks/create.yml b/molecule_hetznercloud/playbooks/create.yml index 111a557..f3b0196 100644 --- a/molecule_hetznercloud/playbooks/create.yml +++ b/molecule_hetznercloud/playbooks/create.yml @@ -30,7 +30,7 @@ hetzner.hcloud.hcloud_server: name: "{{ resource_namespace }}-{{ item.name }}" image: "{{ item.image }}" - server_type: "{{ item.server_type | default('cx11') }}" + server_type: "{{ item.server_type | default('cx22') }}" ssh_keys: ["{{ ssh_key_name }}"] location: "{{ item.location | default(omit) }}" datacenter: "{{ item.datacenter | default(omit) }}" diff --git a/renovate.json b/renovate.json index 5805c99..5a98832 100644 --- a/renovate.json +++ b/renovate.json @@ -1,4 +1,10 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": ["github>hetznercloud/.github//renovate/default"] + "extends": ["github>hetznercloud/.github//renovate/default"], + "packageRules": [ + { + "matchPackageNames": ["molecule"], + "rangeStrategy": "widen" + } + ] } diff --git a/setup.py b/setup.py index fc7238e..cd80bb0 100644 --- a/setup.py +++ b/setup.py @@ -47,7 +47,7 @@ ], python_requires=">=3.9", install_requires=[ - "molecule>=5.0.0,<24.3", + "molecule>=5.0.0,<24.7", # Dependencies for the hetzner.hcloud collection "python-dateutil>=2.7.5", "requests>=2.20",