Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skoef/puppet-jails
A Puppet module for managing FreeBSD Jails.
https://github.com/skoef/puppet-jails
Last synced: about 1 month ago
JSON representation
A Puppet module for managing FreeBSD Jails.
- Host: GitHub
- URL: https://github.com/skoef/puppet-jails
- Owner: skoef
- Created: 2014-08-01T12:32:21.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-02T09:06:23.000Z (almost 10 years ago)
- Last Synced: 2024-10-30T17:12:44.370Z (about 2 months ago)
- Language: Puppet
- Size: 138 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Puppet-jails
Manage FreeBSD Jails with puppet.
## Simple implementation
All parameters from [jail(8)](http://www.freebsd.org/cgi/man.cgi?query=jail&sektion=8) are applicable to either the class defaults or to any jail.
```Puppet
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:
```YAML
jails::jails:
webserver0:
path: '/jails/webserver0'
ip4_addr: '192.168.0.5'
host_hostname: 'webserver0.example.org'
```