-
Notifications
You must be signed in to change notification settings - Fork 24
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 #16 from ansible-lockdown/devel
devel to main
- Loading branch information
Showing
32 changed files
with
1,127 additions
and
1,013 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,13 +1,21 @@ | ||
parseable: true | ||
quiet: true | ||
skip_list: | ||
- '204' | ||
- '208' | ||
- '305' | ||
- '303' | ||
- '403' | ||
- '306' | ||
- '602' | ||
- 'ignore-errors' | ||
- 'schema' | ||
- 'no-changed-when' | ||
- 'var-spacing' | ||
- 'fqcn-builtins' | ||
- 'experimental' | ||
- 'name[play]' | ||
- 'name[casing]' | ||
- 'name[template]' | ||
- 'fqcn[action]' | ||
- '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
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,47 @@ | ||
.env | ||
*.log | ||
*.retry | ||
.vagrant | ||
.cache | ||
tests/*redhat-subscription | ||
tests/Dockerfile | ||
*.iso | ||
*.box | ||
packer_cache | ||
delete* | ||
ignore* | ||
# VSCode | ||
.vscode | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# DS_Store | ||
.DS_Store | ||
._* | ||
|
||
# Linux Editors | ||
*~ | ||
\#*\# | ||
/.emacs.desktop | ||
/.emacs.desktop.lock | ||
.elc | ||
auto-save-list | ||
tramp | ||
.\#* | ||
*.swp | ||
*.swo | ||
rh-creds.env | ||
travis.env | ||
|
||
# Lockdown-specific | ||
benchparse/ | ||
*xccdf.xml | ||
*.retry | ||
test_inv | ||
|
||
# ignore refactr pipeline test conf | ||
.github/ | ||
|
This file was deleted.
Oops, something went wrong.
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,22 +1,32 @@ | ||
--- | ||
ignore: | | ||
tests/ | ||
molecule/ | ||
.github/ | ||
.gitlab-ci.yml | ||
*molecule.yml | ||
|
||
extends: default | ||
|
||
rules: | ||
indentation: | ||
# Requiring 2 space indentation | ||
# Requiring 4 space indentation | ||
spaces: 4 | ||
# Requiring consistent indentation within a file, either indented or not | ||
indent-sequences: consistent | ||
truthy: disable | ||
#truthy: disable | ||
braces: | ||
max-spaces-inside: 1 | ||
level: error | ||
brackets: | ||
max-spaces-inside: 1 | ||
level: error | ||
line-length: disable | ||
key-duplicates: enable | ||
new-line-at-end-of-file: enable | ||
new-lines: | ||
type: unix | ||
trailing-spaces: enable | ||
truthy: | ||
allowed-values: ['true', 'false'] | ||
check-keys: true |
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,31 @@ | ||
[defaults] | ||
host_key_checking=False | ||
display_skipped_hosts=True | ||
system_warnings=False | ||
command_warnings=False | ||
nocows=1 | ||
retry_files_save_path=/dev/null | ||
pipelining=true | ||
|
||
# Use the YAML callback plugin. | ||
stdout_callback = yaml | ||
# Use the stdout_callback when running ad-hoc commands. | ||
#bin_ansible_callbacks = True | ||
|
||
|
||
[privilege_escalation] | ||
|
||
[paramiko_connection] | ||
record_host_keys=False | ||
|
||
[ssh_connection] | ||
transfer_method=scp | ||
ssh_args = -o ControlMaster=auto -o ControlPersist=60s | ||
|
||
[accelerate] | ||
|
||
[selinux] | ||
|
||
[colors] | ||
|
||
[diff] |
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,8 @@ | ||
--- | ||
|
||
collections: | ||
- name: community.general | ||
|
||
- name: community.crypto | ||
|
||
- name: ansible.posix |
Oops, something went wrong.