Add a sane default value for key_id

When key_id is not set, that is defaulting to blank,
and is causing duplication errors if two users don't have
it set. Defaulting to user title, to ensure that this
key will be unique per user.

Change-Id: Ie79e461483af9c44d53bb1ca5ed64687b4723f68
This commit is contained in:
Yolanda Robla 2015-06-25 16:55:51 +02:00
parent b673fc3458
commit 5ccba2b630
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ define user::virtual::localuser(
$gid,
$groups = [ 'sudo', 'admin', ],
$sshkeys = '',
$key_id = '',
$key_id = $title,
$old_keys = [],
$shell = '/bin/bash',
$home = "/home/${title}",