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.2.2

Install and configure OpenVPN

Policyfile
Berkshelf
Knife
cookbook 'vpn', '= 0.2.2', :supermarket
cookbook 'vpn', '= 0.2.2'
knife supermarket install vpn
knife supermarket download vpn
README
Dependencies
Changelog
Quality 33%

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.1.1
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.2.2] - 2019-04-13

Fixed

  • Fixed a bug during subsequent Chef client runs.

[0.2.1] - 2019-04-12

[0.0.1] - 2018-11-26

Create the cookbook.

Collaborator Number Metric
            

0.2.2 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.2.2 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.2.2 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 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.2.2 passed this metric

Testing File Metric
            

0.2.2 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.2.2 passed this metric