-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #837 from splunk/ar_improvements
Attack Range Improvements
- Loading branch information
Showing
5 changed files
with
114 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 88 additions & 0 deletions
88
packer/ansible/roles/phantom/tasks/install_phantom_local.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
--- | ||
# Install Phantom from RPM on a fresh CentOS 7 instance | ||
|
||
- name: Creates directory | ||
file: | ||
path: /opt/soar | ||
state: directory | ||
|
||
- name: Copy Splunk SOAR to server | ||
unarchive: | ||
src: "../../apps/{{ phantom_app }}" | ||
dest: /home/vagrant | ||
|
||
- name: prepare phantom install script without apps | ||
shell: sudo /home/vagrant/splunk-soar/soar-prepare-system --splunk-soar-home /opt/soar --no-prompt | ||
|
||
- name: copy splunk soar folder | ||
shell: cp -r /home/vagrant/splunk-soar /home/phantom/splunk-soar | ||
|
||
- name: chown splunk soar folder | ||
shell: chown -R phantom. /home/phantom/splunk-soar | ||
|
||
# - name: Copy Splunk SOAR to server | ||
# become_user: phantom | ||
# unarchive: | ||
# src: "../../apps/{{ phantom_app }}" | ||
# dest: /home/phantom | ||
|
||
- name: run the phantom install script | ||
become_user: phantom | ||
shell: ./soar-install --splunk-soar-home /opt/soar --no-prompt --ignore-warnings | ||
args: | ||
chdir: /home/phantom/splunk-soar | ||
|
||
# - name: upgrade all packages | ||
# yum: | ||
# name: '*' | ||
# state: latest | ||
|
||
# - name: check if phantom is installed | ||
# stat: path=/opt/phantom | ||
# register: phantom_path | ||
|
||
# - name: debug print if phantom is installed | ||
# debug: msg='phantom is already installed under /opt/phantom' | ||
# when: phantom_path.stat.exists | ||
|
||
|
||
# - name: install the phantom setup rpm from the community repository | ||
# yum: | ||
# name: '{{ phantom_repo_url }}' | ||
# state: present | ||
|
||
# # installing apps takes 15+ minutes longer, so later we will install just the apps we need | ||
# - name: run the phantom install script without apps | ||
# shell: printf "{{phantom_community_username}}\n{{phantom_community_password}}\n" | /opt/phantom/bin/phantom_setup.sh install --no-prompt --without-apps --version={{phantom_version}} | ||
# async: 1800 | ||
# poll: 60 | ||
|
||
# - name: install whois app | ||
# yum: | ||
# name: https://repo.phantom.us/phantom/4.10/apps/x86_64/phantom_whois-2.1.0.x86_64.rpm | ||
# state: present | ||
|
||
# - name: install maxmind app | ||
# yum: | ||
# name: https://repo.phantom.us/phantom/4.10/apps/x86_64/phantom_maxmind-2.0.23.x86_64.rpm | ||
# state: present | ||
|
||
# - name: install dns app | ||
# yum: | ||
# name: https://repo.phantom.us/phantom/4.10/apps/x86_64/phantom_dns-2.0.22.x86_64.rpm | ||
# state: present | ||
|
||
# - name: install phishtank app | ||
# yum: | ||
# name: https://repo.phantom.us/phantom/4.10/apps/x86_64/phantom_phishtank-2.0.1.x86_64.rpm | ||
# state: present | ||
|
||
# - name: install splunk app | ||
# yum: | ||
# name: https://repo.phantom.us/phantom/4.10/apps/x86_64/phantom_splunk-2.2.3.x86_64.rpm | ||
# state: present | ||
|
||
# - name: install winrm app | ||
# yum: | ||
# name: https://repo.phantom.us/phantom/4.10/apps/x86_64/phantom_winrm-2.0.1.x86_64.rpm | ||
# state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters