Commit Graph

22 Commits

Author SHA1 Message Date
Khue Doan
9f0d389abc feat!: install Cilium
Installed using Ansible instead of ArgoCD because Cilium replaces
the default CNI, so ArgoCD pod cannot be scheduled before Cilium
is installed.
2023-12-22 00:31:16 +07:00
Khue Doan
12143551c7 fix(metal): always generate SSH key without passphrase
https://github.com/khuedoan/homelab/issues/92

Using SSH key with passphrase requires ssh-agent, which the tools
container doesn't have
https://stackoverflow.com/questions/50277495/how-to-run-an-ansible-playbook-with-a-passphrase-protected-ssh-private-key
2022-10-12 09:24:15 +07:00
Khue Doan
062cdd5376 refactor!: switch dev environment from Vagrant to k3d 2022-04-04 03:21:42 +07:00
Khue Doan
5952b3d208 build(metal): add target for ansible-console 2022-02-25 01:38:53 +07:00
Khue Doan
71e0828297 refactor(metal): remove shutdown playbook
Use ansible-console instead
2022-02-19 10:52:52 +07:00
Khue Doan
66c70c023f refactor(metal): convert inventories back to YAML
Easier for Vagrant (and other tools in the future) to parse
2022-01-02 12:27:21 +07:00
Khue Doan
9e59f1ad81 chore: cleanup lint targets
Let CI pipeline do it
2021-12-27 11:36:47 +07:00
Khue Doan
167e0f1560 feat(metal): generate SSH key automatically if not exists 2021-12-25 14:56:49 +07:00
Khue Doan
738236c7d2 build: optimize dev environment build targets 2021-12-01 22:44:10 +07:00
Khue Doan
b3949a42da fix(metal): use the correct playbook for boot target 2021-12-01 22:21:28 +07:00
Khue Doan
5b258eba7a style(metal): convert inventories from YAML to INI
We don't need to parse the inventories in Terraform anymore.
INI is easier to read and edit
2021-11-25 18:48:55 +07:00
Khue Doan
3d73d9efd9 feat(metal): add dev VM for local development or evaluation 2021-11-25 18:36:34 +07:00
Khue Doan
d808ae96dd refactor(metal): split main playbook to boot and cluster
Easier to only apply k3s config
2021-11-25 18:26:44 +07:00
Khue Doan
03deb76eb9 Add linters for metal and infra 2021-06-10 19:28:34 +07:00
Khue Doan
9c43094d49 Change host fix extension 2021-06-08 19:09:47 +07:00
Khue Doan
56dd371fa8 Extract instead of mounting the OS ISO file
Avoid using privileged container or root permission on local machine
2021-05-16 15:10:23 +07:00
Khue Doan
54f4eb570d Use Ansible from package manager instead of pip 2021-05-16 13:14:15 +07:00
Khue Doan
53bd439431 Ensure idempotency for bare metal provisioning 2021-05-16 13:12:41 +07:00
Khue Doan
d80e6442f4 Change main playbook file name 2021-03-03 21:51:19 +07:00
Khue Doan
3d6c0f44d0 Use var for LXD password 2021-03-03 02:11:50 +07:00
Khue Doan
64f5a5684e Fix pxe server 2021-02-28 23:56:11 +07:00
Khue Doan
b44b6c0860 Provision bare metal with Ansible 2021-02-07 02:37:41 +07:00