change source to git depot; disable service crond

This commit is contained in:
Patrick CAO HUU THIEN 2022-12-14 15:39:07 +01:00
parent e03ed9f47c
commit d30789f0a9
2 changed files with 13 additions and 2 deletions

View File

@ -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)
}

View File

@ -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",
]
}
}