cookbook 'openswan', '~> 0.3.2'
openswan (1) Versions 0.3.2 Follow1
Installs/Configures openswan
cookbook 'openswan', '~> 0.3.2', :supermarket
knife supermarket install openswan
knife supermarket download openswan
openswan
Install and configure openswan for per-user l2tp over ipsec vpn access.
Requirements
Currently tested only on Ubuntu 12, and expects a 'users' databag, with user records formatted like this:
{ "groups":["sysadmin", "vpn"], "comment":"Jane Doe", "username":"jane", "id":"jane", ... "vpn_password":"someverysecurepassword" }
In order to remove user record without deleting the data bag, add a key to the databag as follows:
{ "groups":["sysadmin", "vpn"], "comment":"Jane Doe", "username":"jane", "id":"jane", ... "vpn_password":"someverysecurepassword", "action": "remove" }
This follows a precedent set in the users
cookbook maintained by Opscode.
Attributes
Default attributes should be overwritten to match your role or environment needs.
default['openswan']['ppp_link_network'] = "10.55.55.0"
default['openswan']['preshared_key'] = "letmein"
default['openswan']['private_virtual_interface_ip'] = "10.55.55.4"
default['openswan']['private_ip'] = `ifconfig eth1 | grep "inet addr" | awk 'BEGIN{FS=":"}{print $2}' | awk '{print $1}'`.strip
default['openswan']['private_ip_range'] = "10.55.55.5-10.55.55.100"
default['openswan']['xl2tpd_path'] = "/etc/xl2tpd"
default['openswan']['ppp_path'] = "/etc/ppp"
Dependent cookbooks
ipaddr_extensions >= 0.3.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.3.2 passed this metric
Contributing File Metric
0.3.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.3.2 failed this metric
FC064: Ensure issues_url is set in metadata: openswan/metadata.rb:1
FC065: Ensure source_url is set in metadata: openswan/metadata.rb:1
FC066: Ensure chef_version is set in metadata: openswan/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: openswan/metadata.rb:1
FC069: Ensure standardized license defined in metadata: openswan/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.3.2 passed this metric
Testing File Metric
0.3.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.3.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 include a tag that matches this cookbook version number
0.3.2 passed this metric
0.3.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.3.2 failed this metric
FC064: Ensure issues_url is set in metadata: openswan/metadata.rb:1
FC065: Ensure source_url is set in metadata: openswan/metadata.rb:1
FC066: Ensure chef_version is set in metadata: openswan/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: openswan/metadata.rb:1
FC069: Ensure standardized license defined in metadata: openswan/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.3.2 passed this metric
Testing File Metric
0.3.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.3.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 include a tag that matches this cookbook version number
0.3.2 failed this metric
FC065: Ensure source_url is set in metadata: openswan/metadata.rb:1
FC066: Ensure chef_version is set in metadata: openswan/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: openswan/metadata.rb:1
FC069: Ensure standardized license defined in metadata: openswan/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.3.2 passed this metric
Testing File Metric
0.3.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.3.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 include a tag that matches this cookbook version number
0.3.2 failed this metric
0.3.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 include a tag that matches this cookbook version number