Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug where Kali does not run user data scripts #179

Merged
merged 9 commits into from
Jan 17, 2025
Merged
10 changes: 0 additions & 10 deletions ansible/assessor_tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -444,16 +444,6 @@
assessment_tool_unarchive_extra_opts:
- --strip-components=1

- name: Install resyncgg/ripgen
ansible.builtin.include_role:
name: assessment_tool
vars:
assessment_tool_archive_src: https://github.com/resyncgg/ripgen/tarball/main
assessment_tool_install_dir: /tools/ripgen
assessment_tool_rust: true
assessment_tool_unarchive_extra_opts:
- --strip-components=1

- name: Install danielmiessler/SecLists
ansible.builtin.include_role:
name: assessment_tool
Expand Down
25 changes: 18 additions & 7 deletions ansible/bloodhound.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,29 @@
name: openjdk

# The version of Neo4j available by default in Kali does not
# include the SystemD service file, so we need to install the
# include the systemd service file, so we need to install the
# package from a different repo.
#
# TODO: Upgrade to Neo4j 5 when possible, as described in #136.
- name: Configure apt to use official Neo4j apt repo
block:
- name: Add key for official Neo4j apt repo
ansible.builtin.apt_key:
url: https://debian.neo4j.com/neotechnology.gpg.key
- name: Add official apt repo for Neo4j
ansible.builtin.apt_repository:
repo: deb https://debian.neo4j.com stable 4.4
- name: Install prerequisites so apt can use DEB822 repos (Kali)
ansible.builtin.package:
name:
- python3-debian
- name: Add the official Neo4j repo
ansible.builtin.deb822_repository:
components:
- 4.4
name: neo4j
signed_by: https://debian.neo4j.com/neotechnology.gpg.key
suites:
- stable
uris:
- https://debian.neo4j.com
- name: Update the package cache
ansible.builtin.apt:
update_cache: true

- name: Install Neo4j
ansible.builtin.package:
Expand Down
15 changes: 4 additions & 11 deletions ansible/cloud_init.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
---
# For some reason cloud-init-local, cloud-config, and cloud-final are
# not enabled in the base Kali AMI. We need cloud-config anabled, and
# we may as well enable the others while we're at it.
- name: Enable all cloud-init services
# cloud-init-main.service is not currently enabled on Kali.
- name: Enable cloud-init-main.service
hosts: all
become: true
become_method: ansible.builtin.sudo
tasks:
- name: Enable all cloud-init services
- name: Enable cloud-init-main.service
ansible.builtin.service:
name: "{{ item }}"
name: cloud-init-main.service
enabled: true
loop:
- cloud-init-local
- cloud-init
- cloud-config
- cloud-final
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.30
0.5.31
Loading