Skip to content

Commit ff04de3

Browse files
author
jsf9k
committed
Merge https://github.com/cisagov/skeleton-packer into lineage/skeleton
# Conflicts: # ansible/playbook.yml # ansible/requirements.yml # requirements.txt # terraform-build-user/main.tf # version.txt
2 parents d4d5ca4 + bd454b3 commit ff04de3

10 files changed

Lines changed: 89 additions & 38 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ env:
3333
PIP_CACHE_DIR: ~/.cache/pip
3434
PRE_COMMIT_CACHE_DIR: ~/.cache/pre-commit
3535
RUN_TMATE: ${{ secrets.RUN_TMATE }}
36-
TERRAFORM_DOCS_REPO_BRANCH_NAME: improvement/support_atx_closed_markdown_headers
36+
TERRAFORM_DOCS_REPO_BRANCH_NAME: cisagov
3737
TERRAFORM_DOCS_REPO_DEPTH: 1
3838
TERRAFORM_DOCS_REPO_URL: https://github.com/mcdonnnj/terraform-docs.git
3939

@@ -181,10 +181,13 @@ jobs:
181181
PACKAGE_VERSION: ${{ steps.setup-env.outputs.staticcheck-version }}
182182
run: go install ${PACKAGE_URL}@${PACKAGE_VERSION}
183183
# TODO: https://github.com/cisagov/skeleton-generic/issues/165
184-
# We are temporarily using @mcdonnnj's forked branch of terraform-docs
185-
# until his PR: https://github.com/terraform-docs/terraform-docs/pull/745
186-
# is approved. This temporary fix will allow for ATX header support when
187-
# terraform-docs is run during linting.
184+
# We are temporarily using a branch of @mcdonnnj's fork of terraform-docs that
185+
# groups changes from his PRs until they are approved and merged:
186+
# https://github.com/terraform-docs/terraform-docs/pull/745
187+
# https://github.com/terraform-docs/terraform-docs/pull/901
188+
# This temporary fix will allow for ATX header support when terraform-docs is run
189+
# during linting and output delimiter rows with cell spacing that passes
190+
# Markdownlint's MD060/table-column-style rule.
188191
- name: Clone ATX headers branch from terraform-docs fork
189192
run: |
190193
git clone \

ansible/base.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
- name: Install and configure htop
1717
ansible.builtin.include_role:
1818
name: htop
19-
- name: Configure JournalD to preserve logs across reboots
19+
- name: Configure journald to preserve logs across reboots
2020
ansible.builtin.include_role:
2121
name: persist_journald
2222
- name: Install and configure systemd-resolved

ansible/playbook.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
- name: Import UFW playbook
1616
ansible.builtin.import_playbook: ufw.yml
1717

18+
<<<<<<< HEAD
1819
- name: Import Docker playbook
1920
ansible.builtin.import_playbook: docker.yml
2021

@@ -30,3 +31,10 @@
3031
# a user created in the VNC playbook.
3132
- name: Import Xfce playbook
3233
ansible.builtin.import_playbook: xfce.yml
34+
=======
35+
- name: Import Wazuh agent playbook
36+
ansible.builtin.import_playbook: wazuh_agent.yml
37+
38+
- name: Import Example playbook
39+
ansible.builtin.import_playbook: example.yml
40+
>>>>>>> bd454b309193f70eba361285bbd30328e8ba35eb

ansible/requirements.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@
3333
src: https://github.com/cisagov/ansible-role-ufw
3434
- name: upgrade
3535
src: https://github.com/cisagov/ansible-role-upgrade
36+
<<<<<<< HEAD
3637
- name: vnc_server
3738
src: https://github.com/cisagov/ansible-role-vnc-server
3839
- name: xfce_cool
3940
src: https://github.com/cisagov/ansible-role-xfce-cool
41+
=======
42+
- name: wazuh_agent
43+
src: https://github.com/cisagov/ansible-role-wazuh-agent
44+
>>>>>>> bd454b309193f70eba361285bbd30328e8ba35eb

ansible/wazuh_agent.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
- name: Setup Wazuh agent
3+
hosts: all
4+
become: true
5+
become_method: ansible.builtin.sudo
6+
tasks:
7+
- name: Install and configure Wazuh agent
8+
ansible.builtin.include_role:
9+
name: wazuh_agent
10+
vars:
11+
# The IP or hostname of the Wazuh manager
12+
wazuh_agent_manager: >-
13+
{{ lookup('amazon.aws.aws_ssm', '/wazuh_agent/manager') }}

requirements.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,18 @@ ansible>=10,<11
1414
# .pre-commit-config.yaml in cisagov/skeleton-generic.
1515
ansible-core>=2.17.7
1616
# Required because we are using the amazon.aws.aws_ssm Ansible lookup
17+
<<<<<<< HEAD
1718
# plugin to pull parameter values from AWS Parameter Store.
1819
boto3
1920
# Required because we are using the community.general.json_query filter in our Ansible
2021
# code in the cisagov/ansible-role-amazon-efs-utils role:
22+
=======
23+
# plugin to pull parameters value from AWS Parameter Store.
24+
boto3
25+
# Required because we are using the community.general.json_query
26+
# filter in our Ansible code in the
27+
# cisagov/ansible-role-amazon-efs-utils role:
28+
>>>>>>> bd454b309193f70eba361285bbd30328e8ba35eb
2129
# https://docs.ansible.com/projects/ansible/latest/collections/community/general/json_query_filter.html
2230
jmespath
2331
# The bump-version script requires at least version 3 of semver.

terraform-build-user/.terraform.lock.hcl

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

terraform-build-user/main.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,20 @@ module "iam_user" {
88
}
99

1010
ssm_parameters = [
11+
<<<<<<< HEAD
1112
"/vnc/username",
1213
"/vnc/password",
1314
"/vnc/ssh/ed25519_public_key",
1415
"/vnc/ssh/ed25519_private_key",
16+
=======
17+
"/cyhy/dev/users",
18+
"/ssh/public_keys/*",
19+
# Any Packer AMIs that require access to the third-party bucket
20+
# will also require access to this SSM Parameter Store parameter.
21+
# "/third_party_bucket_name",
22+
# Necessary when building any instances that run the Wazuh agent
23+
"/wazuh_agent/manager",
24+
>>>>>>> bd454b309193f70eba361285bbd30328e8ba35eb
1525
]
1626
user_name = "build-docker-packer"
1727
}

terraform-post-packer/.terraform.lock.hcl

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

version.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
<<<<<<< HEAD
12
1.0.1
3+
=======
4+
3.1.0
5+
>>>>>>> bd454b309193f70eba361285bbd30328e8ba35eb

0 commit comments

Comments
 (0)