Skip to content

Commit

Permalink
Debug packer build
Browse files Browse the repository at this point in the history
  • Loading branch information
akagr committed Sep 21, 2022
1 parent 3a166d8 commit c3f17f3
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ansible/bakery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
hosts: 127.0.0.1
connection: local
become: yes
roles:
roles:
- cloudwatch-agent

- name: Install New Relic Infrastructure
hosts: 127.0.0.1
connection: local
become: yes
roles:
roles:
- newrelic.newrelic-infra
vars:
nrinfragent_os_name: CentOS
Expand Down
4 changes: 2 additions & 2 deletions ansible/requirements.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Install roles from Ansible Galaxy

# CIS hardening
- src: MindPointGroup.RHEL7-CIS
- src: mindpointgroup.rhel7_cis

# NGINX web server
- src: nginxinc.nginx
version: 0.14.0

# AWS CodeDeploy agent
# The original version of this role in Ansible Galaxy
Expand All @@ -17,4 +18,3 @@

# New Relic Infrastructure
- src: newrelic.newrelic-infra

4 changes: 3 additions & 1 deletion bin/ansible.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Run ansible
# Run ansible
#
# Set bash unofficial strict mode http://redsymbol.net/articles/unofficial-bash-strict-mode/
set -euo pipefail
Expand All @@ -20,5 +20,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

ensure_not_root

sudo yum -y install yum-utils pcre2

cd "$DIR/../ansible"
ansible-playbook -l localhost "$@"
2 changes: 2 additions & 0 deletions bin/install-ansible.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
#shellcheck disable=SC1090
. "$DIR/common.sh"

ls -al /etc/yum.repos.d

ensure_not_root

quick_yum_install epel-release
Expand Down
2 changes: 0 additions & 2 deletions gauntlt/nmap-invariant.attack
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@slow
# Adapted from https://github.com/gauntlt/gauntlt/blob/master/examples/nmap/nmap.attack

Feature: nmap attacks for localhost
Background:
Expand Down Expand Up @@ -45,4 +44,3 @@ Feature: nmap attacks for localhost
| ports port[protocol="tcp"][portid="22"] state[state="open"] |
And the file "/app/build/nmap-results.xml" should not contain XML:
| ports port[protocol="tcp"][portid="25"] state[state="open"] |

0 comments on commit c3f17f3

Please sign in to comment.