cookbook 'bastion', '= 0.1.0'
The bastion cookbook has been deprecated
Author provided reason for deprecation:
The bastion cookbook has been deprecated and is no longer being maintained by its authors. Use of the bastion cookbook is no longer recommended.
bastion (15) Versions 0.1.0 Follow1
Configures a node to be a bastion host
cookbook 'bastion', '= 0.1.0', :supermarket
knife supermarket install bastion
knife supermarket download bastion
Bastion Cookbook
A Chef cookbook for configuring a server to be used as a bastion host for
remote access to and administration of an otherwise walled-off network.
Requirements
This cookbook is written to hopefully work on, or be expandable to, other
distros, but is currently only tested against Ubuntu Linux.
Some of the dependencies are pinned to older versions in order to maintain
compatibility--for now--with Chef 11.
Usage
Override any included attributes as needed and add bastion
to your run_list.
Recipes
default
Refreshes the APT cache and configures the firewall and remote desktop (below).
firewall
If the firewall enabled attribute is set to true (the default), enables the
system firewall and pokes holes in it for SSH (port 22) from an
attribute-specified set of trusted networks.
If the firewall is not set to enabled, it disables it.
remote_desktop
Installs X2go, Google Chrome, and Firefox.
Attributes
default
default['bastion']['firewall']['enabled'] = true
Whether or not the system firewall should be enabled. This can be overridden to
false if, for example, port access is instead being handled solely in your
cloud provider's security configuration.
default['bastion']['firewall']['trusted_networks'] = %w(
10.0.0.0/8
172.16.0.0/12
192.168.0.0/16
)
The set of CIDR ranges to allow access from in the system firewall.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Add tests for the new feature; ensure they pass (
rake
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
License & Authors
- Author: Jonathan Hartman jonathan.hartman@socrata.com
Copyright 2015 Socrata, Inc.
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.
Dependent cookbooks
apt ~> 2.0 |
firewall ~> 1.1.0 |
x2go-server ~> 0.1 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Bastion Cookbook CHANGELOG
v0.1.0 (2015-09-16)
- Initial release; Ubuntu only
v0.0.1 (2015-09-04)
- Development started
Foodcritic Metric
0.1.0 failed this metric
FC031: Cookbook without metadata file: /tmp/cook/f17e445cdfb6fdc15dc14951/bastion/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/f17e445cdfb6fdc15dc14951/bastion/metadata.rb:1
0.1.0 failed this metric
FC045: Consider setting cookbook name in metadata: /tmp/cook/f17e445cdfb6fdc15dc14951/bastion/metadata.rb:1