-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #137 from ansible-lockdown/devel
Benchmark 1.7 and issue fixes
- Loading branch information
Showing
28 changed files
with
512 additions
and
468 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 |
---|---|---|
@@ -1,12 +1,20 @@ | ||
--- | ||
parseable: true | ||
quiet: true | ||
skip_list: | ||
- '204' | ||
- '305' | ||
- '303' | ||
- '403' | ||
- '306' | ||
- '602' | ||
- '208' | ||
- 'schema' | ||
- 'no-changed-when' | ||
- 'var-spacing' | ||
- 'fqcn-builtins' | ||
- 'experimental' | ||
- 'name[casing]' | ||
- 'name[template]' | ||
- '204' | ||
- '305' | ||
- '303' | ||
- '403' | ||
- '306' | ||
- '602' | ||
- '208' | ||
use_default_rules: true | ||
verbosity: 0 |
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,53 @@ | ||
resource "aws_vpc" "Main" { | ||
cidr_block = var.main_vpc_cidr | ||
tags = var.instance_tags | ||
instance_tenancy = "default" | ||
tags = { | ||
Environment = "${var.environment}" | ||
Name = "${var.namespace}-VPC" | ||
} | ||
} | ||
|
||
resource "aws_internet_gateway" "IGW" { | ||
vpc_id = aws_vpc.Main.id | ||
tags = { | ||
Name = "${var.namespace}-IGW" | ||
Environment = "${var.environment}" | ||
Name = "${var.namespace}-IGW" | ||
} | ||
} | ||
|
||
resource "aws_subnet" "publicsubnets" { | ||
vpc_id = aws_vpc.Main.id | ||
cidr_block = var.public_subnets | ||
availability_zone = var.availability_zone | ||
tags = { | ||
Environment = "${var.environment}" | ||
Name = "${var.namespace}-pubsub" | ||
} | ||
} | ||
|
||
resource "aws_subnet" "Main" { | ||
vpc_id = aws_vpc.Main.id | ||
availability_zone = var.availability_zone | ||
cidr_block = var.private_subnets | ||
tags = { | ||
Environment = "${var.environment}" | ||
Name = "${var.namespace}-prvsub" | ||
} | ||
} | ||
|
||
resource "aws_route_table" "PublicRT" { | ||
vpc_id = aws_vpc.Main.id | ||
route { | ||
cidr_block = "0.0.0.0/0" | ||
gateway_id = aws_internet_gateway.IGW.id | ||
} | ||
tags = { | ||
Environment = "${var.environment}" | ||
Name = "${var.namespace}-publicRT" | ||
} | ||
} | ||
|
||
resource "aws_route_table_association" "rt_associate_public" { | ||
subnet_id = aws_subnet.Main.id | ||
route_table_id = aws_route_table.PublicRT.id | ||
} |
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 |
---|---|---|
|
@@ -2,5 +2,3 @@ RHEL7=$(grep -c RHEL7 OS.tfvars) | |
if [ `echo $?` != 0 ]; then | ||
exit 0 | ||
fi | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# TESTS | ||
|
||
all: yamllint | ||
|
||
yamllint: | ||
git ls-files "*.yml"|xargs yamllint | ||
|
||
requirements: | ||
@echo 'Python dependencies:' | ||
@cat requirements.txt | ||
pip install -r requirements.txt |
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
Oops, something went wrong.