Commit graph

394 commits

Author SHA1 Message Date
7940d29169 [skip-ci] Remove reprovision cli option 2022-08-26 11:07:37 +02:00
05821540fe Refactoring of input validation
Move application file validation to provisionK3s.
Add an ApplicationFileRepository. Also unit tests for the functions.
2022-08-26 10:52:45 +02:00
1ad357ba44 mob 2022-08-26 09:30:27 +02:00
d9d8678b82 [skip-ci] Add todo messages. 2022-08-25 16:50:47 +02:00
83f86db0d1 [skip-ci] Update README and gopass versions
A few clarifications in the readme.
Also updated versions of gopassJsonAPI and gopassBridge.
Clarified variable name.
2022-08-25 16:15:50 +02:00
17a814a11a Move reprovision cmd line option to new branch 2022-08-24 13:21:43 +02:00
az
2525e0f2bb refactor DesktopType 2022-08-21 13:23:04 +02:00
az
4cc1ce756a resolve unsafe operator 2022-08-21 13:06:49 +02:00
46b822d4cd Review 2022-08-18 17:38:35 +02:00
949fe0c1af Correct server type check
Checking the serverType/subcommand from string input.
Before the check was done after parsing string input,
when an unknown server type was entered a "Too many
arguments!" error was issued due to the parser falsely
interpreting the input.
2022-08-17 15:32:38 +02:00
81350db43d Update command flow
Catch invalid server type befor creating provInstance
2022-08-17 14:46:46 +02:00
6e2d669af5 Prepare for improve of input validation
We now check application and config files before starting provisioning
process. We also check serverType and target validity before starting.
This happens in unified manner in the main function.
2022-08-17 14:05:17 +02:00
77351933fe Prepare for add cli option
-r or --reprovision for convenience
2022-08-16 15:20:19 +02:00
c2237c8721 Moved traefik middleware 2022-07-29 14:35:33 +00:00
bom
a36d25e02d Update default shared-ip value 2022-07-22 13:10:12 +02:00
f43b06f7ba Change externalTrafficPolicy
From Local to Cluster.
2022-07-22 10:17:36 +02:00
1e33fcd9fb Update Annotations
Consider correct syntax for helm charts.
Change IP-Address range back to single address.
2022-07-22 09:56:09 +02:00
9fb30341de Update traefik template
Enable multiple loadBalancerIPs for metallb.
Apply the traefik template.
2022-07-21 16:58:49 +02:00
bom
3d385fa8ac Use node_ipv4 in traefik
As we are now using NodePools with more than one IP this ensures that the traefik and subsequently ingresses always have the IP-Address associated with the DNS entry and not a randomly selected one.
2022-07-21 16:08:13 +02:00
bom
a5eebfbf22 Use valid ipv4 CIDR ranges 2022-07-21 15:13:13 +02:00
az
f7628101af [skip ci] refactor installNextcloudClient in own file - fix 2022-07-20 19:42:52 +02:00
az
4a3a25e21c [skip ci] refactor installNextcloudClient in own file 2022-07-20 19:42:16 +02:00
az
751d315299 rename provisionBaseDesktop to provisionBasicDesktop 2022-07-20 18:37:13 +02:00
830a93a468 release 2022-07-18 19:02:39 +02:00
21f22916b2 rename & minor refactoring 2022-07-18 09:29:25 +02:00
bom
93933af0d0 Invert check for ssh hardening config
configureSsh() was never actually doing anything, as the hardening config does not exist in a default ssh setup.
2022-07-13 10:56:44 +02:00
az
a94cbc24b0 rename task lambda from "task" to "taskLambda" 2022-07-11 22:34:22 +02:00
0378e0cf4a enabled other domain names 2022-07-08 16:15:10 +02:00
bom
9e1ae05c12 Configure ssh while provisioning K3s 2022-07-08 13:07:38 +02:00
bom
72ed2951ee Update ssh.kt with all files 2022-07-08 13:04:55 +02:00
bom
942b7ab3a9 Move ssh configs 2022-07-08 13:03:40 +02:00
d8865839a1 Merge remote-tracking branch 'origin/master' 2022-07-08 12:20:05 +02:00
14e98a84d3 Added sshd configure. 2022-07-08 12:19:50 +02:00
bom
51c2ce31ab Add config files for ssh hardening 2022-07-08 10:41:15 +02:00
42376c7e69 Removed python3.8 from installPython3
Using python3 prefix uses latest python version for current distro.
Ensures compatibility with later versions of Ubuntu.
2022-07-07 13:08:20 +02:00
8f876c138e fix tests 2022-07-05 20:38:49 +02:00
5b99f3828c review 2022-07-05 20:19:27 +02:00
46cd2af19e Merge remote-tracking branch 'origin/master' 2022-07-05 20:16:56 +02:00
a608382a58 refactrored desktop mappings 2022-07-05 20:16:29 +02:00
see
a60b98c8a5 Release, ToDos, Refactorings
Cleanup todos and refactor some functions.
This also removes some overloading.
New release v0.12.1
2022-06-30 14:10:04 +02:00
b265824b63 refactrored desktop mappings 2022-06-30 09:00:42 +02:00
24ff5b7c15 reviewed 2022-06-30 08:38:09 +02:00
79806eefab Merge remote-tracking branch 'origin/master' 2022-06-30 08:31:01 +02:00
3267bafa6f gopass export-keys ist nützlich ... 2022-06-30 08:30:49 +02:00
see
515197ac27 Added covenience functions
There is now an alias "k" for kubectl.
Autocomplete works now for kubectl.
2022-06-29 15:38:28 +02:00
148a0821c1 Added openboard to DRAWING_TOOLS. 2022-06-24 16:28:21 +02:00
4e698da78f Adjusted installation of DeltaChat 2022-06-24 15:13:14 +02:00
c7e6266eb0 Added deltachat-desktop 2022-06-24 10:23:48 +02:00
see
b28d03a9e0 [skip ci] updated test 2022-06-17 14:35:53 +02:00
az
ce122ac13a add syspec-ide-config.yaml and syspec-office-config.yaml 2022-06-17 14:11:29 +02:00
see
15dfba6b6e [skip-ci] refactor: removed overloaded valueOf 2022-06-17 13:01:04 +02:00
bf3a8db4c0 release-0.11.10 - rename workplace to desktop 2022-06-16 22:57:08 +02:00
bcd43a95be improve output layout for info texts 2022-06-16 22:34:11 +02:00
8319951810 replace DesktopType by extendable class 2022-06-14 19:22:39 +02:00
e2317b323e fix flaky findIpForHostname function 2022-06-14 19:22:04 +02:00
f0636067ef add function for printing info text 2022-06-14 18:34:11 +02:00
65669ee185 [skip ci] remove deprecated funtions 2022-06-14 18:32:21 +02:00
1ebc1ee98d Added doc comments for citrix 2022-06-10 14:29:36 +02:00
205795c5f8 move tests to correct folder 2022-06-10 12:42:49 +02:00
83f9a0e40e add package gnupg2 to installation for teams 2022-06-10 12:22:46 +02:00
f219e70d83 Added 'only' option and ms-teams 2022-06-10 11:10:02 +02:00
f4920b5786 release-0.11.6 2022-06-07 19:47:47 +02:00
744a4b2a86 add findIpForHostname 2022-06-07 16:58:17 +02:00
7157dc57dd fix marking failed levels as yellow if there are > 1 levels to ignore failed (i.e. marked yellow) 2022-05-31 21:30:52 +02:00
5fd7ab588f add alias k=kubectl to k3s 2022-05-29 18:10:24 +02:00
0f5afd9825 rename createParentDirs and make it only creating a result in case directories are actually created 2022-05-28 22:54:24 +02:00
3f9121f8f5 pin image version node-exporter:v1.3.1 2022-05-27 19:21:20 +02:00
c65210043e fix isPackageInstalled 2022-05-20 21:45:28 +02:00
see
00c8c715fc fixed traefik.yaml 2022-05-20 10:57:37 +02:00
91e334c3fa pinning k3s version 2022-05-20 10:11:16 +02:00
47ba42bd0b pinning k3s version 2022-05-20 10:06:35 +02:00
8f9543dc08 update traefik.yaml 2022-05-20 09:43:56 +02:00
7f17679906 update traefik.yaml - now with "ipFamilyPolicy: PreferDualStack" to have dual-stack ingress support 2022-05-19 18:40:51 +02:00
c9b1643287 add parameter url to grafana 2022-05-18 21:49:28 +02:00
eb514fb8aa rename parameters createSymlink 2022-05-17 18:43:55 +02:00
a881310f48 fix configureVenv for idempotence, add createSymlink 2022-05-16 22:09:35 +02:00
876836f6a3 refactor provisionK3s 2022-05-14 13:23:43 +02:00
7ca6723b4d createFile also creates a potentially missing directory, dependent on parameter createDirIfMissing 2022-05-14 12:26:39 +02:00
8ef505fb47 activate venv in termials 2022-05-12 09:24:19 +02:00
db04735df0 add tests 2022-05-09 16:00:14 +02:00
7590e2df2e add grafana only option 2022-05-09 15:41:01 +02:00
85697f43f9 add grafana-agent 2022-05-08 18:52:50 +02:00
968c5d01d6 rename handle to evaluate 2022-04-24 19:29:34 +02:00
13cad5b170 [skip ci] add comments 2022-04-21 18:27:04 +02:00
see
26a22044eb add a .devops folder to home 2022-04-19 14:06:19 +02:00
4fafe1ac56 release-0.11.1 2022-04-18 19:33:22 +02:00
478ea014f5 release-0.11.0 2022-04-18 18:47:22 +02:00
efe158275b add task without requiring an explicit return value (ProvResult) 2022-04-18 18:45:52 +02:00
7eb7494fad remove install binaries 2022-04-18 17:12:49 +02:00
az
ba9b73be43 add targetFolderPath to gitClone and createDirs if dirs not yet existing 2022-04-10 19:56:21 +02:00
see
ecbcac81f8 added logic for folders and testlogic 2022-04-08 12:34:22 +02:00
see
9f4d40ae6a Merge branch 'master' of gitlab.com:domaindrivenarchitecture/provs 2022-04-08 11:26:07 +02:00
see
06162cf3ad added scrcpy 2022-04-08 11:26:02 +02:00
az
5f0271bf2b add check for already installed packages before installing them 2022-04-08 11:19:03 +02:00
bom
64511aa491 added context creation and connect scripts
k8s-connect.sh works on clusters set up with the old infrastructure

