Commit Graph

79 Commits

Author SHA1 Message Date
Daniel Brennand de1bd094e5
Fix(tests): Resolve Ansible Lint warnings and fix Molecule tests on GitHub Actions (#202)
* fix(ansible-lint): FQDN and `name`

* fix(ansible-lint): add `name` and FQDN for module call

* fix(ansible-lint): add `name` to tasks and FQDN for module

* fix(ansible-lint): add task `name` and FQDN for module calls

* fix(ansible-lint): last `include_tasks`

* fix(ansible-lint): add task names and FQDN

* refactor: `Ensure` to `Run`

* [skip ci]refactor: add exist and seperate ensure installed node task, mention build cluster

* [skip ci]refactor: Pipe seperator

* [skip ci]refactor: run

* refactor: remove quotes as other files don't use them

For templated vars in task name

* [skip ci]refactor: task names, use `Run`

* [skip ci]refactor: use variable name in task name

* [skip ci]refactor: task names

* [skip ci]refactor: add service mgr in task name

* [skip ci]refactor: add task names and module FQDNs

* [skip ci]refactor: fix task name

* [skip ci]refactor: add -

* [skip ci]refactor: include task names and FQDNs

* [skip ci]refactor: add task names and FQDNs

* [skip ci]: ignore `name[template]`

* refactor: `when` clause for `block` should be before `block`

* fix: https://github.com/ansible-community/molecule/issues/3883

* refactor: molecule lint command was removed in version `5.0.0`

Use separate CI job step to run linting instead.

* [skip ci]refactor: noqa for command tasks

Subject to change

* refactor: use Ubuntu 22.04

Suspect issues with Molecule tests are related to cgroups v2.
2023-05-13 09:49:39 -04:00
Xan Manning 01616dcd96
fix(systemd): updated unit file 2022-09-11 10:35:44 +01:00
Xan Manning 8410d2c402
WIP(molecule): snapshotter defaulted 2022-09-04 14:31:17 +01:00
Xan Manning a6b209abdb
fix(molecule): skip post checks for now 2022-09-02 18:59:19 +01:00
Xan Manning 1d29570fc9
fix(molecule): skip post checks on hadb 2022-09-02 18:22:20 +01:00
Xan Manning 21fe3bccbf
feat(post-checks): add option to skip post-checks 2022-09-02 18:02:06 +01:00
Xan Manning 25a17b8511
fix(linting): ensure tests pass 2022-09-01 20:39:17 +01:00
Xan Manning e774918812 fix: disable native snapshotter for standalone 2022-06-17 08:27:24 +00:00
Xan Manning 6f1cb8e904 fix: systemd env vars and openrc service file 2022-06-15 22:31:49 +00:00
Xan Manning e6cb2a91e8 fix: autodeploy fix 2022-06-15 21:36:14 +00:00
Xan Manning 910b611058 WIP(alpine): trying to find a container image that supports openrc 2022-06-15 15:14:59 +01:00
Xan Manning f3640e5c9f WIP(molecule): default image no longer prebuilt to support alpine 2022-06-15 15:14:59 +01:00
Xan Manning 86a9f25325 fix(cluster-token): cluster tokens can now be specified without breaking configurations where cluster tokens are auto-generated 2022-05-29 18:55:01 +01:00
Xan Manning dc0f8c3a83 fix(molecule): fixed testing with load-balancers 2022-02-17 20:43:24 +00:00
Xan Manning a88d27d2ae feat: Remove Docker install tasks 2022-01-02 22:19:51 +00:00
Xan Manning 377565de96 fix(airgap): moved from vars to defaults 2022-01-02 21:10:48 +00:00
Xan Manning 1eaeba67b5 feat(validate): package check for iptables on debian 2021-12-19 21:41:59 +00:00
Xan Manning 09abfd2cba fix(systemd): tests can continue on error, missing create function on lineinfile 2021-12-19 19:13:48 +00:00
Xan Manning ccfa561be0 feat(systemd): added molecule tests for #164 2021-12-19 19:02:31 +00:00
Xan Manning 80f591cba4 fix(molecule): fix rockylinux test, add debian11 fix snapshotter 2021-12-18 23:04:24 +00:00
Xan Manning 077c9a3fd6 bugfix: k3s_runtime_config 2021-08-18 20:44:06 +01:00
Xan Manning e5b9e5a78a Updated CHANGELOG and molecule tests 2021-05-27 18:13:55 +00:00
Xan Manning 50fa321e7e Fix templating error 2021-05-15 20:47:32 +01:00
Xan Manning f220fce08f Version-compare test 2021-05-13 17:43:29 +01:00
Xan Manning 2432a7d25f Fix autodeploy test 2021-04-18 20:46:31 +01:00
Xan Manning f4fcd2897d Update test sequence for check mode, fixed check mode on cgroup test 2021-04-18 20:39:06 +01:00
Xan Manning 23054c76f6 Updated command modules to use cmd argument 2021-04-10 12:31:18 +01:00
Xan Manning 4326f4497d Renamed k3s_control_node_address -> k3s_registration_address 2021-03-14 16:29:14 +00:00
Xan Manning 7e4a16e167 Pre-documentation work
- Restructured when and asserts
  - Standardise molecule call, add systemd config
2021-02-16 16:53:49 +00:00
Xan Manning e026d2a4a7 Added 2.9 Ansible support 2021-01-24 18:21:51 +00:00
Xan Manning 1b4d3dd9dd Altered nodeploy test to remove flannel 2021-01-23 11:14:22 +00:00
Xan Manning 6d1a5f812b Updated Molecule requirements 2021-01-02 16:18:15 +00:00
Xan Manning e7c714424c
Tiidy up and refactoring of tasks (#80)
* Tidy up and refactoring of tasks

  - `k3s_config_dir` derived from `k3s_config_file`, reused throughout the role
    to allow for easy removal of "Rancher" references #73.
  - `k3s_token_location` has moved to be in `k3s_config_dir`.
  - Tasks for creating directories now looped to caputure configuration from
    `k3s_server` and `k3s_agent` and ensure directories exist before k3s
    starts, see #75.
  - Server token collected directly from token file, not symlinked file
    (node-token).
  - `k3s_runtime_config` defined in `vars/` for validation and overwritten in
    tasks for control plane and workers.
  - Removed unused references to GitHub API.

* set_fact now uses FQCN

* re-pin molecule<3.2

* Command module now uses FQCN

* Added package checks for #72

* Reorder task files

  - Docker tasks moved into a separate directory for ease of removal #67
  - Bugfix: Control plane on alternate port didn't work.
  - Validation tasks grouped

* Fix Fedora tests

* Add optional documentation links to validations steps #76

* Removed jmespath requirement

* Fix issue with data collection

* Release candidate
2020-12-21 19:14:52 +00:00
Xan Manning 06fac01266 Pin molecule<3.2 2020-12-19 13:09:46 +00:00
Xan Manning 1d40c4d2c9 Migration from Travis-CI to GitHub Actions 2020-12-12 16:21:17 +00:00
Xan Manning 34e2af3d47 Set embedded Etcd as stable, deprecate docker 2020-12-12 14:27:59 +00:00
Xan Manning 4afc2c8a5a Fixed data-dir configuration and draining of nodes. Added documentation. 2020-12-05 21:56:28 +00:00
Xan Manning 976fe8c0ca Resolve merge conflict 2020-11-29 20:31:22 +00:00
Xan Manning ebf32dbd99 v2 pre-release 2020-11-29 20:10:42 +00:00
Xan Manning a2075a7a76 Fix travis, removed wireguard due to external dependency issue 2020-11-11 20:49:26 +00:00
Xan Manning 35b037c7ee Pre-FQCN breakage 2020-10-23 16:31:21 +01:00
Xan Manning 3d2b74c816 Slight tidy up of playbooks in default molecule test 2020-10-22 19:30:40 +01:00
Xan Manning 57b9a2a0be Moved to file based config, pre-FQCN, pre-update to documentation 2020-10-22 19:26:15 +01:00
Xan Manning 9b800d9fba moving to file-based config 2020-10-19 20:26:12 +01:00
Xan Manning 45a41f895b Restructure for validation checks 2020-10-17 18:27:52 +01:00
Xan Manning c63d984301 Refactoring tests for Molecule v3. 2020-10-17 16:31:04 +01:00
Xan Manning 57f9631265 Converting molecule tests to v3 2020-09-26 15:51:41 +01:00
ᗪєνιη ᗷυнʟ c447fcec39 A number of enhancements for v1.19 release.
- Added option to skip validation checks #47
  - Add SELinux support in containerd #48
  - Added check for Etcd member count #46
  - Moved token to a file #50
  - Added Etcd snapshot configuration options #49
2020-09-22 20:30:50 +01:00
Xan Manning 175b90ecb0 Added support for Etcd, removed DQLite support. See #41 2020-09-17 21:01:20 +01:00
Xan Manning c743df868b Fixing ansible-linting, exclude name check for Travis-CI
This release also fixes:

  - #38 : removing the --disable-agent option. Please use node taints.
  - #39 : clarified where jmespath should be installed in README.md
2020-09-15 18:20:23 +01:00