ccoane
14508ec8dc
Add "collection" to the ansible-galaxy command as it will run without making changes if that collection argument is not provided. ( #113 )
2022-10-04 20:41:19 -05:00
Ioannis Angelakopoulos
fb6c9a6866
adds colors to molecule testing in GitHub action ( #109 )
2022-09-28 03:48:25 +00:00
Simon Leiner
d5d02280c1
Fix download-boxes.sh if no boxes are present ( #106 )
...
In case of grep not matching any line, it would return an error code
and thus stop the script. This patch sets "present_boxes" to an empty
value in case any of the commands fail.
2022-09-26 17:21:37 -05:00
Simon Leiner
57e528832b
Fix role order in reset playbook ( #104 )
2022-09-25 12:35:36 -05:00
Ioannis Angelakopoulos
cd76fa05a7
fix master taint implementation - linting problems ( #95 )
...
* add virtual-ip to certificate SAN entries
Adds the kube-vip IP as a Subject Alternative Name in the TLS cert. It is needed otherwise you cannot access the cluster.
* fixes bug with master taints (#1 )
- improves taint logic
* fixes typo
* fixes formatting
* fixes undefined group['node'] if missing from hosts.ini (#2 )
* fixes undefined group['node'] if missing from hosts.ini
- improves application of master taint by centralizing code
* improves molecule testing, fixes linting
* hacking at linter problems, small tweaks
- increases the metallb timeout error due to intermittent testing errors in GitHub actions
* improves context by renaming taint variable
- makes variable boolean
* fix bug
* removes linting hacks
Co-authored-by: Ioannis Angelakopoulos <ioangel@gmail.com>
2022-09-24 20:12:24 -05:00
Simon Leiner
d5b37acd8a
Drop support for CentOS, test Rocky and Debian in CI ( #92 )
...
* Test CentOS 7 in CI
* Drop support for CentOS, test on Rocky and Debian
* Fix reset playbook for Rocky Linux
* Fix typo
* Disable firewalld during testing
Co-authored-by: Techno Tim <timothystewart6@gmail.com>
2022-09-24 05:10:55 +00:00
Simon Leiner
5225493ca0
CI: Fix linting job for ansible-lint 6.6.0 ( #96 )
...
* CI: Fix linting job for ansible-lint 6.6.0
* Increase MetalLB timeout to mitigate CI flakiness
2022-09-23 23:28:21 -05:00
BMeach
4acbe91b6c
Fix master node taints in multi node installs ( #93 )
...
* Taint master nodes if more than one node
* Kick off fork workflow tests
Co-authored-by: Techno Tim <timothystewart6@gmail.com>
2022-09-17 15:56:09 -05:00
Techno Tim
f1c2f3b7dd
fix(github): ignore readme updates ( #94 )
2022-09-17 00:18:56 -05:00
Techno Tim
76718a010c
chore(docs): Updated with ansible collections install ( #89 )
...
* chore(docs): Fixing thanks section
* chore(docs): Updated with collections command
2022-09-15 02:32:34 +00:00
Simon Leiner
a1ef590442
Add support for API servers on IPv6 addresses ( #48 )
...
* Remove duplicate file for deletion
* Add support for IPv6 clusters
To correctly escape IPv6 addresses when ports are used, they must be
wrapped in square brackets [1]. This patch adds support for that,
using Ansible's ipwrap filter [2].
[1]: https://datatracker.ietf.org/doc/html/rfc4038#section-5.1
[2]: http://docs.ansible.com/ansible/latest/collections/ansible/utils/docsite/filters_ipaddr.html#wrapping-ipv6-addresses-in-brackets
* Do not abort other molecule jobs on failure
* Fix cache keys for Vagrant boxes
* Molecule: Derive overrides.yml location from scenario dir
# Conflicts:
# molecule/default/molecule.yml
# molecule/ipv6/molecule.yml
2022-09-10 12:57:38 -05:00
Simon Leiner
9ff3bb6b87
Test single-node cluster ( #78 )
...
* Molecule: Derive overrides.yml location from scenario dir
# Conflicts:
# molecule/default/molecule.yml
# molecule/ipv6/molecule.yml
* Molecule: Add single_node scenario
* Fix get_nodes test for the case of empty groups
2022-09-09 11:47:26 -05:00
Techno Tim
b1df9663fa
fix(ansible): Fix group permissions on tmp folder ( #77 )
2022-09-09 03:00:54 +00:00
Vitalij Dovhanyc
58c3a61bbb
add editorconfig and fix trailing whitespaces ( #68 )
...
Co-authored-by: Techno Tim <timothystewart6@gmail.com>
2022-09-07 20:00:13 -05:00
Simon Leiner
60bc09b085
Mitigate CI flakiness ( #70 )
...
* Increase SSH connection timeouts and retries
* Make MetalLB timeouts configurable
* Retry applying MetalLB CRs
* Fix location of MetalLB CRs template
* Make MetalLB wait logic more compact
* Fix typo
* retrigger 1
* retrigger 2
* retrigger 3
* retrigger 4
* retrigger 5
2022-09-07 18:47:58 -05:00
Timothy Stewart
4365a2a54b
fix(ansible): fixing permissions on tmp folder
2022-09-06 19:07:09 -05:00
Simon Leiner
a6b2a95b7e
Test playbook using molecule ( #67 )
...
* Test cluster using molecule
* Fix detection of first control node
* Include --flannel-iface and --node-ip as k3s arguments
* Store logs of k3s-init.service as GitHub job artifacts
2022-09-03 10:36:28 -05:00
Timothy Stewart
3c36dc8bfd
fix(ansible): use k3s kubectl
2022-09-02 11:07:17 -05:00
Techno Tim
6695d13683
upgrade k3s to v1.24.4+k3s1 ( #64 )
...
* feat(k3s): Upgrade to v1.24.4+k3s1
* feat(metallb): updated to v0.13.5
2022-09-01 21:20:25 -05:00
Techno Tim
74e1dc1dfe
Pin GitHub Actions to SHA + Dependabot ( #62 )
...
* feat(repo): Add dependabot
* fix(ci): clean up
* fix(gh-actions): pin to sha
* fix(lint): fixing yaml lint
* feat(repo): Add dependabot
* fix(vagrant): up retry count to 60 because gh actions are sloooooow
2022-08-30 23:15:15 -05:00
Techno Tim
56f8f21850
fix(ansible): Install services separate from config ( #63 )
2022-08-30 21:44:55 -05:00
Timothy Stewart
117c608a73
fix(ansible): added longer wait with todo
2022-08-29 23:16:13 -05:00
niki-on-github
e28d8f38e2
add ansible.posix module to requirements.yml ( #59 )
...
Co-authored-by: arch <arch@local>
Co-authored-by: Techno Tim <timothystewart6@gmail.com>
2022-08-29 22:58:57 -05:00
Simon Leiner
9d8a5cc2b8
Execute Vagrant cluster in CI ( #57 )
2022-08-29 19:45:07 -05:00
Techno Tim
2296959894
fix(ci): Fix Linting ( #61 )
2022-08-28 20:36:05 -05:00
Timothy Stewart
6d793c5c96
fix(ansible): add wait
2022-08-28 17:49:38 -05:00
Timothy Stewart
47ac514dc6
fix(ansible): fix lint
2022-08-28 16:42:07 -05:00
Timothy Stewart
611cf5ab0b
fix(ansible): fix lint
2022-08-28 16:32:52 -05:00
Timothy Stewart
c82cbfc501
fix(ansible): fix lint
2022-08-28 16:29:04 -05:00
Timothy Stewart
f603a048c3
fix(ansible): fix lint
2022-08-28 16:26:46 -05:00
Timothy Stewart
4b959719ba
fix(ansible): run task on one master
2022-08-28 16:00:10 -05:00
Timothy Stewart
db8fbd9447
chore(lint): Fix yaml lint
2022-08-28 14:27:22 -05:00
Techno Tim
aa05ab153e
fix(ansible): Refactored ansible steps to now install metallb in post… ( #58 )
...
* fix(ansible): Refactored ansible steps to now install metallb in post task and verify
2022-08-28 14:25:09 -05:00
Simon Leiner
370e19169b
Print fewer logs when removing manifests ( #55 )
2022-08-23 23:26:08 -05:00
Timothy Stewart
e04f3bac61
chore(github): Updated issue template
2022-08-20 16:22:56 -05:00
Techno Tim
cdd7c4e668
Fix k3s manifest ( #53 )
...
* fix(k3s): Remove manifests and folders from bootstrapped cluster
2022-08-20 16:19:20 -05:00
Lance A. Brown
90bbc0a399
Add linux-modules-extra-raspi package for Ubuntu 22.x on Raspberry. ( #50 )
...
* Add task for linux-modules-extra-raspi
Ubuntu 22.x on Raspberry Pi needs the linux-modules-extra-raspi package
for the vxlans kernel module.
* Remove linux-modules-extra-reaspi package
Not sure we want to do this but including it in the PR anyway for discussion.
2022-08-11 21:23:56 -05:00
slemmercs
1e4b48f039
replaced --no-deploy with --disable ( #49 )
...
According to https://rancher.com/docs/k3s/latest/en/installation/install-options/server-config/ > Kubernetes Components section the --disable <value> flag should be used as the --no-deploy is a deprecated option
2022-08-11 21:23:47 -05:00
Timothy Stewart
ac5325a670
fix(kube-vip): Cleaning up; adding missing rbac api groups
2022-07-30 22:11:28 -05:00
Techno Tim
a33ed487e0
feat(upgrades): Updated k3s, metalls, and kubevip and fixed bugs ( #46 )
2022-07-27 23:13:43 -05:00
Simon Leiner
1830b9c9a1
Fix .gitignore ( #40 )
...
For more details, see:
https://stackoverflow.com/a/20652768
2022-07-27 21:24:59 -05:00
SwaggaRitz
39581f4ba7
Replaced manifest files with double extention to '-' ( #41 )
...
Co-authored-by: Adrian Jones <adrian@geektowers.local>
2022-07-27 21:21:38 -05:00
Timothy Stewart
909d85e392
fix(README): Fixed lint
2022-06-25 22:57:08 -05:00
Timothy Stewart
40f783fb22
fix(README): Fixed lint
2022-06-25 22:56:45 -05:00
Infectiious
a922f9480d
Update README.md ( #33 )
...
Fix typo in readme.
2022-06-06 15:48:08 -05:00
Techno Tim
e1a0298eb8
Upgrade kube-vpi; improve settings; better reset ( #31 )
...
* fix(k3s): upgrade k3s + kube-vip
* chore(github): update template
* chore(docs): Updated README
* fix(ansible): Reboot as part of reset
* fix(kube-vip): improve settings
* chore(lint): fix
* chore(lint): fix
2022-05-26 15:32:25 -05:00
Chad Yyh
5bf61c841f
fix typo in readme ( #26 )
2022-05-18 18:24:15 -05:00
Janic Voser
1ce3319087
Using Ansible os family instead of multiple Ansible os distributions ( #6 )
...
* Using Ansible os family instead of multiple Ansible os distributions
* Added option to set timezone, this could save a bit of headache if someone has certificate problems
Co-authored-by: janic <janic.voser@schulen-unteraegeri.ch>
2022-04-09 11:04:25 -05:00
Timothy Stewart
97bed143b5
fix(README): updated docs
2022-04-04 22:52:48 -05:00
Timothy Stewart
6d90b4b492
chore(github): updated issue template
2022-04-04 22:12:31 -05:00