cookbook 'vpn', '~> 0.4.0'
vpn (6) Versions 0.4.0 Follow0
Install and configure OpenVPN
cookbook 'vpn', '~> 0.4.0', :supermarket
knife supermarket install vpn
knife supermarket download vpn
vpn cookbook
Install and configure OpenVPN.
Usage
OpenVPN server
Install OpenVPN server packages, configure a Certification Authority and launch the service.
vpn_server 'lan' do fqdn 'vpn.acme.corp' user 'vagrant' group 'vagrant' certificate( country: 'RU', province: 'Samara', city: 'Samara', org: 'ACME Corp.', email: 'admin@acme.corp', ou: 'IT' ) port 1194 network '10.1.0.0/24' openvpn( proto: 'tcp', cipher: 'AES-128-CBC' ) action :setup end
In this particular case, the service name is openvpn@lan
.
OpenVPN client
Configure an OpenVPN client with a static IPv4 address.
vpn_client 'Alice VPN connection' do name 'alice' user 'vagrant' group 'vagrant' server 'lan' ipv4_address '10.1.0.3' action :create end
In this particular case *.ovpn
configuration files are stored in /etc/chef-vpn/client-config/lan/files
directory.
License
MIT © Alexander Pyatkin
Dependent cookbooks
line >= 2.5.0 |
firewall >= 2.7.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog
and this project adheres to Semantic Versioning.
[0.4.0] - 2020-07-04
Added
- Support Ubuntu 20.04.
[0.3.0] - 2020-01-02
Added
- Add
redirect_gateway
,bypass_dhcp
andbypass_dns
options.
[0.2.3] - 2019-04-19
Changed
- Update line cookbook dependency.
[0.2.2] - 2019-04-13
Fixed
- Fix a bug during subsequent Chef client runs.
[0.2.1] - 2019-04-12
Added
- Upload the first working version of the cookbook to Chef Supermarket.
[0.0.1] - 2018-11-26
Create the cookbook.
Collaborator Number Metric
0.4.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.4.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.4.0 failed this metric
FC066: Ensure chef_version is set in metadata: vpn/metadata.rb:1
FC108: Resource should not define a property named 'name': vpn/resources/client.rb:2
FC108: Resource should not define a property named 'name': vpn/resources/connect.rb:2
FC108: Resource should not define a property named 'name': vpn/resources/server.rb:2
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.4.0 passed this metric
Testing File Metric
0.4.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.4.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.4.0 failed this metric
0.4.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.4.0 failed this metric
FC066: Ensure chef_version is set in metadata: vpn/metadata.rb:1
FC108: Resource should not define a property named 'name': vpn/resources/client.rb:2
FC108: Resource should not define a property named 'name': vpn/resources/connect.rb:2
FC108: Resource should not define a property named 'name': vpn/resources/server.rb:2
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.4.0 passed this metric
Testing File Metric
0.4.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.4.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.4.0 failed this metric
FC108: Resource should not define a property named 'name': vpn/resources/client.rb:2
FC108: Resource should not define a property named 'name': vpn/resources/connect.rb:2
FC108: Resource should not define a property named 'name': vpn/resources/server.rb:2
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.4.0 passed this metric
Testing File Metric
0.4.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.4.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.4.0 failed this metric
0.4.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number