Commit Graph

39 Commits

Author SHA1 Message Date
matteyeux
37fda0a953
add support for experimental option "prefer-bundled-bin" (#214) 2023-10-27 11:22:57 -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
25a17b8511
fix(linting): ensure tests pass 2022-09-01 20:39:17 +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
Vladimir Romashchenko
d1f61bf866
fix: Support nftables for Debian 11 2022-02-15 15:57:43 -05: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
0873fc4977 fix(rootless): attempt to resolve rootless issues in debian #161 2021-12-27 13:19:32 -05:00
Xan Manning
e457854046 fix(validation): distribution and version for packages 2021-12-27 13:19:32 -05:00
Xan Manning
cc8ba00de2 feat(validate): package check for iptables on debian 2021-12-27 13:19:32 -05:00
janar153
5288de9db1 Update main.yml 2021-12-27 13:19:32 -05:00
Curtis John
779968ca0a
chore(airgap): remove unused var 2021-12-15 12:08:56 -05:00
Curtis John
e88f3bb056
feat(airgap): init airgap feature
airgap installs allow users to deploy k3s in a situation where the server is not internet connected
and therefore unable to download anything externally
2021-12-14 17:16:19 -05:00
Xan Manning
db3f7da362 fix(uninstall): deprecated drain flag removed in 1.22
fixes #159
2021-10-10 14:07:04 +01:00
Xan Manning
c47688e05c
Merge pull request #150 from PyratLabs/feat/feature-flag-checks
feat: check for etcd-s3-bucket config and added ipv6 documentation
2021-09-08 19:19:05 +01:00
Xan Manning
3274c7e6e0 feat: check for etcd-s3-bucket config and added ipv6 documentation 2021-09-08 19:12:33 +01:00
Devin Buhl
9db46b536d
feat: implement config.yaml.d 2021-09-06 08:46:49 -04:00
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs
da7d8c67d9
Rename vars, path
Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
2021-05-26 09:52:34 +02:00
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs
1bbba04230
Allow control plane static pods
Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
2021-05-26 09:43:07 +02:00
Xan Manning
e5c69ec894 Add cgroup checks 2021-04-03 20:42:44 +01:00
Xan Manning
4326f4497d Renamed k3s_control_node_address -> k3s_registration_address 2021-03-14 16:29:14 +00:00
Xan Manning
c80898d92a Bugfix: #91, missing update to minumum ansible version var 2021-01-31 12:40:08 +00:00
Xan Manning
a2e035cd1c Bugfix registry 2021-01-02 16:33:31 +00:00
Xan Manning
75504b08b4 Added support for armv6l (RPi ZeroW) 2021-01-02 16:14:24 +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
99c22dceab Uninstall scripts now in-line with upstream
Fixes #74
Addresses #73 - move rancher reference to vars/
2020-12-19 14:05:41 +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
ebf32dbd99 v2 pre-release 2020-11-29 20:10:42 +00:00
Xan Manning
35b037c7ee Pre-FQCN breakage 2020-10-23 16:31:21 +01:00
Xan Manning
a93403d312 Restructuring for config file based deployment 2020-10-18 17:41:00 +01:00
Xan Manning
45a41f895b Restructure for validation checks 2020-10-17 18:27:52 +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
5ce8dec6ff Added the ability to set k3s_release_version as a release channel 2020-05-18 20:45:48 +01:00
Xan Manning
da427f1518 Added new state "downloaded" - improved getting latest version 2019-12-28 15:50:17 +00:00
Xan Manning
f2a3f75f08 Added some validation steps, fixed issue with checksum, introducing rootless
as an option, however this is experimental in both K3s and this role.
2019-12-22 18:54:25 +00:00
James D. Marble
3e83e3c301
Add support for armv7l arch
I was receiving this error when running the task on my [Odroid HC1 running Armbian](https://www.armbian.com/odroid-hc1/):

```
TASK [xanmanning.k3s : Ensure target host architecture information is set as a fact] **************************************************************************
fatal: [odroid]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'armv7l'\n\nThe error appears to have been in '/home/jdmarble/.ansible/roles/xanmanning.k3s/tasks/download-k3s.yml': line 3, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Ensure target host architecture information is set as a fact\n  ^ here\n"}
```

I worked around the problem by overriding `k3s_arch_lookup` in my play book:

```yaml
---

- hosts: all
  roles:
    - role: xanmanning.k3s
      k3s_arch_lookup:
        armv7l:
          arch: arm
          suffix: "-armhf"
```
2019-04-24 16:15:39 -07:00
Xan Manning
750c72295e Initial commit and release 2019-03-09 20:54:44 +00:00