Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

vpn (6) Versions 0.4.0

Install and configure OpenVPN

Policyfile
Berkshelf
Knife
cookbook 'vpn', '~> 0.4.0', :supermarket
cookbook 'vpn', '~> 0.4.0'
knife supermarket install vpn
knife supermarket download vpn
README
Dependencies
Changelog
Quality 17%

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 and bypass_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

[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