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/"