From 4fafe1ac56d50f88f31e087920b5c7ed3f6a0fc4 Mon Sep 17 00:00:00 2001 From: ansgarz Date: Mon, 18 Apr 2022 19:33:22 +0200 Subject: [PATCH] release-0.11.1 --- build.gradle | 2 +- .../provs/desktop/infrastructure/DevOps.kt | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 6e67a85..79ad3ee 100644 --- a/build.gradle +++ b/build.gradle @@ -18,7 +18,7 @@ apply plugin: "kotlinx-serialization" group = "org.domaindrivenarchitecture.provs" -version = "0.11.1-SNAPSHOT" +version = "release-0.11.1" repositories { mavenCentral() diff --git a/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/DevOps.kt b/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/DevOps.kt index 7491b67..d8460cb 100644 --- a/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/DevOps.kt +++ b/src/main/kotlin/org/domaindrivenarchitecture/provs/desktop/infrastructure/DevOps.kt @@ -7,6 +7,8 @@ import org.domaindrivenarchitecture.provs.framework.ubuntu.install.base.aptInsta import org.domaindrivenarchitecture.provs.framework.ubuntu.web.base.downloadFromURL +private const val resourcePath = "org/domaindrivenarchitecture/provs/desktop/infrastructure" + fun Prov.installDevOps() = task { installTerraform() installKubectlAndTools() @@ -36,7 +38,6 @@ fun Prov.installYq( } fun Prov.installKubectlAndTools(): ProvResult = task { - val resourcePath = "org/domaindrivenarchitecture/provs/desktop/infrastructure" task("installKubectl") { val kubeConfigFile = ".bashrc.d/kubectl.sh" @@ -58,6 +59,11 @@ fun Prov.installKubectlAndTools(): ProvResult = task { } } + installDevopsScripts() +} + +fun Prov.installDevopsScripts() { + task("install ssh helper") { createFileFromResource( "/usr/local/bin/sshu.sh", @@ -120,7 +126,6 @@ fun Prov.installKubectlAndTools(): ProvResult = task { ) } } - fun Prov.installTerraform(): ProvResult = task { val dir = "/usr/lib/tfenv/"