Skip to content

Commit c3f17f3

Browse files
committed
Debug packer build
1 parent 3a166d8 commit c3f17f3

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

ansible/bakery.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
hosts: 127.0.0.1
99
connection: local
1010
become: yes
11-
roles:
11+
roles:
1212
- cloudwatch-agent
1313

1414
- name: Install New Relic Infrastructure
1515
hosts: 127.0.0.1
1616
connection: local
1717
become: yes
18-
roles:
18+
roles:
1919
- newrelic.newrelic-infra
2020
vars:
2121
nrinfragent_os_name: CentOS

ansible/requirements.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Install roles from Ansible Galaxy
22

33
# CIS hardening
4-
- src: MindPointGroup.RHEL7-CIS
4+
- src: mindpointgroup.rhel7_cis
55

66
# NGINX web server
77
- src: nginxinc.nginx
8+
version: 0.14.0
89

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

1819
# New Relic Infrastructure
1920
- src: newrelic.newrelic-infra
20-

bin/ansible.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
# Run ansible
2+
# Run ansible
33
#
44
# Set bash unofficial strict mode http://redsymbol.net/articles/unofficial-bash-strict-mode/
55
set -euo pipefail
@@ -20,5 +20,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2020

2121
ensure_not_root
2222

23+
sudo yum -y install yum-utils pcre2
24+
2325
cd "$DIR/../ansible"
2426
ansible-playbook -l localhost "$@"

bin/install-ansible.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1616
#shellcheck disable=SC1090
1717
. "$DIR/common.sh"
1818

19+
ls -al /etc/yum.repos.d
20+
1921
ensure_not_root
2022

2123
quick_yum_install epel-release

gauntlt/nmap-invariant.attack

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
@slow
2-
# Adapted from https://github.com/gauntlt/gauntlt/blob/master/examples/nmap/nmap.attack
32

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

0 commit comments

Comments
 (0)