Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rubygems/rubygems-chef
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6421f2a7bd37
Choose a base ref
...
head repository: rubygems/rubygems-chef
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 629a9cffa3fe
Choose a head ref
  • 2 commits
  • 6 files changed
  • 1 contributor

Commits on Jun 30, 2014

  1. Copy the full SHA
    abe46a8 View commit details
  2. Copy the full SHA
    629a9cf View commit details
1 change: 1 addition & 0 deletions Berksfile
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@ cookbook 'rubygems-chef', path: 'cookbooks/rubygems-chef'
cookbook 'rubygems-ci', path: 'cookbooks/rubygems-ci'
cookbook 'rubygems-cloud-init', path: 'cookbooks/rubygems-cloud-init'
cookbook 'rubygems-database', path: 'cookbooks/rubygems-database'
cookbook 'rubygems-fail2ban', path: 'cookbooks/rubygems-fail2ban'
cookbook 'rubygems-hostname', path: 'cookbooks/rubygems-hostname'
cookbook 'rubygems-hosts', path: 'cookbooks/rubygems-hosts'
cookbook 'rubygems-logging', path: 'cookbooks/rubygems-logging'
10 changes: 9 additions & 1 deletion Berksfile.lock
Original file line number Diff line number Diff line change
@@ -41,6 +41,8 @@ DEPENDENCIES
path: cookbooks/rubygems-cloud-init
rubygems-database
path: cookbooks/rubygems-database
rubygems-fail2ban
path: cookbooks/rubygems-fail2ban
rubygems-hostname
path: cookbooks/rubygems-hostname
rubygems-hosts
@@ -118,6 +120,9 @@ GRAPH
yum (~> 3.0)
yum-epel (>= 0.0.0)
yum-erlang_solutions (>= 0.0.0)
fail2ban (2.1.2)
yum (~> 3.0)
yum-epel (>= 0.0.0)
git (4.0.2)
build-essential (>= 0.0.0)
dmg (>= 0.0.0)
@@ -207,10 +212,11 @@ GRAPH
chef-vault (>= 0.0.0)
nginx (>= 0.0.0)
rubygems (>= 0.0.0)
rubygems-bastion (0.0.7)
rubygems-bastion (0.0.9)
chef-vault (>= 0.0.0)
duo-security (>= 0.0.0)
rubygems (>= 0.0.0)
rubygems-fail2ban (>= 0.0.0)
rubygems-ruby (>= 0.0.0)
rubygems-cache (0.0.1)
memcached (>= 0.0.0)
@@ -228,6 +234,8 @@ GRAPH
database (>= 0.0.0)
postgresql (>= 0.0.0)
rubygems (>= 0.0.0)
rubygems-fail2ban (0.0.2)
fail2ban (>= 0.0.0)
rubygems-hostname (0.1.4)
chef-vault (>= 0.0.0)
dwradcliffe-dnsimple (>= 0.0.0)
3 changes: 2 additions & 1 deletion cookbooks/rubygems-bastion/metadata.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name 'rubygems-bastion'
maintainer 'RubyGems.org ops team'

version '0.0.7'
version '0.0.9'

depends 'chef-vault'
depends 'duo-security'
depends 'rubygems'
depends 'rubygems-fail2ban'
depends 'rubygems-ruby'

supports 'ubuntu'
2 changes: 2 additions & 0 deletions cookbooks/rubygems-bastion/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -6,6 +6,8 @@
include_recipe 'chef-vault'
include_recipe 'rubygems'
include_recipe 'rubygems-ruby'
include_recipe 'rubygems-fail2ban'

package 'libpq-dev'

duo = chef_vault_item('duo', 'credentials')
8 changes: 8 additions & 0 deletions cookbooks/rubygems-fail2ban/metadata.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name 'rubygems-fail2ban'
maintainer 'RubyGems.org ops team'

version '0.0.2'

depends 'fail2ban'

supports 'ubuntu'
11 changes: 11 additions & 0 deletions cookbooks/rubygems-fail2ban/recipes/default.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
node.default['fail2ban']['services'] = {
'ssh' => {
"enabled" => "true",
"port" => "ssh",
"filter" => "sshd",
"logpath" => node['fail2ban']['auth_log'],
"maxretry" => "6"
}
}

include_recipe 'fail2ban'