Commit Graph

449 Commits

Author SHA1 Message Date
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
Khue Doan
b1ad9c0e4f Enable ansible pipelining for test environment 2021-02-21 14:07:03 +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
ac442dbe2e Symlink metal roles to test 2021-02-21 10:50:39 +07:00
Khue Doan
80b26e878b Add role to install snap 2021-02-21 10:46:31 +07:00
Khue Doan
83c84d2eb8 Use root for ansible 2021-02-21 10:46:00 +07:00
Khue Doan
a4ad17310e Add reset target 2021-02-21 10:34:06 +07:00
Khue Doan
1fb9666e33 Replace multipass with vagrant 2021-02-21 09:55:26 +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
f2602aa749 2 test node to form a LXD cluster instead of a single node 2021-02-16 17:55:06 +07:00