Commit Graph

118 Commits

Author SHA1 Message Date
Khue Doan
613fb33959 Generate LXD tfvars instead of environment variable 2021-04-21 23:29:18 +07:00
Khue Doan
147dfd57ef Wait for docker socket instead of just wait for 5 minutes
Make sure docker is actually available and will not fail if it takes
longer than 5 minutes to install docker
2021-04-21 23:01:55 +07:00
Khue Doan
bccec48529 Move core services to new module 2021-04-20 19:24:23 +07:00
Khue Doan
5b8f968261 Rename some modules 2021-04-20 19:12:07 +07:00
Khue Doan
1b9a434833 Initial modules structure 2021-04-20 19:00:57 +07:00
Khue Doan
0789c9b3e4 Generate SSH key for RKE nodes automatically
Instead of using the same one with bare-metal nodes
2021-04-20 18:46:01 +07:00
Khue Doan
0d9cf4ee86 Revert "Remove legacy bare metal cluster"
This reverts commit 06a9936510.
2021-04-20 17:56:03 +07:00
Khue Doan
400288a786 Update title for each layer 2021-04-20 01:55:09 +07:00
Khue Doan
5772849767 Add more TODO 2021-04-19 22:39:51 +07:00
Khue Doan
d1b8b309d5 Fix incorrect IP after first apply 2021-04-19 02:02:48 +07:00
Khue Doan
bc36a09477 Fix incorrect init path 2021-04-19 01:54:11 +07:00
Khue Doan
f8dc1c35ae Restructure infra 2021-04-19 01:36:12 +07:00
Khue Doan
06a9936510 Remove legacy bare metal cluster 2021-04-19 01:23:21 +07:00
Khue Doan
3e06e711d3 Harden kube config permission 2021-04-19 01:00:27 +07:00
Khue Doan
c7f0accb74 Increase master and worker count 2021-04-19 00:02:38 +07:00
Khue Doan
6a7bfa4414 Make LXD containers accessible from LAN 2021-04-18 23:45:53 +07:00
Khue Doan
7e22d2455f Source secrets from metal layer from infra 2021-03-21 18:22:13 +07:00
Khue Doan
2f0bad6533 Temporarily disable remote state 2021-02-22 00:19:24 +07:00
Khue Doan
ba63b1a255 Restructure infra 2021-02-21 22:45:02 +07:00
Khue Doan
6b60373ac4 Add role to generate LXD client config 2021-02-21 22:28:06 +07:00
Khue Doan
5a7ccf88d5 Change storage pool name back to default 2021-02-15 02:20:33 +07:00
Khue Doan
6b337fb94a Change default storage and nic 2021-02-15 01:25:52 +07:00
Khue Doan
01b9ff8207 Move old baremetal cluster type to legacy 2021-02-14 15:53:05 +07:00
Khue Doan
f25300a712 Add workers 2021-02-14 05:54:11 +00:00
Khue Doan
f87cdb2561 Fix kube-proxy trying to write to nf_conntrack hashsize 2021-02-14 03:48:05 +00:00
Khue Doan
667c0da938 Fix docker shared mount 2021-02-13 18:52:12 +00:00
Khue Doan
d0c7f3714e Install docker instead of k3s 2021-02-13 15:41:31 +00:00
Khue Doan
557a733841 Sperate lxd profile 2021-02-13 14:02:32 +00:00
Khue Doan
69851a9d46 Update lxd rke 2021-02-13 11:54:46 +00:00
Khue Doan
4da172ba4c Update lxd profile 2021-02-13 16:31:30 +07:00
Khue Doan
fbe119fd16 Experimental LXD rke cluster 2021-02-13 12:49:59 +07:00
Khue Doan
6d32436039 Working lxd container 2021-02-12 21:51:19 +07:00
Khue Doan
6b6f65893f Working etcd backend for terraform 2021-02-12 21:24:13 +07:00
Khue Doan
41bcef81d3 Restructure infra and platform 2021-02-11 18:20:54 +07:00
Khue Doan
f4eb269f9d Clean up 2021-02-08 08:52:53 +07:00
Khue Doan
bc1a4839c2 Update PXE server 2020-11-25 23:44:32 +07:00
Khue Doan
fb2acfb178 Clean up 2020-11-24 01:33:49 +07:00
Khue Doan
7d1dced1c0 Enable iscsid service 2020-11-21 19:39:14 +07:00
Khue Doan
a6e3d5a1ba Add iscsi 2020-11-21 17:40:24 +07:00
Khue Doan
44273dc972 Clean up OpenStack 2020-11-21 16:16:48 +07:00
Khue Doan
7dafb3709d Install Docker
Kinda messy
2020-11-15 03:26:28 +07:00
Khue Doan
45c7bba5c3 Update PXE server 2020-11-15 01:59:45 +07:00
Khue Doan
9f33f464f6 Change variable name and fix gateway 2020-11-15 01:59:17 +07:00
Khue Doan
03651dff7f Replace : with - in MAC addresses 2020-11-14 23:25:09 +07:00
Khue Doan
1011a0a45f Revert "Use dash instead of colon in MAC address"
This reverts commit e8a86a5d7693f1a059b52be3b588fe39da148669.
2020-11-14 23:20:22 +07:00
Khue Doan
d1b7acc42c Update PXE server 2020-11-14 23:17:17 +07:00
Khue Doan
431d6acf51 Add function to parse config template 2020-11-14 23:16:01 +07:00
Khue Doan
87411293e8 Use dash instead of colon in MAC address 2020-11-14 22:36:00 +07:00
Khue Doan
c6605db468 Upgrade PXE server 2020-11-14 22:30:51 +07:00
Khue Doan
e477d0ed1d Change hostname 2020-11-14 22:23:50 +07:00
Khue Doan
ddce8a3798 Change nodes IP 2020-11-13 00:43:43 +07:00
Khue Doan
05d119479f Print nginx log 2020-11-13 00:37:27 +07:00
Khue Doan
6f1177e704 Quiet SSH 2020-11-13 00:31:42 +07:00
Khue Doan
1a1cc5e06f wol already prints which device get woken up 2020-11-13 00:30:06 +07:00
Khue Doan
3f2a9c8c86 Quite ping 2020-11-13 00:29:25 +07:00
Khue Doan
f87a915c1c Forget nodes from know host 2020-11-13 00:25:17 +07:00
Khue Doan
8569d8633e Turn off PXE server when all server has started up 2020-11-12 23:54:26 +07:00
Khue Doan
b295e07905 Update PXE server 2020-11-12 23:51:14 +07:00
Khue Doan
d54da8be93 Fix syntax 2020-11-12 23:40:02 +07:00
Khue Doan
1b822e3907 Print node by name 2020-11-12 23:39:38 +07:00
Khue Doan
8f73f92a96 Check if node alive or not 2020-11-12 23:37:48 +07:00
Khue Doan
96df8062d5 Kinda complete reset script 2020-11-12 23:28:45 +07:00
Khue Doan
19ec331f1a Move reset script to Python 2020-11-12 22:50:27 +07:00
Khue Doan
77162b83ea Change boot next before shutdown 2020-11-04 23:37:04 +07:00
Khue Doan
a248fc537f Add shutdown script 2020-11-04 23:25:10 +07:00
Khue Doan
8aaa0ff997 Upgrade PXE Server 2020-11-04 23:22:26 +07:00
Khue Doan
beb306ccb8 Add PXE Server submodule 2020-11-04 22:48:36 +07:00
Khue Doan
8d8fbb00e5 Move infrastructure/ to infra/ 2020-11-04 22:47:57 +07:00