You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
760 B
Kotlin
18 lines
760 B
Kotlin
package org.domaindrivenarchitecture.provs.server.domain.k3s
|
|
|
|
import org.domaindrivenarchitecture.provs.framework.core.Prov
|
|
import org.domaindrivenarchitecture.provs.framework.core.ProvResult
|
|
import org.domaindrivenarchitecture.provs.framework.core.echoCommandForText
|
|
import org.domaindrivenarchitecture.provs.framework.ubuntu.install.base.aptInstall
|
|
import org.domaindrivenarchitecture.provs.server.infrastructure.provisionK3sInfra
|
|
|
|
|
|
/**
|
|
* Installs a k3s server.
|
|
* If docker is true, then docker will be installed (may conflict if docker is already existing) and k3s will be installed with docker option.
|
|
* If tlsHost is specified, then tls (if configured) also applies to the specified host.
|
|
*/
|
|
fun Prov.provisionK3s() = task {
|
|
provisionK3sInfra()
|
|
}
|