From d30789f0a95985e1c888011d3e68e26408fcd5c4 Mon Sep 17 00:00:00 2001 From: Patrick Cao Huu Thien Date: Wed, 14 Dec 2022 15:39:07 +0100 Subject: [PATCH] change source to git depot; disable service crond --- README.rst | 9 ++++++++- main.tf | 6 +++++- 2 files changed, 13 insertions(+), 2 deletions(-) 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", ] } }