Commit Graph

416 Commits

Author SHA1 Message Date
paradon 19c24bd503
Add scan for running control nodes when choosing primary control node (#219)
Signed-off-by: Thomas Matysik <thomas@matysik.co.nz>
2024-01-26 15:15:15 -05:00
fragpit 0c0d3bb38d
kubectl commands on node must use short name (#220)
Co-authored-by: Igor Tretyak <itretyak@ptsecurity.com>
2024-01-26 15:09:58 -05:00
davidg cfd9400edf
Containerd registries config not live (#222)
I found a bug where my custom containerd registries config wasn't live,
despite the correct `notify` handlers being specified in the
'Ensure containerd registries file exists' task.

This change fixes that by ensuring the handlers get triggered.
2024-01-26 15:08:18 -05:00
Devin Buhl 6b258763be
Update k3s killall and uninstall scripts (#217)
* Update k3s killall and uninstall scripts

* Update k3s-uninstall.sh.j2

* Update k3s-uninstall.sh.j2
2023-12-09 09:01:16 -05:00
fragpit b87991cc28
Compare `kubectl get nodes` with ansible_hostname, not ansible_fqdn/i… (#212)
Co-authored-by: Igor Tretyak <itretyak@ptsecurity.com>
2023-12-09 08:32:47 -05:00
matteyeux 37fda0a953
add support for experimental option "prefer-bundled-bin" (#214) 2023-10-27 11:22:57 -04:00
Xan Manning 37cca2e487
Merge pull request #208 from matteyeux/main
Create registries.yaml if k3s_registries.mirrors or k3s_registries.configs are not None
2023-06-17 11:36:15 +01:00
Xan Manning 41b938c8e7
Merge pull request #207 from PyratLabs/static-pods
fix: static pods should be deployed to all control nodes
2023-06-17 11:34:52 +01:00
matteyeux cc64737bdc Create registries.yaml only if k3s_registries.mirrors or k3s_registries.configs are not empty 2023-06-01 14:34:17 +02:00
Devin Buhl 3f1d2da21b
fix: static pods should be deployed to all control nodes
Signed-off-by: Devin Buhl <devin@buhl.casa>
2023-05-31 20:39:15 -04:00
Xan Manning 44635027ce
chore(changelog): update with latest releases 2023-05-17 21:11:04 +01:00
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
Daniel Brennand 0cc1e48902
Refactor/remove-secret-encryption-experimental (#201)
* refactor: `secrets-encryption` is no longer experimental

Resolves #200

* docs(fix): typo

* docs(refactor): update CHANGELOG

* fix: add `until`

* docs(refactor): modify changelog refactor
2023-05-02 15:48:34 -04:00
Xan Manning 13db5d26f8
Merge branch 'main' of github.com:PyratLabs/ansible-role-k3s into main 2022-11-15 17:50:21 +00:00
Xan Manning 3f200f2bd7
docs(changelog): updated for v3.3.1 release 2022-11-15 17:50:09 +00:00
Xan Manning 404491c938
Merge pull request #198 from Jonaprince/patch-1
Fixes #197 fix length indentation in registry.yaml
2022-11-15 17:48:07 +00:00
Jonaprince 75b40675d8
Fixes #197 fix length indentation in registry.yaml
Fix the issue of bad indentation in rewrite rules when using registry pull through cache
2022-11-14 10:19:52 +01:00
Xan Manning 80e4debcd4
docs(changelog): updated for v3.3.0 2022-09-11 11:27:30 +01:00
Xan Manning c28e03b97f
Merge pull request #193 from PyratLabs/fix/ensure-release-check-can-be-debugged
fix(version): ensure log output provided when version lookup fails
2022-09-11 11:24:49 +01: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 e9ddc8738a
fix(post-check): shorten node check delay to 5 seconds 2022-09-02 18:49:42 +01:00
Xan Manning 1d29570fc9
fix(molecule): skip post checks on hadb 2022-09-02 18:22:20 +01:00
Xan Manning 561d67cd08
fix(version): ensure log output provided when version lookup fails 2022-09-02 18:09:23 +01:00
Xan Manning dae3eb928e
Merge pull request #194 from PyratLabs/fix/linting
fix(linting): ensure tests pass
2022-09-02 18:08:49 +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 d38f344937 chore: update changelog for release 2022-06-17 15:41:16 +00:00
Xan Manning 78cf2c1866
Merge pull request #185 from PyratLabs/feat/alpine-support 2022-06-17 16:18:52 +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 5bebced657 fix: control plane start retries 2022-06-15 21:03:39 +00:00
Xan Manning c1341eb62c feat(gha): remove fail-fast on ci 2022-06-15 20:33:33 +01:00
Xan Manning 13ed1336d9 fix: service handler missing from ansible handler 2022-06-15 20:28:13 +01:00
Xan Manning 5f560137f4 fix(alpine): testing in molecule and rename service 2022-06-15 18:45:54 +01: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 291b7763b4
Merge pull request #190 from PyratLabs/niklasweimann-main
Niklasweimann main
2022-06-15 15:12:01 +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
Niklas Weimann 503e3ccc3f Fix check for k3s_token_location 2022-05-16 11:28:24 +02:00
Xan Manning 818676e449 docs(changelog): release notes for 3.1.2 2022-05-02 17:55:25 +01:00
Xan Manning 87551613d4
Merge pull request #184 from PyratLabs/fix/molecule-tests
fix(molecule): fix tests by ensuring fqcn is specified
2022-05-02 17:14:18 +01:00
Xan Manning 03bc3aec5b fix(molecule): fix tests by ensuring fqcn is specified 2022-05-02 17:13:12 +01:00
Xan Manning e20195fe56 chore(release): update changelog 2022-02-18 14:16:56 +00:00
Xan Manning 4387b3d12e
Merge pull request #179 from eaglesemanation/debian11-nftables
fix: Support nftables for Debian 11
2022-02-18 14:14:58 +00:00
Xan Manning dc0f8c3a83 fix(molecule): fixed testing with load-balancers 2022-02-17 20:43:24 +00:00
Vladimir Romashchenko d1f61bf866
fix: Support nftables for Debian 11 2022-02-15 15:57:43 -05:00
Xan Manning 6550071e43 chore(release): updated release notes for version bump 2022-01-30 14:08:16 +00:00