Commit Graph

310 Commits

Author SHA1 Message Date
Khue Doan
2222b6e638 Remove platform and genesis
Move genesis back in metal and merge platform into infra
2021-04-18 23:55:37 +07:00
Khue Doan
0f83f5b9a2 Remove test environent
Hard to keep it up to date, may add it back later
2021-04-18 23:53:19 +07:00
Khue Doan
6a7bfa4414 Make LXD containers accessible from LAN 2021-04-18 23:45:53 +07:00
Khue Doan
49846a36c4 Add missing lib for Ansible 2021-04-18 22:20:12 +07:00
Khue Doan
8c66d78ecd Move tools to seperate repo 2021-03-28 22:52:26 +07:00
Khue Doan
a503f8fbb9 Init genesis 2021-03-27 03:48:27 +07:00
Khue Doan
d55dc92945 Simplify prerequisite with tools container 2021-03-27 03:45:56 +07:00
Khue Doan
d2472f5fff Merge remote-tracking branch 'origin/layers-secrets-share' 2021-03-21 18:26:16 +07:00
Khue Doan
9d30d0e328 Export metal secrets to an env file 2021-03-21 18:24:48 +07:00
Khue Doan
7e22d2455f Source secrets from metal layer from infra 2021-03-21 18:22:13 +07:00
Khue Doan
6a10e55110 Explicit testing repo 2021-03-11 10:21:27 +07:00
Khue Doan
9f78e65ecd Remove dotfiles in tools container 2021-03-11 01:51:17 +07:00
Khue Doan
429808949f Rename tools container and add Makefile 2021-03-11 01:43:34 +07:00
Khue Doan
1b8b6ba157 Only install zshrc 2021-03-11 01:36:57 +07:00
Khue Doan
aa2e8a60e4 Install dotfiles 2021-03-11 01:27:51 +07:00
Khue Doan
6a90729167 Fix typo 2021-03-11 01:14:40 +07:00
Khue Doan
e2dd9a469b Genesis 2021-03-11 01:09:34 +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
d745da5167 Use the same playbook and ansible config in test 2021-03-02 11:21:09 +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
8381ff4223 Add acknowledgements 2021-02-23 21:38:41 +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
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
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
f191d5a2e2 Switch to Ubuntu from Debian
Because of LXD fan networking issue

Can ping containers in different node
2021-02-21 20:58:06 +07:00
Khue Doan
a00cd2b288 Add snapshot and restore 2021-02-21 20:19:00 +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
20fe827422 Remove reset target
Avoid accidentally delete everything
2021-02-21 17:44:21 +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