diff --git a/README.rst b/README.rst index fb15f4f..5acaf4e 100644 --- a/README.rst +++ b/README.rst @@ -1,12 +1,19 @@ Terraform module to post install a alpine VM +Description +----------- + +* add service sshd + +* disable service crond + Usage ----- In the root terraform add:: module "postinstall" { - source = "../alpine_postinstall" + source = "git::https://git.dalembert.upmc.fr/terraform/module_alpine_postinstall" connection_ip = var.eth0_ip connection_private_key = file(var.pm_private_key) } diff --git a/main.tf b/main.tf index b62d12a..e45af66 100644 --- a/main.tf +++ b/main.tf @@ -21,8 +21,12 @@ resource "null_resource" "alpine_postinstall" { "echo '# module alpine_postinstall'", "echo '#--------------------------'", "apk add file man-pages tzdata bash htop vim", + "echo '# install service openssh-server'", "apk add openssh-server", - "echo '# module DONE'", + # + "echo '# stop and disable service crond'", + "rc-service crond stop", + "rc-update del crond", ] } }