Skip to content

sliim-cookbooks/openfortivpn

Repository files navigation

openfortivpn Cookbook | Cookbook Version Build Status

Builds, installs, and configures openfortivpn.

Requirements

Platforms

  • Debian 7
  • Debian 8
  • Ubuntu 14.04

Cookbooks

Usage

openfortivpn::default

Includes both recipes: openfortivpn::install and openfortivpn::config.

openfortivpn::install

Download, build and install openfortivpn from source.

openfortivpn::config

Setup /etc/openfortivpn/config configuration file.

Configuration can be specified with attributes (see below) or data bags. Recommended way is to create a data bag named openfortivpn and create an encrypted data bag object config:

{
    "id": "config",
    "host": "SERVER_HOST",
    "port": "SERVER_PORT",
    "username": "YOUR_USERNAME",
    "password": "YOUR_PASSWORD",
    "trusted-cert": "YOUR_CERT"
}

The ID of this data bag object can be changed with node[openfortivpn][config][data_bag_name]

Attributes

openfortivpn::install

Key Type Description Default
['openfortivpn']['install']['version'] String Version to install v1.0.1
['openfortivpn']['install']['build_dir'] String Path to build directory /opt/openfortivpn

openfortivpn::config

Key Type Description Default
['openfortivpn']['config']['data_bag_name'] String Use this data bag instead of attributes config
['openfortivpn']['config']['host'] String Host of the VPN gateway vpn-gateway
['openfortivpn']['config']['port'] Integer Port where VPN is reachable 8443
['openfortivpn']['config']['username'] String Username for authentication foo
['openfortivpn']['config']['password'] String Password for authentication
['openfortivpn']['config']['trusted-cert'] String Trusted certificate e46d4aff08ba6914e64daa85bc6112a422fa7ce16631bff0b592a28556f993db

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Authors: Sliim sliim@mailoo.org

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.