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 09c4ac9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 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

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
1 change: 1 addition & 0 deletions packer/machines/web-server.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"inline": [
"bash /app/bin/install-gauntlt.sh",
"bash /app/bin/install-ansible.sh",
"sudo yum -y install yum-utils pcre2",
"bash /app/bin/ansible.sh bakery.yml scan-openscap.yml scan-gauntlt.yml",
"find / -name '*.html' 2>/dev/null | grep -E 'gauntlt|scan'",
"ls -l /app /app/build"
Expand Down

0 comments on commit 09c4ac9

Please sign in to comment.