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

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

Issue 29336590: Issue 3638 - Introduce class adblockplus::host (Closed)
Patch Set: Created Feb. 18, 2016, 3:09 p.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/adblockplus/manifests/init.pp ('k') | no next file » | 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 2f6c1ddf286427ea82dc1448f76717cc7698a6a4..22efd6227c37f23695c4d3c883c93cd41563c463 100644
--- a/modules/base/manifests/init.pp
+++ b/modules/base/manifests/init.pp
@@ -45,9 +45,6 @@ class base ($zone='adblockplus.org') {
stage => 'post'
}
- $servers = hiera('servers')
- create_resources(base::explicit_host_record, $servers)
-
define explicit_host_record(
$ip,
$ssh_public_key = undef,
@@ -56,33 +53,14 @@ class base ($zone='adblockplus.org') {
$groups = undef,
) {
- if is_array($ip) {
- $internal_ip = $ip[0]
- } else {
- $internal_ip = $ip
- }
-
- $fqdn_name = join([$name, $base::zone], '.')
-
- host{$name:
- ensure => present,
- ip => $internal_ip,
- name => $fqdn_name,
- host_aliases => $dns ? {
- undef => [],
- default => $dns,
- }
- }
-
if $ssh_public_key != undef {
$name_key = $dns ? {
- undef => $fqdn_name,
+ undef => $name,
default => $dns,
}
- @sshkey {$name:
- name => $name_key,
+ @sshkey {$name_key:
key => $ssh_public_key,
type => ssh-rsa,
host_aliases => $ip,
« no previous file with comments | « modules/adblockplus/manifests/init.pp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld