aboutsummaryrefslogtreecommitdiff
path: root/manifests/defines/ssh_config.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/defines/ssh_config.pp')
-rw-r--r--manifests/defines/ssh_config.pp35
1 files changed, 0 insertions, 35 deletions
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,
- },
- }
-}