Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs
d834ca15b0
Merge branch 'main' into staticpods
2021-05-26 09:57:58 +02: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
ᗪєνιη ᗷυнʟ
82085cb80b
fix: remove run_once
2021-05-25 19:23:13 -04:00
ᗪєνιη ᗷυнʟ
ef99954177
fix: only deploy k3s_server_manifests_dir on primary controller
2021-05-25 18:38:07 -04:00
Xan Manning
50fa321e7e
Fix templating error
2021-05-15 20:47:32 +01:00
赵安家
d563dcca05
style(k3s): change code style
...
change code style
2021-05-08 18:39:19 +08:00
赵安家
c9e2b619d1
feat(k3s): support k3s's private-registry configuration
...
rancher doc url https://rancher.com/docs/k3s/latest/en/installation/private-registry/
2021-05-07 17:56:45 +08: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
1d93c2115d
Cluster-init checks added, tidy up of task format
2021-02-28 16:48:23 +00:00
Xan Manning
62b2d7cb36
Typo bugfixes
2021-02-27 19:02:49 +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
5555bd3d9b
Bugfix, missing k3s_start_on_boot
to control systemd.enabled
added.
2021-01-30 17:57:50 +00:00
Xan Manning
a2e035cd1c
Bugfix registry
2021-01-02 16:33:31 +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
e25edbef3c
rework documentation, change github link, replace deprecated variables
2020-12-16 11:02:15 +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
8c791cb611
Change terminology of tasks to remove "master"
2020-11-10 19:01:05 +00:00
Xan Manning
170bf5995f
Merge conflict resolved: archlinux support
2020-10-23 16:40:35 +01:00
Xan Manning
35b037c7ee
Pre-FQCN breakage
2020-10-23 16:31:21 +01:00
Martin Friedrich
e5133c1f73
add archlinux support, fixed drain invoked on uninstall by adding --delete-local-data
2020-10-23 14:43:58 +02: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
292c726b07
Split out repeating tasks
2020-10-21 17:22:41 +01:00
Xan Manning
f3173f193f
Merge branch 'bugfix-k3s_node_data_dir' into role_v2
2020-10-19 20:35:32 +01:00
Xan Manning
6e29200d9a
Attempt to fix #57 - k3s_node_data_dir set in templates
2020-10-19 20:32:53 +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
ᗪєνιη ᗷυнʟ
b16f142c21
Override facts when commit hash is specified
2020-09-23 09:43:31 -04: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
ab48e3a173
Change delay to 5 seconds for secondary masters startup task to complete
2020-09-18 12:09:56 +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
Xan Manning
b412858b30
Fix merge conflict
2020-07-25 20:51:31 +01:00
Xan Manning
d53102dda3
Check mode support added
2020-07-25 17:39:01 +01:00
Xan Manning
809e9cd73c
Releasable feature for hardlinks
2020-07-25 14:03:53 +01:00
Xan Manning
d2a34546cf
Potential fix for #35
2020-07-25 12:27:39 +01:00
Xan Manning
2c0afbca42
Restart k3s service unit on file change
2020-06-06 14:30:40 +02:00
Michael
f90cc5ca18
Privilege escalation to solve "Access denied"
...
```
FAILED! => {"attempts": 3, "changed": false, "msg": "Unable to enable service k3s: Failed to enable unit: Access denied\n"}
```
The task never sets become to true, hence failing due to lack of permissions on the user that is executing it by default.
2020-05-30 23:40:05 +02:00
Xan Manning
848a5457ff
Add option for unsupported single node with database backend. Issue #27
2020-05-30 15:16:20 +01:00
Xan Manning
6090071982
Bugfix, issue with HA build for joining new nodes
2020-05-25 17:57:43 +01:00
Xan Manning
9524b07df0
Fix joining nodes to an existing cluster
2020-05-25 16:25:09 +01:00
Xan Manning
141b6f2018
Numerous bug fixes to do with permissions and regressions.
...
Fix issue #25 , check k3s_bind_address for readiness check
Fix issue #24 , become for tasks that require root
2020-05-20 19:55:33 +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
e3301a59e4
Updated state tasks to dynamic include rather thn static import
...
This is an initial attempt to address issue #22 , I have also included a
task to drain the node before deleting it.
2020-05-18 19:53:03 +01:00
Xan Manning
aa1a0a9620
Added option to provision multiple standalone k3s
...
Fixes #21
2020-05-16 20:18:20 +01:00