Forge Home

rancher

Installs Rancher Server and Agents

22,231 downloads

20,912 latest version

4.5 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.2.0 (latest)
  • 0.1.0
released Jun 10th 2016
This version is compatible with:
  • , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'puppetlabs-rancher', '0.2.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add puppetlabs-rancher
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install puppetlabs-rancher --version 0.2.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

puppetlabs/rancher — version 0.2.0 Jun 10th 2016

Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with rancher
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how

Overview

A module to install the Rancher server and accompanying agents on supported operating systems.

Module Description

Rancher is a complete platform for running containers. Rancher supports both Kubernetes and Docker Swarm, making it simple to run any containerized application on any infrastructure. With this Puppet module you can easily setup Rancher on your own Puppet managed hosts.

Setup

The module requires Docker to be running on the hosts. For this you can use the Puppet Docker module or any other means. If using the docker module this is as simple as:

class { 'docker': }

Usage

First you are likely to want to install a new rancher server. This is as simple as:

class { 'rancher::server': }

It is also possible to specify a custom port for the server to run on:

class { 'rancher::server':
  port => 9090,
}

Once the server is up and running and you can retrieve a registration token (from the web interface or from the API) you can bootstrap Rancher agents.

class { 'rancher':
  registration_url => 'http://127.0.0.1:8080/v1/scripts/DB121CFBA836F9493653:1434085200000:2ZOwUMd6fIzz44efikGhBP1veo',
}

The class will use the ipaddress from facter ipaddress to register the agent, if this is not correct you can override it like so:

class { 'rancher':
  registration_url => 'http://127.0.0.1:8080/v1/scripts/DB121CFBA836F9493653:1434085200000:2ZOwUMd6fIzz44efikGhBP1veo',
  agent_address    => $::ipaddress_eth1,
}

Reference

Full API reference documentation is available as generated by Puppet Strings.

Maintainers

This module is maintained by: Gareth Rushgrove gareth@puppet.com