-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed some issues with group_rule and the default recipe
- Loading branch information
Showing
17 changed files
with
279 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ bin/* | |
.kitchen/ | ||
.kitchen.local.yml | ||
encrypted_data_bag_secret | ||
aws_keys.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
name 'fake' | ||
version '1.0.0' | ||
version '1.0.1' | ||
|
||
depends 'aws_security' | ||
depends 'aws_security' | ||
depends 'python' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# | ||
# Cookbook Name:: fake | ||
# Recipe:: test | ||
# Recipe:: test1 | ||
# | ||
# Author:: Greg Hellings (<[email protected]>) | ||
# | ||
# | ||
# Copyright 2014, SearchSpring, Inc. | ||
# Copyright 2014, B7 Interactive, LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -19,20 +19,37 @@ | |
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
include_recipe "aws_security::default" | ||
include_recipe "python" | ||
|
||
|
||
python_pip "awscli" | ||
|
||
directory "/root/.aws" do | ||
owner "root" | ||
group "root" | ||
mode "0755" | ||
action :create | ||
end | ||
|
||
template "/root/.aws/config" do | ||
source 'aws_config.erb' | ||
owner 'root' | ||
group 'root' | ||
variables({ | ||
:aws_access_key_id => node['aws_security']['aws_access_key_id'], | ||
:aws_secret_access_key => node['aws_security']['aws_secret_access_key'] | ||
}) | ||
end | ||
|
||
aws_security_group 'test' do | ||
description "test security group" | ||
# aws_access_key_id node['aws_security']['aws_access_key_id'] | ||
# aws_secret_access_key node['aws_security']['aws_secret_access_key'] | ||
region 'us-west-2' | ||
end | ||
|
||
aws_security_group_rule 'test rule 1' do | ||
description "test rule 1" | ||
aws_access_key_id node['aws_security']['aws_access_key_id'] | ||
aws_secret_access_key node['aws_security']['aws_secret_access_key'] | ||
cidr_ip "192.168.1.1/32" | ||
groupname "test" | ||
region 'us-west-2' | ||
|
@@ -41,8 +58,6 @@ | |
end | ||
|
||
aws_security_group_rule 'test rule 2' do | ||
aws_access_key_id node['aws_security']['aws_access_key_id'] | ||
aws_secret_access_key node['aws_security']['aws_secret_access_key'] | ||
cidr_ip "192.168.1.2/32" | ||
groupname "test" | ||
region 'us-west-2' | ||
|
@@ -51,8 +66,6 @@ | |
end | ||
|
||
aws_security_group_rule 'test rule 3' do | ||
aws_access_key_id node['aws_security']['aws_access_key_id'] | ||
aws_secret_access_key node['aws_security']['aws_secret_access_key'] | ||
cidr_ip "192.168.1.3/32" | ||
groupname "test" | ||
region 'us-west-2' | ||
|
@@ -61,17 +74,13 @@ | |
end | ||
|
||
aws_security_group_rule 'test rule 4' do | ||
aws_access_key_id node['aws_security']['aws_access_key_id'] | ||
aws_secret_access_key node['aws_security']['aws_secret_access_key'] | ||
cidr_ip "192.168.1.3/32" | ||
groupname "test" | ||
region 'us-west-2' | ||
ip_protocol '-1' | ||
end | ||
|
||
aws_security_group_rule 'test rule 5' do | ||
aws_access_key_id node['aws_security']['aws_access_key_id'] | ||
aws_secret_access_key node['aws_security']['aws_secret_access_key'] | ||
group "sg-9b1a8ffe" | ||
groupname "test" | ||
region 'us-west-2' | ||
|
@@ -80,8 +89,6 @@ | |
end | ||
|
||
aws_security_group_rule 'test rule 6' do | ||
aws_access_key_id node['aws_security']['aws_access_key_id'] | ||
aws_secret_access_key node['aws_security']['aws_secret_access_key'] | ||
group "sg-9b1a8ffe" | ||
groupname "test" | ||
region 'us-west-2' | ||
|
Oops, something went wrong.