openvpn_configurator 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d4ac3518fb8ea05456d4ff13ec75b6ef7d1c0f410d3bca5c3d1cd69c0c705f13
4
+ data.tar.gz: 741ee34b86caa1512764ac0b59904c8979e6cf24f332cc60dccd10f8401a6490
5
+ SHA512:
6
+ metadata.gz: 8f790bdf276a3818427a353840cd3f1f3a108e2bfe0c32d62a22504db4db1fde2964d9774013e96b4027408eaa0c3d70fa9670146cc959845ae8fd3b65f779a0
7
+ data.tar.gz: 5280b15c9c3d8e54d8f1113f7299f4de2f0fcf0da924544540c637ff67da239d13141408e06ee87c0629bd8831e461d72c4d7456b4fa531fa052be9a0145b760
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.idea/
3
+ /.yardoc
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.5.1
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.5.1
6
+ before_install: gem install bundler -v 2.1.4
data/CHANGELOG.md ADDED
@@ -0,0 +1,11 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [1.0.0] - 2020-04-28
8
+
9
+ ### Added
10
+
11
+ - Initial public release.
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at aarontc@aarontc.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ gem 'rake', '~> 12.0'
6
+ gem 'minitest', '~> 5.0'
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Aaron Ten Clay
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # OpenVPN Configurator
2
+
3
+ Generating OpenVPN configurations with dynamic elements is hard. Computers are good at keeping track of many details that humans can easily overlook. This tool aims to assist with
4
+ the mundane details of managing routes based on DNS names and AWS IP ranges.
5
+
6
+ Additionally, whenever a generated OpenVPN config changes, the service can be automatically restarted so clients get new configurations immediately.
7
+
8
+ To reduce spurious restarts of services, all dynamic directives are sorted lexicographically before appending to the static template.
9
+
10
+ ## Installation
11
+
12
+ Use RubyGems to install with:
13
+
14
+ $ gem install openvpn_configurator
15
+
16
+ ## Usage
17
+
18
+ Create an OpenVPN configuration file with any static details as desired. Then use this tool to append some dynamic data, resulting in a final output file
19
+
20
+ Here's an example invocation which adds routes for an entire IPv4 AWS region, and IPv4(s) for a DNS name. If the output file changes, the systemd service
21
+ `openvpn-server@myvpn.service` will be restarted:
22
+
23
+ # openvpn_configurator \
24
+ --route-v4-aws-region=us-west-2 \
25
+ --route-v4-dns=my.elb.name \
26
+ --restart-systemd=openvpn-server@myvpn.service \
27
+ /etc/openvpn/server/myvpn.template.conf \
28
+ /etc/openvpn/server/myvpn.conf
29
+
30
+
31
+ ## Contributing
32
+
33
+ Bug reports and pull requests are welcome on GitHub at https://github.com/aarontc/openvpn-configurator. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/aarontc/OpenVPNRouteConfigurator/blob/master/CODE_OF_CONDUCT.md).
34
+
35
+ ## License
36
+
37
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
38
+
39
+ ## Code of Conduct
40
+
41
+ Everyone interacting in the OpenVPN Configurator project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/aarontc/OpenVPNRouteConfigurator/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+ require 'bundler/gem_tasks'
3
+ require 'rake/testtask'
4
+
5
+ Rake::TestTask.new(:test) do |t|
6
+ t.libs << 'test'
7
+ t.libs << 'lib'
8
+ t.test_files = FileList['test/**/*_test.rb']
9
+ end
10
+
11
+ task :default => :test
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "open_vpn_route_configurator"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative '../lib/openvpn_configurator/cli'
3
+
4
+ OpenVPNConfigurator::CLI.new.invoke ARGV
@@ -0,0 +1,94 @@
1
+ # frozen_string_literal: true
2
+ require 'json'
3
+ require 'optimist'
4
+ require 'semantic_logger'
5
+
6
+ require_relative 'route_gatherer'
7
+ require_relative 'version'
8
+
9
+
10
+ module OpenVPNConfigurator
11
+ class CLI
12
+ include SemanticLogger::Loggable
13
+
14
+ AWS_IP_RANGES_URL = 'https://ip-ranges.amazonaws.com/ip-ranges.json'.freeze
15
+
16
+
17
+ def initialize
18
+ setup_logger
19
+ end
20
+
21
+
22
+ # Expects to be invoked with <input path>, <output path>
23
+ def invoke(arguments)
24
+ options = parse_arguments arguments.dup
25
+ logger.debug "Beginning CLI invocation run", options: options
26
+
27
+ RouteGatherer.new.extend_template options
28
+ end
29
+
30
+
31
+ private
32
+
33
+
34
+ def parse_arguments(original_arguments)
35
+ arguments = original_arguments.dup
36
+ logger.trace "Beginning command-line argument parsing", arguments: arguments
37
+ options = Optimist.options(arguments) do
38
+ synopsis 'Fetches IP block information from AWS and generates an OpenVPN configuration file'
39
+ version "openvpn_configurator #{VERSION}"
40
+ banner self.version
41
+ banner self.synopsis
42
+ banner "Usage: #{$0} [options] <input-path> <output-path>"
43
+ banner 'Dynamic route collection options'
44
+ opt :route_v4_aws_region, "Add IPv4 routes for an AWS region (like 'us-west-2')", type: :string, multi: true
45
+ opt :route_v4_dns, 'Add IPv4 routes for A record(s) returned by the specified DNS query', type: :string, multi: true
46
+ banner 'Actions'
47
+ opt :restart_systemd, 'Restart the specified systemd service when the generated configuration changes (including the first time we run)', type: :string, multi: true
48
+ end
49
+ if arguments.length != 2
50
+ Optimist.die 'Must specify input and output file paths', -2
51
+ end
52
+ options[:input_path] = arguments[0]
53
+ options[:output_path] = arguments[1]
54
+ options
55
+ end
56
+
57
+
58
+ def setup_logger
59
+ # Reset the logger so we can reconfigure it if it was configured before.
60
+ ::SemanticLogger.flush
61
+ ::SemanticLogger.close unless ::SemanticLogger.appenders.empty?
62
+
63
+ # Do setup
64
+ ::SemanticLogger.application = 'openvpn-configurator'
65
+ ::SemanticLogger.default_level = ENV.fetch('LOG_LEVEL', 'info').downcase.to_sym
66
+
67
+ # Don't colorize output in lambda contexts
68
+ formatter_options = ENV.has_key?('AWS_EXECUTION_ENV') ? {} : { formatter: :color }
69
+
70
+ if ENV.has_key?('LOG_FILE_PATH') && ENV['LOG_FILE_PATH'] != '-'
71
+ puts "INFO: Logging to file at #{ENV['LOG_FILE_PATH'].inspect}."
72
+ ::SemanticLogger.add_appender file_name: ENV['LOG_FILE_PATH'], **formatter_options
73
+ end
74
+
75
+ if ENV['LOG_FILE_PATH'] == '-' || $stdout.tty? || ENV['LOG_TO_STDOUT'] == 'true'
76
+ puts "INFO: Logging to stdout."
77
+ ::SemanticLogger.add_appender io: $stdout, **formatter_options
78
+ else
79
+ puts "INFO: stdout is not a TTY, and LOG_TO_STDOUT is not true. No logs will be sent to stdout."
80
+ end
81
+
82
+ if ENV.has_key? 'GRAYLOG_URL'
83
+ puts "INFO: Logging to Graylog at #{ENV['GRAYLOG_URL'].inspect}."
84
+ ::SemanticLogger.add_appender appender: :graylog, url: ENV['GRAYLOG_URL']
85
+ end
86
+
87
+ if ENV.has_key? 'STATSD_URL'
88
+ logger.info "Sending metrics to Statsd at #{ENV['STATSD_URL'].inspect}."
89
+ subscriber = ::SemanticLogger::Metrics::Statsd.new url: ENV['STATSD_URL']
90
+ ::SemanticLogger.on_metric subscriber
91
+ end
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,122 @@
1
+ # frozen_string_literal: true
2
+ require 'json'
3
+ require 'netaddr'
4
+ require 'optimist'
5
+ require 'resolv'
6
+ require 'rest_client'
7
+ require 'semantic_logger'
8
+
9
+ module OpenVPNConfigurator
10
+ class RouteGatherer
11
+ include SemanticLogger::Loggable
12
+
13
+ AWS_IP_RANGES_URL = 'https://ip-ranges.amazonaws.com/ip-ranges.json'.freeze
14
+
15
+
16
+ def extend_template(options)
17
+ template = read_file options[:input_path]
18
+ old_output = read_file options[:output_path], nonexistent_behavior: :empty_string
19
+
20
+ routes = gather_routes options
21
+ rendered = render_routes routes
22
+
23
+ result = format "%s\n\n\n# Added by OpenVPN Configurator v%s\n%s", template, VERSION, rendered
24
+ if result != old_output
25
+ logger.info "Output content changed, rewriting file #{options[:output_path].inspect}"
26
+ write_file options[:output_path], result
27
+ change_actions options
28
+ else
29
+ logger.info 'Output content unchanged, no actions taken.'
30
+ end
31
+ end
32
+
33
+
34
+ private
35
+
36
+
37
+ def aws_ip_ranges
38
+ @aws_ip_ranges ||= begin
39
+ logger.trace "Fetching AWS IP ranges from #{AWS_IP_RANGES_URL.inspect}"
40
+ data = RestClient.get AWS_IP_RANGES_URL
41
+ JSON.parse data, symbolize_names: true
42
+ end
43
+ end
44
+
45
+
46
+ def change_actions(options)
47
+ options[:restart_systemd].each { |service| restart_systemd service }
48
+ end
49
+
50
+
51
+ # @return [Hash<String, Array<NetAddr::IPv4Net, NetAddr::IPv6Net>]
52
+ def gather_routes(options)
53
+ result = {}
54
+ options[:route_v4_aws_region].each { |region| result.merge! gather_v4_aws_region(region) }
55
+ options[:route_v4_dns].each { |name| result.merge! gather_v4_dns(name) }
56
+ result
57
+ end
58
+
59
+
60
+ def gather_v4_aws_region(region)
61
+ networks = aws_ip_ranges[:prefixes].select { |p| p[:region] == region }
62
+ routes = networks.map { |p| NetAddr.parse_net p[:ip_prefix] }
63
+ {
64
+ "route-v4-aws-region=#{region}" => routes
65
+ }
66
+ end
67
+
68
+
69
+ def gather_v4_dns(name)
70
+ {
71
+ "route-v4-dns=#{name}" => resolve_v4(name).map { |a| NetAddr.parse_net "#{a}/32" }
72
+ }
73
+ end
74
+
75
+
76
+ def read_file(path, nonexistent_behavior: :raise)
77
+ File.read path
78
+ rescue Errno::ENOENT => e
79
+ case nonexistent_behavior
80
+ when :empty_string
81
+ ''
82
+ else
83
+ logger.error "Error reading file #{path.inspect}", e
84
+ raise
85
+ end
86
+ end
87
+
88
+
89
+ # For tests, this method is stubbable
90
+ # @return [Array<NetAddr::IPv4, NetAddr::IPv6>]
91
+ def resolve_v4(name)
92
+ logger.trace "Performing DNS lookup for hostname #{name.inspect}"
93
+ Resolv.getaddresses(name).map { |a| NetAddr.parse_ip a }.select { |a| a.is_a? NetAddr::IPv4 }
94
+ end
95
+
96
+
97
+ def restart_systemd(service_name)
98
+ logger.info "Restarting systemd service #{service_name.inspect}"
99
+ system 'systemctl', 'restart', service_name
100
+ end
101
+
102
+
103
+ def write_file(path, contents)
104
+ File.write path, contents
105
+ end
106
+
107
+
108
+ # @param routes [Hash<String, Array<NetAddr::IPv4Net, NetAddr::IPv6Net>>] { "Configuration Source Name" => [NetAddr::IPv4Net, NetAddr::IPv6Net] }
109
+ def render_routes(routes)
110
+ result = []
111
+ routes.keys.sort.each do |source|
112
+ result << "##{source}"
113
+ routes[source].map(&:to_s).sort.each do |route|
114
+ # raise "Only supporting IPv4 and IPv6 networks presently, got #{route.inspect} instead" unless [NetAddr::IPv4Net, NetAddr::IPv6Net].include?(route.class)
115
+ result << format("push\t\t\t\"route %s\"", route)
116
+ end
117
+ result << ''
118
+ end
119
+ result.join "\n"
120
+ end
121
+ end
122
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module OpenVPNConfigurator
4
+ VERSION = '1.0.0'
5
+ end
@@ -0,0 +1,2 @@
1
+ # frozen_string_literal: true
2
+ require_relative 'openvpn_configurator/version'
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+ require_relative 'lib/openvpn_configurator/version'
3
+
4
+ Gem::Specification.new do |spec|
5
+ spec.name = 'openvpn_configurator'
6
+ spec.version = OpenVPNConfigurator::VERSION
7
+ spec.authors = ['Aaron Ten Clay']
8
+ spec.email = ['rubygems+openvpn_configurator@aarontc.com']
9
+
10
+ spec.summary = %q{Assists in generating OpenVPN configurations.}
11
+ spec.homepage = 'https://github.com/aarontc/openvpn-configurator'
12
+ spec.license = 'MIT'
13
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
14
+
15
+ spec.metadata['homepage_uri'] = spec.homepage
16
+ spec.metadata['source_code_uri'] = 'https://github.com/aarontc/openvpn-configurator'
17
+ spec.metadata['changelog_uri'] = 'https://github.com/aarontc/openvpn-configurator/blob/master/CHANGELOG.md'
18
+
19
+ # Specify which files should be added to the gem when it is released.
20
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
21
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
22
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23
+ end
24
+ spec.bindir = 'exe'
25
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
+ spec.require_paths = ['lib']
27
+
28
+ spec.add_dependency 'gelf', '~> 3.1.0'
29
+ spec.add_dependency 'json', '~> 2.3.0'
30
+ spec.add_dependency 'netaddr', '~> 2.0.4'
31
+ spec.add_dependency 'optimist', '~> 3.0.1'
32
+ spec.add_dependency 'rest-client', '~> 2.1.0'
33
+ spec.add_dependency 'semantic_logger', '~> 3.4.1'
34
+ spec.add_dependency 'statsd-ruby', '~> 1.4.0'
35
+
36
+ spec.add_development_dependency 'awesome_print', '~> 1.8.0'
37
+ spec.add_development_dependency 'hashdiff', '~> 1.0.1'
38
+ spec.add_development_dependency 'minitest', '~> 5.14.0'
39
+ spec.add_development_dependency 'minitest-reporters', '~> 1.4.2'
40
+ spec.add_development_dependency 'rr', '~> 1.2.1'
41
+ spec.add_development_dependency 'timecop', '~> 0.9.0'
42
+ end
metadata ADDED
@@ -0,0 +1,247 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: openvpn_configurator
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Aaron Ten Clay
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-04-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: gelf
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 3.1.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 3.1.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: json
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 2.3.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 2.3.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: netaddr
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 2.0.4
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 2.0.4
55
+ - !ruby/object:Gem::Dependency
56
+ name: optimist
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 3.0.1
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 3.0.1
69
+ - !ruby/object:Gem::Dependency
70
+ name: rest-client
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 2.1.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 2.1.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: semantic_logger
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 3.4.1
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 3.4.1
97
+ - !ruby/object:Gem::Dependency
98
+ name: statsd-ruby
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 1.4.0
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 1.4.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: awesome_print
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 1.8.0
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 1.8.0
125
+ - !ruby/object:Gem::Dependency
126
+ name: hashdiff
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 1.0.1
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 1.0.1
139
+ - !ruby/object:Gem::Dependency
140
+ name: minitest
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 5.14.0
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 5.14.0
153
+ - !ruby/object:Gem::Dependency
154
+ name: minitest-reporters
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 1.4.2
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 1.4.2
167
+ - !ruby/object:Gem::Dependency
168
+ name: rr
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: 1.2.1
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: 1.2.1
181
+ - !ruby/object:Gem::Dependency
182
+ name: timecop
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: 0.9.0
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: 0.9.0
195
+ description:
196
+ email:
197
+ - rubygems+openvpn_configurator@aarontc.com
198
+ executables:
199
+ - openvpn_configurator
200
+ extensions: []
201
+ extra_rdoc_files: []
202
+ files:
203
+ - ".gitignore"
204
+ - ".ruby-version"
205
+ - ".travis.yml"
206
+ - CHANGELOG.md
207
+ - CODE_OF_CONDUCT.md
208
+ - Gemfile
209
+ - LICENSE.txt
210
+ - README.md
211
+ - Rakefile
212
+ - bin/console
213
+ - bin/setup
214
+ - exe/openvpn_configurator
215
+ - lib/openvpn_configurator.rb
216
+ - lib/openvpn_configurator/cli.rb
217
+ - lib/openvpn_configurator/route_gatherer.rb
218
+ - lib/openvpn_configurator/version.rb
219
+ - openvpn_configurator.gemspec
220
+ homepage: https://github.com/aarontc/openvpn-configurator
221
+ licenses:
222
+ - MIT
223
+ metadata:
224
+ homepage_uri: https://github.com/aarontc/openvpn-configurator
225
+ source_code_uri: https://github.com/aarontc/openvpn-configurator
226
+ changelog_uri: https://github.com/aarontc/openvpn-configurator/blob/master/CHANGELOG.md
227
+ post_install_message:
228
+ rdoc_options: []
229
+ require_paths:
230
+ - lib
231
+ required_ruby_version: !ruby/object:Gem::Requirement
232
+ requirements:
233
+ - - ">="
234
+ - !ruby/object:Gem::Version
235
+ version: 2.3.0
236
+ required_rubygems_version: !ruby/object:Gem::Requirement
237
+ requirements:
238
+ - - ">="
239
+ - !ruby/object:Gem::Version
240
+ version: '0'
241
+ requirements: []
242
+ rubyforge_project:
243
+ rubygems_version: 2.7.6
244
+ signing_key:
245
+ specification_version: 4
246
+ summary: Assists in generating OpenVPN configurations.
247
+ test_files: []