Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/base/manifests/init.pp

Issue 29333275: Issue 3479 - Introduce custom RSA key for development hosts (Closed)
Patch Set: Created Jan. 7, 2016, 1:55 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/base/files/development_host_rsa_key.pub ('k') | modules/private-stub/hiera/hosts.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/base/manifests/init.pp
diff --git a/modules/base/manifests/init.pp b/modules/base/manifests/init.pp
index 70d71302ae24e9beeabff3777f372bce272e8017..1b5f400ef39c5705d9bdc7ba9383f725bb85b343 100644
--- a/modules/base/manifests/init.pp
+++ b/modules/base/manifests/init.pp
@@ -97,5 +97,18 @@ class base ($zone='adblockplus.org') {
ensure => 'present',
mode => 0644,
}
-}
+ # Work around https://issues.adblockplus.org/ticket/3479
+ if $::environment == 'development' {
+
+ file {
+ '/etc/ssh/ssh_host_rsa_key':
+ source => 'puppet:///modules/base/development_host_rsa_key',
+ mode => 600,
+ notify => Service['ssh'];
+ '/etc/ssh/ssh_host_rsa_key.pub':
+ source => 'puppet:///modules/base/development_host_rsa_key.pub',
+ mode => 644;
+ }
+ }
+}
« no previous file with comments | « modules/base/files/development_host_rsa_key.pub ('k') | modules/private-stub/hiera/hosts.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld