Move to using ssh_authorized_key type
There is a builtin type for adding authorized_keys. We started using it for the restricted access for the puppet triggering key, and it seems to make sense to be consistent across the board. Change-Id: I76ffb0136c58c05fa7c8abb793cb8e3b03cb5f6c
This commit is contained in:
parent
ad2e15883b
commit
ac74cc2a0b
|
@ -36,13 +36,11 @@ define user::virtual::localuser(
|
|||
require => User[$title],
|
||||
}
|
||||
|
||||
file { "${title}_keys":
|
||||
ssh_authorized_key { "${title}_keys":
|
||||
ensure => present,
|
||||
content => $sshkeys,
|
||||
group => $title,
|
||||
mode => '0400',
|
||||
name => "${home}/.ssh/authorized_keys",
|
||||
owner => $title,
|
||||
key => $sshkeys,
|
||||
user => $title,
|
||||
type => 'ssh-rsa',
|
||||
require => File["${title}_sshdir"],
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue