cbsd

Manage FreeBSD CBSD with Puppet
Oleg Ginzburg

Oleg Ginzburg

olevole

7,114 downloads

3,120 latest version

3.1 quality score

Version information

  • 0.1.4 (latest)
  • 0.1.3
  • 0.1.1
  • 0.1.0
released Jul 3rd 2019
This version is compatible with:
  • FreeBSD

Start using this module

Documentation

olevole/cbsd — version 0.1.4 Jul 3rd 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