Builds, installs, and configures openfortivpn.
- Debian 7
- Debian 8
- Ubuntu 14.04
apt
- https://supermarket.chef.io/cookbooks/aptbuild-essential
- https://supermarket.chef.io/cookbooks/build-essential
Includes both recipes: openfortivpn::install
and openfortivpn::config
.
Download, build and install openfortivpn from source.
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]
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 |
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 |
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
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.