Commit Graph

261 Commits

Author SHA1 Message Date
Khue Doan
5772849767 Add more TODO 2021-04-19 22:39:51 +07:00
Khue Doan
49846a36c4 Add missing lib for Ansible 2021-04-18 22:20:12 +07:00
Khue Doan
9d30d0e328 Export metal secrets to an env file 2021-03-21 18:24:48 +07:00
Khue Doan
d80e6442f4 Change main playbook file name 2021-03-03 21:51:19 +07:00
Khue Doan
a65772a574 Temporarily disable firewall 2021-03-03 03:11:29 +07:00
Khue Doan
620e2eab2a Fix LXD fan network 2021-03-03 02:51:55 +07:00
Khue Doan
3d6c0f44d0 Use var for LXD password 2021-03-03 02:11:50 +07:00
Khue Doan
b68d65f2ed Remove legacy reset script 2021-03-03 02:00:46 +07:00
Khue Doan
b085a453e7 Clean up 2021-03-03 01:56:33 +07:00
Khue Doan
acb3dd03af Optimize PXE config templating 2021-03-03 01:25:56 +07:00
Khue Doan
e6341de6e7 Rework role structure 2021-03-03 00:04:09 +07:00
Khue Doan
472003d94b Rework playbook 2021-03-03 00:00:59 +07:00
Khue Doan
54d47535c9 Install snap on CentOS instead 2021-03-02 23:48:12 +07:00
Khue Doan
d6bb107b7c Revert "Remove role to install snap"
This reverts commit fb64d06ab336f5487acdac9ed04e520975cd76e5.
2021-03-01 01:16:24 +07:00
Khue Doan
5ce78a6cbd Remove tools role 2021-03-01 01:14:06 +07:00
Khue Doan
5ef7086cac Ask for username and password when provision metal nodes 2021-03-01 00:55:41 +07:00
Khue Doan
f2f7599a02 Disable host key checking 2021-03-01 00:44:11 +07:00
Khue Doan
64f5a5684e Fix pxe server 2021-02-28 23:56:11 +07:00
Khue Doan
cdf6e4041e Fix wrong role name 2021-02-28 20:59:26 +07:00
Khue Doan
87934e8893 Add env secret template 2021-02-22 00:27:33 +07:00
Khue Doan
468aad25db Add minio for tfstate 2021-02-22 00:25:06 +07:00
Khue Doan
6b60373ac4 Add role to generate LXD client config 2021-02-21 22:28:06 +07:00
Khue Doan
5bd503dbce Remove role to install snap
Because we switched to Ubuntu and Ubuntu has snap installed by default
2021-02-21 21:03:32 +07:00
Khue Doan
b7b5ce1fd3 Force LXD fan network underlay subnet instead of auto 2021-02-21 21:01:35 +07:00
Khue Doan
5e0036defd Remove etcd role 2021-02-21 18:19:11 +07:00
Khue Doan
2cd7cf20e3 Remove all ansible role tags 2021-02-21 18:18:57 +07:00
Khue Doan
783306ac98 Add role to install admin tools 2021-02-21 18:18:10 +07:00
Khue Doan
e30db11617 Fix LXD init idempotency
Reference: 0990628edb
2021-02-21 14:17:49 +07:00
Khue Doan
28c87707cd Join member LXD nodes to the cluster 2021-02-21 14:10:17 +07:00
Khue Doan
b57b41c236 Only run leader preseed on the first node 2021-02-21 11:27:12 +07:00
Khue Doan
1b54cc22db Remove etcd role from playbook 2021-02-21 10:57:20 +07:00
Khue Doan
80b26e878b Add role to install snap 2021-02-21 10:46:31 +07:00
Khue Doan
a84928ec60 Remove hard coded IP 2021-02-20 11:22:54 +07:00
Khue Doan
bdc266cbee Cleaner lxd init preseed task 2021-02-16 18:03:58 +07:00
Khue Doan
bac214e4dd Add LXD role 2021-02-15 14:33:34 +07:00
Khue Doan
a4821862c5 Always start etcd tfstate container 2021-02-13 13:28:07 +07:00
Khue Doan
c73b4b1228 Fix etcd tfstate volume 2021-02-12 22:34:02 +07:00
Khue Doan
6b6f65893f Working etcd backend for terraform 2021-02-12 21:24:13 +07:00
Khue Doan
59e5624c02 Create etcd container for terraform state 2021-02-12 21:09:21 +07:00
Khue Doan
316ce29ccb Fix pxe docker compose 2021-02-12 20:39:22 +07:00
Khue Doan
c216624398 Fix ugly ansible error output 2021-02-12 20:20:39 +07:00
Khue Doan
75e075d2f6 Mount ISO 2021-02-12 20:12:42 +07:00
Khue Doan
4d8b0daf3e Add layer 0 bare metal docs 2021-02-12 16:12:21 +07:00
Khue Doan
27ea47c11a Ansible native PXE config instead of glue scripts in docker 2021-02-12 15:41:50 +07:00
Khue Doan
48e8274b53 Remove all 2021-02-12 14:27:43 +07:00
Khue Doan
a44ea21ab3 Revert "New pxe server structure"
This reverts commit 8d1a92a7d25083f0465bab02c55e52e543039a3a.
2021-02-12 14:27:18 +07:00
Khue Doan
008299f438 Revert "Add dir for tftpboot and kickstart configs"
This reverts commit e89a9a81a4089443040d8ffa80fb7b22bd65ae79.
2021-02-12 14:27:09 +07:00
Khue Doan
a7e73ad125 Add dir for tftpboot and kickstart configs 2021-02-12 14:18:03 +07:00
Khue Doan
2aba394fdb Fix wrong local connection variable 2021-02-12 12:39:09 +07:00
Khue Doan
c2744838ab New pxe server structure
No submodule and string replace script, j2 templates only
2021-02-12 12:37:29 +07:00
Khue Doan
45e72a3d2b Update pxe server 2021-02-11 18:50:02 +07:00
Khue Doan
d3a27d2d76 Change mac address format 2021-02-10 16:02:53 +07:00
Khue Doan
6eee51f65b Download Ubuntu ISO 2021-02-08 14:13:40 +07:00
Khue Doan
bfa7fa26a8 Shutdown before wake up 2021-02-08 10:09:02 +07:00
Khue Doan
f5b988991c Add pxe server submodule 2021-02-08 09:01:07 +07:00
Khue Doan
f4eb269f9d Clean up 2021-02-08 08:52:53 +07:00
Khue Doan
a49f018255 Remove all docker pxe server templates, use submodule instead 2021-02-08 08:46:28 +07:00
Khue Doan
9a7e2a2c3a New pxe server role structure 2021-02-07 14:15:27 +07:00
Khue Doan
fe6b190919 New PXE server 2021-02-07 13:54:47 +07:00
Khue Doan
2de9da8dc0 Move PXE server to metal 2021-02-07 13:12:05 +07:00
Khue Doan
b44b6c0860 Provision bare metal with Ansible 2021-02-07 02:37:41 +07:00