Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
soctools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
gn4-3-wp8-t3.1 SOC
soctools
Commits
dad59626
Commit
dad59626
authored
4 years ago
by
Arne Øslebø
Browse files
Options
Downloads
Patches
Plain Diff
fixed various issues with NiFi configuration
parent
993c2b9b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/nifi/tasks/main.yml
+31
-9
31 additions, 9 deletions
roles/nifi/tasks/main.yml
roles/nifi/templates/flow.xml.j2
+1
-1
1 addition, 1 deletion
roles/nifi/templates/flow.xml.j2
with
32 additions
and
10 deletions
roles/nifi/tasks/main.yml
+
31
−
9
View file @
dad59626
...
@@ -36,6 +36,8 @@
...
@@ -36,6 +36,8 @@
path
:
"
{{
ansible_facts.env['NIFI_HOME']
}}/conf/flow.xml"
path
:
"
{{
ansible_facts.env['NIFI_HOME']
}}/conf/flow.xml"
dest
:
"
{{
ansible_facts.env['NIFI_HOME']
}}/conf/flow.xml.gz"
dest
:
"
{{
ansible_facts.env['NIFI_HOME']
}}/conf/flow.xml.gz"
format
:
gz
format
:
gz
tags
:
-
start
-
name
:
Get openid authkey
-
name
:
Get openid authkey
set_fact
:
set_fact
:
...
@@ -81,18 +83,38 @@
...
@@ -81,18 +83,38 @@
-
name
:
Copy empty GeoLite2-City database
-
name
:
Copy empty GeoLite2-City database
copy
:
copy
:
src
:
GeoLite2-City.mmdb
src
:
GeoLite2-City.mmdb
dest
:
conf/enrich/
dest
:
conf/enrich/
GeoLite2-City.mmdb
tags
:
tags
:
-
start
-
start
-
name
:
Create empty enrichment files
-
name
:
Download list of Tor exist nodes
copy
:
get_url
:
content
:
"
"
url
:
https://check.torproject.org/torbulkexitlist
dest
:
conf/enrich/{{ item }}
dest
:
conf/enrich/tornodes.csv
with_items
:
tags
:
-
"
tornodes.csv"
-
start
-
"
umbrella-top-1m.csv"
-
"
alexa-top-1m.csv"
-
name
:
Add header to tornodes.csv
lineinfile
:
path
:
conf/enrich/tornodes.csv
line
:
'
ip_addr'
insertbefore
:
BOF
tags
:
-
start
-
name
:
Download umbrella-top-1m.csv
get_url
:
url
:
http://s3-us-west-1.amazonaws.com/umbrella-static/top-1m.csv.zip
dest
:
conf/enrich/umbrella-top-1m.csv
tags
:
-
start
-
name
:
Download alexa-top-1m.csv
get_url
:
url
:
http://s3.amazonaws.com/alexa-static/top-1m.csv.zip
dest
:
conf/enrich/alexa-top-1m.csv
tags
:
-
start
-
name
:
Start NiFi
-
name
:
Start NiFi
command
:
"
./bin/nifi.sh
start"
command
:
"
./bin/nifi.sh
start"
...
...
This diff is collapsed.
Click to expand it.
roles/nifi/templates/flow.xml.j2
+
1
−
1
View file @
dad59626
...
@@ -14808,7 +14808,7 @@
...
@@ -14808,7 +14808,7 @@
<variable name="misp_token" value="{{ misp_token }}"/>
<variable name="misp_token" value="{{ misp_token }}"/>
<variable name="misp_url" value="{{ misp_url }}"/>
<variable name="misp_url" value="{{ misp_url }}"/>
<variable name="maxmind_key" value="{{ maxmind_key }}"/>
<variable name="maxmind_key" value="{{ maxmind_key }}"/>
<variable name="elastic_url" value="https://{{ dslproxy }}
;
9200"/>
<variable name="elastic_url" value="https://{{ dslproxy }}
:
9200"/>
<variable name="elastic_username" value="{{ elastic_username }}"/>
<variable name="elastic_username" value="{{ elastic_username }}"/>
<variable name="elastic_password" value="{{ odfees_adminpass }}"/>
<variable name="elastic_password" value="{{ odfees_adminpass }}"/>
<variable name="misp_ip_first_interval" value="60d"/>
<variable name="misp_ip_first_interval" value="60d"/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment