From 76ec4642be1a8bc64380c077a5890c4d0f4243e0 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 11 Sep 2015 21:16:42 -0300 Subject: Autoload definitions --- manifests/defines/ssh_config.pp | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 manifests/defines/ssh_config.pp (limited to 'manifests/defines/ssh_config.pp') diff --git a/manifests/defines/ssh_config.pp b/manifests/defines/ssh_config.pp deleted file mode 100644 index 5585520..0000000 --- a/manifests/defines/ssh_config.pp +++ /dev/null @@ -1,35 +0,0 @@ -# Manage ssh config for a particular user -define ssh_config( - $owner, - $group, - $home = '/home/$owner', - $ssh_localhost_auth = false -) { - ssh_folder { "ssh-config-${name}": - home => $home, - owner => $owner, - group => $group, - } - - file { "${home}/.ssh/config": - ensure => present, - owner => $owner, - group => $group, - mode => 0600, - require => File["${home}/.ssh"], - } - - # The NoHostAuthenticationForLocalhost ssh option might be useful - # for automated deployment environments so your ikiwiki user doesn't - # get stuck with the fingerprint confirmation prompt when pushing - # content via ssh in the first time it runs. - line { 'NoHostAuthenticationForLocalhost-${owner}': - file => "${home}/.ssh/config", - line => "NoHostAuthenticationForLocalhost yes", - ensure => $ssh_localhost_auth ? { - 'auto' => present, - 'fingerprint' => absent, - default => absent, - }, - } -} -- cgit v1.2.3