change source to git depot; disable service crond
This commit is contained in:
parent
e03ed9f47c
commit
d30789f0a9
|
@ -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)
|
||||
}
|
||||
|
|
6
main.tf
6
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",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue