11 Commits
0.1.0 ... 0.2.0

Author SHA1 Message Date
837de64be9 Clarify change log entry
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-04-27 16:15:17 +02:00
5786a60678 Add note about reduced configurations work
All checks were successful
continuous-integration/drone/push Build is passing
2020-04-27 16:01:00 +02:00
671e92cd0b Actually don't embed prepare.yml
It can be customised if needed, otherwise not used.
2020-04-27 16:00:39 +02:00
dfb003fdcb Remove embedded converge.yml
All checks were successful
continuous-integration/drone/push Build is passing
See https://github.com/ansible-community/molecule/issues/2675.
2020-04-27 15:51:28 +02:00
a2ee39a2f0 Converge must stay for now
Some checks reported errors
continuous-integration/drone/push Build was killed
See https://github.com/ansible-community/molecule/issues/2675.
2020-04-27 15:50:45 +02:00
9164e92d38 Add missing change log entry 2020-04-27 15:26:35 +02:00
5f57fb2c95 Have all jobs depend on linters to save resources
Some checks failed
continuous-integration/drone/push Build is failing
2020-04-27 15:25:45 +02:00
3a1602382a Appease linter with spacing
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-04-27 15:25:00 +02:00
5179b284ba Add bundled playbooks
Some checks reported errors
continuous-integration/drone/push Build was killed
2020-04-27 15:20:47 +02:00
218073759f Add molecule.yml so we can override
See https://github.com/ansible-community/molecule/pull/2666.

I also formatted the cookiecutter.json.

This will work when Molecule 3.0.4 is released.
2020-04-27 15:12:27 +02:00
a25533d917 Add place holder for new API function 2020-04-27 15:02:43 +02:00
8 changed files with 60 additions and 10 deletions

View File

@ -17,6 +17,8 @@ steps:
commands:
- pip install tox==3.14.6
- tox -e packaging
depends_on:
- linters
---
kind: pipeline
@ -27,6 +29,8 @@ steps:
commands:
- pip install tox==3.14.6
- tox -e py36
depends_on:
- linters
---
kind: pipeline
@ -37,6 +41,8 @@ steps:
commands:
- pip install tox==3.14.6
- tox -e py37
depends_on:
- linters
---
kind: pipeline
@ -47,6 +53,8 @@ steps:
commands:
- pip install tox==3.14.6
- tox -e py38
depends_on:
- linters
---
kind: pipeline
@ -58,6 +66,8 @@ steps:
commands:
- pip install tox==3.14.6
- tox -e devel
depends_on:
- linters
---
kind: pipeline

View File

@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [0.2.0] - 2020-04-27
### Added
- Add bundled playbooks so as to reduce required configuration on end-user side
- Added an internal `molecule.yml` so that `molecule init role` can get good defaults (will work with Molecule >= 3.0.4)
## [0.1.0] - 2020-04-27
### Added

View File

@ -71,6 +71,17 @@ $ export MOLECULE_NO_LOG=False # not so verbose, helpful
$ export MOLECULE_DEBUG=True # very verbose, last ditch effort
```
## Only use the `molecule.yml` for configuration
It is being worked on that it is possible to remove all the files except the
`molecule.yml` scenario file in your scenario directory. This is useful when
you only require this plugin to do the default behaviour each time. It is also
useful to reduce maintenance effort for migration of configurations. This
plugin currently embeds the `create.yml` and `destroy.yml` playbooks. All other
playbooks (e.g. prepare, cleanup) can be created as needed and Molecule will
pick them up and run them. Embedding the `converge.yml` awaits [this feature
request](https://github.com/ansible-community/molecule/issues/2675).
## Mirroring
Issues will be responded to on both issue trackers.

View File

@ -1,5 +1,5 @@
{
"molecule_directory": "molecule",
"role_name": "OVERRIDDEN",
"scenario_name": "OVERRIDDEN"
"molecule_directory": "molecule",
"role_name": "OVERRIDDEN",
"scenario_name": "OVERRIDDEN"
}

View File

@ -0,0 +1,15 @@
---
dependency:
name: galaxy
driver:
name: hetznercloud
platforms:
- name: "{{ cookiecutter.role_name }}"
server_type: cx11
image: debian-10
provisioner:
name: ansible
lint: |
set -e
yamllint .
ansible-lint .

View File

@ -98,3 +98,8 @@ class HetznerCloud(Driver):
"account API token value"
)
sysexit_with_message(msg)
def reset(self):
"""Destroy all resources managed by this plugin."""
# TODO(decentral1se): implement if ever needed
pass

View File

@ -54,13 +54,15 @@
- name: Populate instance config dict
set_fact:
instance_conf_dict: {
'instance': "{{ item.hcloud_server.name }}",
'ssh_key_name': "{{ ssh_key_name }}",
'address': "{{ item.hcloud_server.ipv4_address }}",
'user': "{{ ssh_user }}",
'port': "{{ ssh_port }}",
'identity_file': "{{ ssh_path }}", }
instance_conf_dict:
{
"instance": "{{ item.hcloud_server.name }}",
"ssh_key_name": "{{ ssh_key_name }}",
"address": "{{ item.hcloud_server.ipv4_address }}",
"user": "{{ ssh_user }}",
"port": "{{ ssh_port }}",
"identity_file": "{{ ssh_path }}",
}
with_items: "{{ hetzner_jobs.results }}"
register: instance_config_dict
when: server.changed | bool