aboutsummaryrefslogtreecommitdiff
path: root/modules/role/templates/backup/ssh_host_changed.info.erb
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-19 16:21:53 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-19 16:21:53 +0100
commit98311fc2ea91cc2a5f00e9fa85a30f50fde77e79 (patch)
tree58ff0ffad8cbe0230eff1791360bc7cc45501c34 /modules/role/templates/backup/ssh_host_changed.info.erb
parentf4c9ed4c0a32082d8f7b60cee1eb33cb05c85a1c (diff)
parentd87a489f9585d10f0a185beb59ae16a10f27a7bd (diff)
downloadPuppet-98311fc2ea91cc2a5f00e9fa85a30f50fde77e79.tar.gz
Puppet-98311fc2ea91cc2a5f00e9fa85a30f50fde77e79.tar.zst
Puppet-98311fc2ea91cc2a5f00e9fa85a30f50fde77e79.zip
Merge branch 'backup' into dev
Diffstat (limited to 'modules/role/templates/backup/ssh_host_changed.info.erb')
-rw-r--r--modules/role/templates/backup/ssh_host_changed.info.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/role/templates/backup/ssh_host_changed.info.erb b/modules/role/templates/backup/ssh_host_changed.info.erb
new file mode 100644
index 0000000..ebf202e
--- /dev/null
+++ b/modules/role/templates/backup/ssh_host_changed.info.erb
@@ -0,0 +1,4 @@
1Host <%= @host %> added, please send <%= @user %> key if necessary.
2<%- if File.exist?("/home/#{@user}/.ssh/id_rsa.pub") %>
3 <%= File.read("/home/#{@user}/.ssh/id_rsa.pub") %>
4<% end -%>