k3s-connect.sh works with the new infrastructure
2022-04-08 10:31:43 +02:00
az
0ee8383644 fix fileContentLargeFile for home dir ~/ 2022-03-28 21:16:54 +02:00
az
e1b4dabb26 fix installKubectlAndTools 2022-03-28 20:11:23 +02:00
az
906deb4ac7 add fileContent for large files 2022-03-28 20:07:14 +02:00
az
db33edf0f7 fix kubernetes bash completion 2022-03-28 19:21:46 +02:00
5f956ab42c fix findSpecConfigFromResource 2022-03-26 18:26:13 +01:00
894cfefa12 refactor name DesktopConfigRepository.kt 2022-03-26 18:20:21 +01:00
8bb574ece7 simplify SyspecConfigRepo.kt 2022-03-26 18:17:04 +01:00
9c5c170817 improve syspec output 2022-03-26 18:09:44 +01:00
a6be9e36f7 simplify configRepo code 2022-03-26 13:57:23 +01:00
45223d4669 [skip ci] refactor SyspecConfigRepo.kt using kotlin.Result 2022-03-26 13:14:34 +01:00
df124f0c25 add spec from resource 2022-03-25 21:25:00 +01:00
a0f6fb135c add syspec jar 2022-03-25 16:31:29 +01:00
394dc9edf2 add syspec 2022-03-25 15:21:11 +01:00
14690a089d improve layout of result line for FAILED results 2022-03-22 20:13:10 +01:00
d2a2ee6b00 fix problem with potential wrong color due to success not overwritten in logic in printResults 2022-03-19 20:39:31 +01:00
10e5bf933e move ssh function as trustHost to correct file 2022-03-18 22:39:52 +01:00
2cd5ae5c7c add function checkDir, make dirExists deprecated 2022-03-18 22:29:01 +01:00
d778c75937 add function checkFile, make fileExists deprecated 2022-03-18 22:24:50 +01:00
16c6292ca3 make function def deprecated replace by task 2022-03-18 22:04:32 +01:00
908ac00a3b avoid emphasis with color red on failed results that do not count 2022-03-18 21:31:25 +01:00
d4c7c19126 [skip ci] cleanup 2022-03-18 21:24:42 +01:00
f0a7fe569d restart provisioner after reconfiguration 2022-03-18 18:39:08 +01:00
bom
b509bb4228 added local-path-provisioner config 2022-03-18 15:43:36 +01:00
3f3974794a [skip ci] change default desktop config to desktop-config.yaml 2022-03-17 20:13:27 +01:00
d572705a15 refactor K3s.kt with type File etc 2022-03-14 22:27:42 +01:00
f770e026d2 add ssh utils following the same scheme as k8s-create... 2022-03-14 16:42:51 +01:00
a3fbd13474 add ssh utils following the same scheme as k8s-create... 2022-03-14 16:42:27 +01:00
1836b9efdb fix todos in class Prov & method names refactorings 2022-03-12 18:41:07 +01:00
d8ff355893 [skip ci] hide Prov instanceName as currently no extern usage is known 2022-03-12 17:45:45 +01:00
fba09f5337 [skip ci] cleanup apple 2022-03-12 17:41:49 +01:00
a8c8864f75 add provisioning of an additional k3s application 2022-03-12 15:33:14 +01:00
a9b74342a7 introduce metallb 2022-03-11 17:51:03 +01:00
bd83b4a0f8 remove apple, add echo, adjust to new k3s 2022-03-11 16:26:39 +01:00
2a48b541b8 add k3s echo service 2022-03-11 15:22:52 +01:00
e03d8d5d58 refactor k3s: split install & configure 2022-03-11 10:09:56 +01:00
31c60931dd add creation of default server-config.yaml if not existing 2022-03-10 22:10:59 +01:00
c52a367dc8 [skip ci] add tests for yaml 2022-03-10 21:46:00 +01:00
dfd656739e release-0.9.12 2022-03-10 21:24:17 +01:00
064243da60 add possibility for k8s apple service with selfsigned certificate 2022-03-10 20:30:59 +01:00
03cd8f4b2b improve readability of error messages for filename of config 2022-03-05 09:26:48 +01:00
cf327184b6 [skip ci] documentation changes 2022-02-26 21:13:12 +01:00
9c29d229e6 [skip ci] improve cli messages 2022-02-26 12:37:48 +01:00
5b8a0a6371 release-0.9.10 2022-02-26 12:20:39 +01:00
8b033c56a1 update installed binaries to version 0.9.9 2022-02-26 11:38:21 +01:00
a005e51729 release-0.9.9 add c4kbinaries download 2022-02-25 21:11:04 +01:00
6be97d82de use newest nextcloud 2022-02-25 17:03:43 +01:00
ec0cd59e56 add more c4k modules 2022-02-25 15:47:19 +01:00
241bc4fef3 [skip ci] wip 2022-02-25 15:29:10 +01:00
2212286ea7 [skip ci] update provs binaries to version 0.9.8 2022-02-25 15:05:26 +01:00
baf9e19c86 add install BinariesC4k.kt 2022-02-25 09:46:30 +01:00
32e4c04175 add only to cli 2022-02-24 22:27:01 +01:00
478f058fd7 change cli to new format 2022-02-24 19:21:18 +01:00
2d26bafe4d [skip ci] add installation of jarwrapper 2022-02-22 22:39:44 +01:00
70b411baa8 add modules to desktop cli 2022-02-22 22:36:48 +01:00
c8e880eba4 [skip ci] fix empty arguments exception 2022-02-22 17:42:40 +01:00