aboutsummaryrefslogtreecommitdiff
path: root/manifests/defines
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/defines')
-rw-r--r--manifests/defines/ssh_config.pp6
-rw-r--r--manifests/defines/ssh_create_key.pp7
-rw-r--r--manifests/defines/ssh_known_hosts.pp6
3 files changed, 16 insertions, 3 deletions
diff --git a/manifests/defines/ssh_config.pp b/manifests/defines/ssh_config.pp
index 62e1d66..79d9635 100644
--- a/manifests/defines/ssh_config.pp
+++ b/manifests/defines/ssh_config.pp
@@ -1,5 +1,9 @@
# Manage ssh config for a particular user
-define ssh_config($owner, $home = '/home/$owner', $ssh_localhost_auth = false) {
+define ssh_config(
+ $owner,
+ $home = '/home/$owner',
+ $ssh_localhost_auth = false
+) {
include nodo::subsystem::ssh_folder
file { "${home}/.ssh/config":
diff --git a/manifests/defines/ssh_create_key.pp b/manifests/defines/ssh_create_key.pp
index e380b18..ec4bb67 100644
--- a/manifests/defines/ssh_create_key.pp
+++ b/manifests/defines/ssh_create_key.pp
@@ -1,4 +1,9 @@
-define ssh_create_key($owner, $group, $keyfile = 'id_rsa', $home = '/home/$owner') {
+define ssh_create_key(
+ $owner,
+ $group,
+ $keyfile = 'id_rsa',
+ $home = '/home/$owner'
+) {
include nodo::subsystem::ssh_folder
exec { "ssh-keygen-${owner}":
diff --git a/manifests/defines/ssh_known_hosts.pp b/manifests/defines/ssh_known_hosts.pp
index 50ae87e..84f25b2 100644
--- a/manifests/defines/ssh_known_hosts.pp
+++ b/manifests/defines/ssh_known_hosts.pp
@@ -1,5 +1,9 @@
# Manage known_hosts for a particular user
-define ssh_known_host($owner, $home = '/home/$owner', $ssh_localhost_auth = false) {
+define ssh_known_host(
+ $owner,
+ $home = '/home/$owner',
+ $ssh_localhost_auth = false
+) {
include nodo::subsystem::ssh_folder
file { "${home}/.ssh/known_hosts":