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
30010f63
Commit
30010f63
authored
4 years ago
by
Arne Øslebø
Browse files
Options
Downloads
Patches
Plain Diff
fixed problem with nifi pipeline
parent
5320b3ae
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
roles/nifi/tasks/main.yml
+56
-4
56 additions, 4 deletions
roles/nifi/tasks/main.yml
roles/nifi/templates/flow.xml.j2
+22
-42
22 additions, 42 deletions
roles/nifi/templates/flow.xml.j2
roles/soctools-server/tasks/main.yml
+1
-1
1 addition, 1 deletion
roles/soctools-server/tasks/main.yml
with
79 additions
and
47 deletions
roles/nifi/tasks/main.yml
+
56
−
4
View file @
30010f63
...
...
@@ -130,17 +130,69 @@
tags
:
-
start
-
name
:
Download umbrella-top-1m.csv
get_url
:
-
name
:
Download umbrella-top-1m.csv.zip
local_action
:
module
:
get_url
url
:
http://s3-us-west-1.amazonaws.com/umbrella-static/top-1m.csv.zip
dest
:
"
/tmp/umbrella-top-1m.csv.zip"
run_once
:
True
tags
:
-
start
-
name
:
Unzip umbrella-top-1m.csv.zip
local_action
:
module
:
unarchive
src
:
"
/tmp/umbrella-top-1m.csv.zip"
dest
:
"
/tmp"
run_once
:
True
tags
:
-
start
-
name
:
Copy umbrella-top-1m.csv
copy
:
src
:
"
/tmp/top-1m.csv"
dest
:
"
{{
ansible_facts.env['NIFI_HOME']
}}/conf/enrich/umbrella-top-1m.csv"
tags
:
-
start
-
name
:
Add header to umbrella-top-1m.csv
lineinfile
:
path
:
"
{{
ansible_facts.env['NIFI_HOME']
}}/conf/enrich/umbrella-top-1m.csv"
line
:
'
index,domain'
insertbefore
:
BOF
tags
:
-
start
-
name
:
Download alexa-top-1m.csv
get_url
:
-
name
:
Download alexa-top-1m.csv.zip
local_action
:
module
:
get_url
url
:
http://s3.amazonaws.com/alexa-static/top-1m.csv.zip
dest
:
"
/tmp/alexa-top-1m.csv.zip"
run_once
:
True
tags
:
-
start
-
name
:
Unzip alexa-top-1m.csv.zip
local_action
:
module
:
unarchive
src
:
"
/tmp/alexa-top-1m.csv.zip"
dest
:
"
/tmp"
run_once
:
True
tags
:
-
start
-
name
:
Copy alexa-top-1m.csv
copy
:
src
:
"
/tmp/top-1m.csv"
dest
:
"
{{
ansible_facts.env['NIFI_HOME']
}}/conf/enrich/alexa-top-1m.csv"
tags
:
-
start
-
name
:
Add header to alexa-top-1m.csv
lineinfile
:
path
:
"
{{
ansible_facts.env['NIFI_HOME']
}}/conf/enrich/alexa-top-1m.csv"
line
:
'
index,domain'
insertbefore
:
BOF
tags
:
-
start
...
...
This diff is collapsed.
Click to expand it.
roles/nifi/templates/flow.xml.j2
+
22
−
42
View file @
30010f63
...
...
@@ -4033,7 +4033,7 @@
<enabled>true</enabled>
<property>
<name>csv-file</name>
<value>/opt/nifi/nifi-current/conf/alexa-top-1m.csv</value>
<value>/opt/nifi/nifi-current/conf/
enrich/
alexa-top-1m.csv</value>
</property>
<property>
<name>CSV Format</name>
...
...
@@ -4069,7 +4069,7 @@
<enabled>true</enabled>
<property>
<name>csv-file</name>
<value>/opt/nifi/nifi-current/conf/umbrella-top-1m.csv</value>
<value>/opt/nifi/nifi-current/conf/
enrich/
umbrella-top-1m.csv</value>
</property>
<property>
<name>CSV Format</name>
...
...
@@ -4110,7 +4110,7 @@
<name>To data output</name>
<position x="-1120.0" y="592.0" />
<comments />
<scheduledState>
RUNNING
</scheduledState>
<scheduledState>
STOPPED
</scheduledState>
</outputPort>
<processGroup>
<id>27d51d04-0172-1000-0000-00004573c6ec</id>
...
...
@@ -4155,7 +4155,7 @@
<yieldPeriod>1 sec</yieldPeriod>
<bulletinLevel>WARN</bulletinLevel>
<lossTolerant>false</lossTolerant>
<scheduledState>
RUNNING
</scheduledState>
<scheduledState>
STOPPED
</scheduledState>
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>
<executionNode>ALL</executionNode>
<runDurationNanos>0</runDurationNanos>
...
...
@@ -4202,7 +4202,7 @@
<yieldPeriod>1 sec</yieldPeriod>
<bulletinLevel>WARN</bulletinLevel>
<lossTolerant>false</lossTolerant>
<scheduledState>
RUNNING
</scheduledState>
<scheduledState>
STOPPED
</scheduledState>
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>
<executionNode>ALL</executionNode>
<runDurationNanos>0</runDurationNanos>
...
...
@@ -4247,7 +4247,7 @@
<yieldPeriod>1 sec</yieldPeriod>
<bulletinLevel>WARN</bulletinLevel>
<lossTolerant>false</lossTolerant>
<scheduledState>
RUNNING
</scheduledState>
<scheduledState>
STOPPED
</scheduledState>
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>
<executionNode>ALL</executionNode>
<runDurationNanos>0</runDurationNanos>
...
...
@@ -4282,7 +4282,7 @@
<yieldPeriod>1 sec</yieldPeriod>
<bulletinLevel>WARN</bulletinLevel>
<lossTolerant>false</lossTolerant>
<scheduledState>
RUNNING
</scheduledState>
<scheduledState>
STOPPED
</scheduledState>
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>
<executionNode>ALL</executionNode>
<runDurationNanos>0</runDurationNanos>
...
...
@@ -4339,7 +4339,7 @@
<yieldPeriod>1 sec</yieldPeriod>
<bulletinLevel>WARN</bulletinLevel>
<lossTolerant>false</lossTolerant>
<scheduledState>
RUNNING
</scheduledState>
<scheduledState>
STOPPED
</scheduledState>
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>
<executionNode>ALL</executionNode>
<runDurationNanos>0</runDurationNanos>
...
...
@@ -4396,7 +4396,7 @@
<yieldPeriod>1 sec</yieldPeriod>
<bulletinLevel>WARN</bulletinLevel>
<lossTolerant>false</lossTolerant>
<scheduledState>
RUNNING
</scheduledState>
<scheduledState>
STOPPED
</scheduledState>
<schedulingStrategy>TIMER_DRIVEN</schedulingStrategy>
<executionNode>ALL</executionNode>
<runDurationNanos>0</runDurationNanos>
...
...
@@ -4440,7 +4440,7 @@
<name>To storage</name>
<position x="-2120.0" y="1064.0" />
<comments />
<scheduledState>
RUNNING
</scheduledState>
<scheduledState>
STOPPED
</scheduledState>
</outputPort>
<funnel>
<id>beabd3be-6f95-3369-9aa5-4631e6207ec5</id>
...
...
@@ -4933,7 +4933,7 @@
</property>
<property>
<name>Port</name>
<value>
5
000</value>
<value>
6
000</value>
</property>
<property>
<name>Receive Buffer Size</name>
...
...
@@ -4968,7 +4968,7 @@
</property>
<property>
<name>Client Auth</name>
<value>
REQUIRED
</value>
<value>
NONE
</value>
</property>
</processor>
<processor>
...
...
@@ -5014,14 +5014,14 @@
<comments />
<scheduledState>RUNNING</scheduledState>
</outputPort>
<funnel>
<id>895faa7a-0175-1000-0000-000014ef9dd3</id>
<position x="278.84829417593915" y="332.4492766741185" />
</funnel>
<funnel>
<id>895f7db3-0175-1000-ffff-ffff8229d688</id>
<position x="-1446.1517058240609" y="301.4492766741185" />
</funnel>
<funnel>
<id>895faa7a-0175-1000-0000-000014ef9dd3</id>
<position x="278.84829417593915" y="332.4492766741185" />
</funnel>
<connection>
<id>895fbf8f-0175-1000-ffff-ffffa5d2d01e</id>
<name />
...
...
@@ -5430,14 +5430,14 @@
<comments />
<scheduledState>RUNNING</scheduledState>
</outputPort>
<funnel>
<id>d8f19295-5666-31a8-b701-52214c4db51d</id>
<position x="-1500.995244929405" y="257.20806784146276" />
</funnel>
<funnel>
<id>9e3adb6e-2266-390c-995d-76bc3aa5c3d8</id>
<position x="283.72871497338747" y="273.4623850295515" />
</funnel>
<funnel>
<id>d8f19295-5666-31a8-b701-52214c4db51d</id>
<position x="-1500.995244929405" y="257.20806784146276" />
</funnel>
<processGroup>
<id>8d1afcd0-0175-1000-ffff-ffffb3690a74</id>
<name>TLS events</name>
...
...
@@ -7191,26 +7191,6 @@
<partitioningAttribute />
<loadBalanceCompression>DO_NOT_COMPRESS</loadBalanceCompression>
</connection>
<connection>
<id>214d5013-0175-1000-ffff-ffff9b7dbebb</id>
<name />
<bendPoints />
<labelIndex>1</labelIndex>
<zIndex>0</zIndex>
<sourceId>1ef39440-1985-3bbb-8e03-859a1c5ee4b1</sourceId>
<sourceGroupId>84607b52-9748-3d38-b519-b0a05cddd097</sourceGroupId>
<sourceType>OUTPUT_PORT</sourceType>
<destinationId>21a9e277-2d80-359a-9c57-cb76d8962e6d</destinationId>
<destinationGroupId>870d6d68-7a0a-3505-8c42-0d6064fe43f6</destinationGroupId>
<destinationType>OUTPUT_PORT</destinationType>
<relationship />
<maxWorkQueueSize>10000</maxWorkQueueSize>
<maxWorkQueueDataSize>1 GB</maxWorkQueueDataSize>
<flowFileExpiration>0 sec</flowFileExpiration>
<loadBalanceStrategy>DO_NOT_LOAD_BALANCE</loadBalanceStrategy>
<partitioningAttribute />
<loadBalanceCompression>DO_NOT_COMPRESS</loadBalanceCompression>
</connection>
<connection>
<id>27d64272-0172-1000-0000-000079e1c9c6</id>
<name />
...
...
@@ -7398,7 +7378,7 @@
</property>
<property>
<name>Password</name>
<value>enc{
d3aa1dd95c404935f1bc2e54eefadb419acb135aaafa6edfd6881023c2a158c3ab4b958d1b765d4b8bc0a669b82fac
3a}</value>
<value>enc{
122e3a53e4a8959bb7f1b39e916fea2572e0d29014996e4288541e0fa8da0a4d65dad32242fc1817d2f07c96775911
3a}</value>
</property>
<property>
<name>elasticsearch-http-connect-timeout</name>
...
...
@@ -10238,7 +10218,7 @@
</property>
<property>
<name>Truststore Password</name>
<value>enc{
8aabd8fc1ac036b72d7f27f5e07e82c50119a1c5f61a705d6788218b4b769aa3
}</value>
<value>enc{
403bd69a9cb1b362f014b238fd0ad8dbf490d31810e3e5acb58ba40b4ba4b790
}</value>
</property>
<property>
<name>Truststore Type</name>
...
...
This diff is collapsed.
Click to expand it.
roles/soctools-server/tasks/main.yml
+
1
−
1
View file @
30010f63
...
...
@@ -16,7 +16,7 @@
-
name
:
Install required packages
yum
:
name
:
[
"
docker-ce"
,
"
docker-ce-cli"
,
"
containerd.io"
,
"
python-pip"
]
name
:
[
"
docker-ce"
,
"
docker-ce-cli"
,
"
containerd.io"
,
"
python-pip"
,
"
unzip"
]
state
:
latest
validate_certs
:
no
when
:
ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
...
...
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