Commit Graph

33 Commits

Author SHA1 Message Date
Khue Doan
adbaf32aa5 refactor(tools): switch to Nix
- Nix is more reproducible (pinned to a specific hash)
- Faster rebuild after changing the package list (due to /nix caching in volume)
- Users can still use make tools (wrapped in Docker) without installing Nix
- Using nix-shell will work if you have nix installed.
2022-08-26 19:08:52 +07:00
Khue Doan
d8cac81b4c test(external): add simple test with init and validate 2022-08-06 13:55:11 +07:00
Khue Doan
7830ecef42 style: add color to test output 2022-08-03 19:29:48 +07:00
Khue Doan
40b8ef75b3 test: initial unit test and integration test support 2022-08-03 14:13:39 +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
d80e6442f4 Change main playbook file name 2021-03-03 21:51:19 +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
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
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
2cd7cf20e3 Remove all ansible role tags 2021-02-21 18:18:57 +07:00
Khue Doan
20fe827422 Remove reset target
Avoid accidentally delete everything
2021-02-21 17:44:21 +07:00
Khue Doan
b1ad9c0e4f Enable ansible pipelining for test environment 2021-02-21 14:07:03 +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
f2602aa749 2 test node to form a LXD cluster instead of a single node 2021-02-16 17:55:06 +07:00
Khue Doan
b4fc52b860 LXD role test 2021-02-15 14:33:51 +07:00
Khue Doan
b3f7db200b Add test playbook 2021-02-15 10:56:51 +07:00
Khue Doan
c349d2c994 Improve test makefile 2021-02-15 02:22:59 +07:00
Khue Doan
5a7ccf88d5 Change storage pool name back to default 2021-02-15 02:20:33 +07:00
Khue Doan
a91869cc85 Use lvm instead of btrfs because of a bug in k8s 2021-02-15 02:11:40 +07:00
Khue Doan
6b337fb94a Change default storage and nic 2021-02-15 01:25:52 +07:00
Khue Doan
a6ae520e89 Clean up multipass cloud init 2021-02-15 01:20:35 +07:00
Khue Doan
35381d12da stay away from snap if you can 2021-02-15 00:33:50 +07:00
Khue Doan
eba194b78e Add test data 2021-02-15 00:10:39 +07:00