From 6e616dd29cd57b9b28a21a455434f5dfe7ae7a26 Mon Sep 17 00:00:00 2001 From: Khai Do Date: Sun, 20 Nov 2016 22:59:40 -0800 Subject: [PATCH] Fix placement of ssh public key The ssh public key should be in ~/.ssh folder instead of at the root of the user's home folder. Change-Id: I29c8f068b8765e79439cb5f74f77618c12d6ef4a --- manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/init.pp b/manifests/init.pp index caeeb54..d5eea36 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -655,7 +655,7 @@ class gerrit( } if $ssh_replication_rsa_pubkey_contents != '' { - file { '/home/gerrit2/id_rsa.pub': + file { '/home/gerrit2/.ssh/id_rsa.pub': owner => 'gerrit2', group => 'gerrit2', mode => '0644',