Forge Home

cbsd

Manage FreeBSD CBSD with Puppet

9,358 downloads

1,053 latest version

3.1 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.5 (latest)
  • 0.1.4
  • 0.1.3
  • 0.1.1
  • 0.1.0
released Jan 31st 2019
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 'olevole-cbsd', '0.1.4'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add olevole-cbsd
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install olevole-cbsd --version 0.1.4

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

olevole/cbsd — version 0.1.4 Jan 31st 2019

CBSD puppet

Table of Contents

  1. Module Description - What does the module do?
  2. Usage - Configuration options and additional functionality
  3. Limitations - OS compatibility, etc.
  4. Contributing - List of module contributors

Module description

The CBSD module allows you to manage CBSD on FreeBSD platform to create virtual environments ( jail, bhyve, XEN ) with Puppet.

CBSD is wrapper around FreeBSD jail bhyve and XEN. For more information please visit website https://bsdstore.ru/

Usage


class { 'cbsd':
    jnameserver => "8.8.8.8",
    nat_enable => '1',
}

# If you install cbsd manually: don't use pkg for
# installing CBSD:

class { 'cbsd':
    manage_repo => false,
    workdir => '/usr/jails',
}

# fetch specified base from the repo
class { "cbsd::freebsd_bases":
    ver => [ '12' ],
    stable => 1,
}

cbsd::jail { 'myjail0':
    pkg_bootstrap => '0',
    host_hostname => 'myjail0.my.domain',
}
cbsd::jail { 'myjail1':
    pkg_bootstrap => '0',
    host_hostname => 'myjail1.my.domain',
    ensure => 'absent',
    status => 'stopped'
}

Jails can be easily managed from Hiera as well:

cbsd::jails:
  myjail0:
    host_hostname: 'myjail0.my.domain'

Limitations

Works with FreeBSD 10+ and CBSD 11.0.0+

Currently only jail is supported by this module. Bhyve and XEN - work in progress.

Contributing

  • Fork it
  • Commit your changes (git commit -am 'Added some feature')
  • Push to the branch (git push)
  • Create new Pull Request