A Chef cookbook to install and do basic configuration OpenVPN Access Server.
Includes support for:
- Company name via Chef attribute
- Logo, png format base64 encoded set as a Chef attribute -
openssl base64 < path/to/file.png | tr -d '\n' | pbcopy
- Automatic daily backup of database (optional)
- Restoration of backed up database on Chef run (optional)
- SSL Certificate via https://github.com/balanced-cookbooks/citadel
- IAM roles for storing secrets and backups in S3
Designed (very loosly) for use in AWS.
Attributes listed with their default values:
default['openvpnas']['url'] = 'http://swupdate.openvpn.org/as/openvpn-as-2.1.2-CentOS7.x86_64.rpm'
default['openvpnas']['dir'] = '/usr/local/openvpn_as/'
default['openvpnas']['company_name'] = ''
default['openvpnas']['logo'] = ''
default['openvpnas']['backup']['enabled'] = false
default['openvpnas']['backup']['bucket'] = ''
default['openvpnas']['ssl'] = false
default['citadel']['bucket'] = node['openvpnas']['backup']['bucket']
default['citadel']['bucket']
is the source for the SSL certificate and private key.
openvpnas::default
- recipe to install, configures and enables+runs.openvpnas::backup
- creates backup script and schedules it in the cron.openvpnas::restore
- restores from backup on convergence.
- File bug reports via GitHub issues.
- Pull requests are welcome.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
- Robert Coleman (github@robert.net.nz) - https://github.com/rjocoleman
- Alex Romanov (alex@romanov.ws) - https://github.com/netflash