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:
Monty Taylor 2014-04-14 10:46:02 -07:00
parent ad2e15883b
commit ac74cc2a0b
1 changed files with 4 additions and 6 deletions

View File

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