aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-11 16:40:55 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-11 16:40:55 -0300
commit0d7442d0280075b254602a12ff22052450d44ef4 (patch)
tree0f31b7f977287762d0691001510237d7450a5c43
parentf2da08baf6042c3931617ce348e04401fabe385e (diff)
downloadpuppet-virtual-0d7442d0280075b254602a12ff22052450d44ef4.tar.gz
puppet-virtual-0d7442d0280075b254602a12ff22052450d44ef4.tar.bz2
Disable password, but allow key-based ssh logins at virtual::kvm::instance
-rw-r--r--manifests/kvm/instance.pp9
1 files changed, 5 insertions, 4 deletions
diff --git a/manifests/kvm/instance.pp b/manifests/kvm/instance.pp
index 6341289..bffedfa 100644
--- a/manifests/kvm/instance.pp
+++ b/manifests/kvm/instance.pp
@@ -4,10 +4,11 @@ define virtual::kvm::instance(
$shell = undef,
) {
user { $name:
- ensure => present,
- home => "/home/${name}",
- groups => [ 'kvm' ],
- shell => $shell,
+ ensure => present,
+ password => '*',
+ home => "/home/${name}",
+ groups => [ 'kvm' ],
+ shell => $shell,
}
file { [ "/home/${name}", "/home/${name}/vms", "/home/${name}/vms/${name}" ]: