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

Unified Diff: modules/adblockplus/manifests/log/uplink.pp

Issue 29338680: Issue 3825 - Replace Logstash setup with Fluentd (Closed)
Patch Set: Created March 18, 2016, 6:12 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
Index: modules/adblockplus/manifests/log/uplink.pp
diff --git a/modules/adblockplus/manifests/log/uplink.pp b/modules/adblockplus/manifests/log/uplink.pp
deleted file mode 100644
index c6cbab0ca5053982d37f3afafea00b90a7065510..0000000000000000000000000000000000000000
--- a/modules/adblockplus/manifests/log/uplink.pp
+++ /dev/null
@@ -1,64 +0,0 @@
-# == Type: adblockplus::log::uplink
-#
-# Used internally by class adblockplus::log::master to establish an SSH
-# uplink for each known server, both identifying and authenticating the
-# client by examining its $ip addresses and $ssh_public_key, i.e.:
-#
-# # write into master:/var/adblockplus/log/uplink/$HOSTNAME/$@
-# client# ssh -i /etc/ssh/ssh_host_rsa_key log@master $@ < log.1.gz
-#
-# Note the uplink itself being just an SSH layer for upstream I/O, meant
-# to become integrated as a client's post rotation command or similar.
-#
-# === Parameters:
-#
-# Identical to base::explicit_host_records.
-#
-# === Examples:
-#
-# adblockplus::log::uplink {'example':
-# ip => ['10.8.0.1'],
-# ssh_authorized_key => 'AAA...',
-# }
-#
-define adblockplus::log::uplink (
- $ip,
- $ssh_public_key = undef,
- $role = undef,
- $dns = undef,
- $groups = undef,
-) {
-
- include adblockplus::log::master
-
- $import_command = shellquote([
- $adblockplus::log::master::import_script,
- '--source', $dns ? {undef => $name, default => $dns},
- '--target', $adblockplus::log::master::uplink_directory,
- ])
-
- $source_address_pattern = is_array($ip) ? {
- true => join($ip, ','),
- default => $ip,
- }
-
- ssh_authorized_key {"adblockplus::log::uplink#$name":
- ensure => $ssh_public_key ? {
- undef => 'absent',
- default => 'present',
- },
- key => $ssh_public_key,
- name => $name,
- options => [
- "command=\"$import_command -- \$SSH_ORIGINAL_COMMAND\"",
- "from=\"$source_address_pattern\"",
- 'no-agent-forwarding',
- 'no-port-forwarding',
- 'no-pty',
- 'no-X11-forwarding',
- ],
- require => File[$adblockplus::log::master::uplink_directory],
- type => 'ssh-rsa',
- user => $adblockplus::log::user,
- }
-}
« no previous file with comments | « modules/adblockplus/manifests/log/rotation.pp ('k') | modules/adblockplus/templates/log/fluentd/master.conf.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld