Skip to content

alexjfisher/puppet-spiped

 
 

Repository files navigation

puppet-spiped

License Build Status Puppet Forge Puppet Forge - downloads Puppet Forge - scores

Puppet module for configuring spiped tunnels.

Requirements

  • Debian >= 8 / Ubuntu >= 16.04 or similar systems that provide an spiped package.
  • systemd as init

RedHat systems

This module can also work with RedHat systems, but you are responsible for providing the spiped package.

Either use the package_source parameter, or make sure your system has a repository setup that includes the spiped package.

eg.

class { 'spiped':
  package_source => '/path/to/spiped.rpm',
}

or

yumrepo { 'spiped':
  baseurl => 'http://repos.example.com/spiped',
  descr   => 'Internal spiped package repo',
  enabled => true,
  before  => Class['spiped'],
}

Usage

For example, let's say we have a host redis-host which hosts a Redis database. Many clients will connect to it.

On redis-host, we would define a server tunnel:

spiped::tunnel::server { 'redis':
  source_host        => '0.0.0.0',
  source_port        => 1234,
  target_socket_file => '/var/run/redis.sock',
  secret             => 'hunter2',
}

On clients, we would define a client tunnel:

spiped::tunnel::client { 'redis':
  source_socket_file => '/var/run/redis.sock',
  target_host        => 'redis-host'
  target_port        => 1234',
  secret             => 'hunter2',
}

The secret is an arbitrarily-long shared symmetric key. The options above are the only supported; this module is kept as simple as possible.

About

spiped Puppet module

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 78.1%
  • Puppet 19.7%
  • Dockerfile 2.0%
  • Makefile 0.2%