Forge Home

jails

Manage FreeBSD Jails with puppet.

9,693 downloads

9,693 latest version

3.8 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.1.0 (latest)
released Aug 5th 2014

Start using this module

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

Add this module to your Puppetfile:

mod 'skoef-jails', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add skoef-jails
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install skoef-jails --version 0.1.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
Tags: freebsd, jails

Documentation

skoef/jails — version 0.1.0 Aug 5th 2014

Puppet-jails

Manage FreeBSD Jails with puppet.

Simple implementation

All parameters from jail(8) are applicable to either the class defaults or to any jail.


class { 'jails':
  defaults => {
    'interface'   => 'em0',
    'allow_mount' => true,
    'exec_start'  => '/bin/sh /etc/rc',
    'exec_stop'   => '/bin/sh /etc/rc.shutdown',
    'exec_clean'  => true,
    'mount_devfs' => true,
  }
}

jails::jail { 'webserver0':
  path          => '/jails/webserver0',
  ip4_addr      => '192.168.0.5',
  host_hostname => 'webserver0.example.org',
}

Jails can be easily managed from Hiera as well:

jails::jails:
  webserver0:
    path:          '/jails/webserver0'
    ip4_addr:      '192.168.0.5'
    host_hostname: 'webserver0.example.org'