Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Tyagov
slapos.package
Commits
fa411651
Commit
fa411651
authored
Dec 15, 2021
by
levinericzimmermann
Committed by
Levin Zimmermann
Jan 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: Remove Fluentd role
Should be installed via rapid.space panel.
parent
b36b42d1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
133 deletions
+0
-133
playbook/roles/fluentd/tasks/main.yml
playbook/roles/fluentd/tasks/main.yml
+0
-10
playbook/roles/fluentd/templates/request-fluentd.j2
playbook/roles/fluentd/templates/request-fluentd.j2
+0
-14
playbook/wendelin-olimex-base.yml
playbook/wendelin-olimex-base.yml
+0
-38
playbook/wendelin-olimex-iot-gateway.yml
playbook/wendelin-olimex-iot-gateway.yml
+0
-41
playbook/wendelin-olimex-sensor.yml
playbook/wendelin-olimex-sensor.yml
+0
-30
No files found.
playbook/roles/fluentd/tasks/main.yml
deleted
100644 → 0
View file @
b36b42d1
-
set_fact
:
request_fluentd_python_script_path=/tmp/request-fluentd.py
-
name
:
Solve template to request Fluentd
template
:
src
:
request-fluentd.j2
dest
:
"
{{
request_fluentd_python_script_path
}}"
-
name
:
Request Fluentd from SlapOS Master
shell
:
slapos console "{{ request_fluentd_python_script_path }}"
playbook/roles/fluentd/templates/request-fluentd.j2
deleted
100644 → 0
View file @
b36b42d1
# Constants
fluentd_software_release_uri = product.fluentd
computer_id = "{{computer_id}}"
fluentd_software_name = "{{fluentd_software_name}}"
fluentd_config = """{{fluentd_config}}"""
# Supplying and requesting
supply(fluentd_software_release_uri, computer_id)
request(
fluentd_software_release_uri,
fluentd_software_name,
filter_kw={"computer_guid": computer_id},
partition_parameter_kw={"conf_text": fluentd_config},
)
playbook/wendelin-olimex-base.yml
View file @
fa411651
...
@@ -5,41 +5,3 @@
...
@@ -5,41 +5,3 @@
-
name
:
a play that runs entirely on the ansible host
-
name
:
a play that runs entirely on the ansible host
hosts
:
127.0.0.1
hosts
:
127.0.0.1
connection
:
local
connection
:
local
pre_tasks
:
-
name
:
Set Computer reference
block
:
-
pause
:
prompt
:
"
What
is
the
reference
of
your
computer
(COMP-XXXX)?"
register
:
prompt
-
set_fact
:
computer_id
:
"
{{
prompt.user_input
}}"
-
name
:
Set Fluentd Software Release Name
block
:
-
pause
:
prompt
:
"
What
is
the
name
of
your
Fluentd
Software
Relase?
[Fluentd-Software-Release]"
register
:
prompt
-
set_fact
:
fluentd_software_name
:
"
{{
prompt.user_input
|
default('Fluentd-Software-Release',
true)
}}"
tasks
:
-
name
:
Check if client configuration exists already
stat
:
path=/root/.slapos/slapos-client.cfg
register
:
slapos_client_cfg
-
name
:
Configure SlapOS client
block
:
-
pause
:
prompt
:
"
Please
enter
a
token
from
your
SlapOS
account."
register
:
prompt
-
set_fact
:
slapos_user_token
:
"
{{
prompt.user_input
}}"
-
name
:
Configure SlapOS Client
shell
:
slapos configure client --token {{ slapos_user_token }}
when
:
slapos_client_cfg.stat.exists == False
playbook/wendelin-olimex-iot-gateway.yml
View file @
fa411651
...
@@ -6,44 +6,3 @@
...
@@ -6,44 +6,3 @@
-
name
:
a play that runs entirely on the ansible host
-
name
:
a play that runs entirely on the ansible host
hosts
:
127.0.0.1
hosts
:
127.0.0.1
connection
:
local
connection
:
local
vars_prompt
:
-
name
:
"
streamtool_uri"
prompt
:
"
What
is
the
URL
of
your
Wendelin
instance?
(e.g.
https://softinstXXXX.host.vifib.net)"
private
:
no
-
name
:
"
tag_name"
prompt
:
"
What
is
your
tag
name?
\n
Your
tag
name
must
consist
of
2
part
separated
by
.(dot).
First
part
is
the
name
of
the
sensor
and
must
be
the
same
as
the
reference
of
the
Data
Supply.
The
second
part
is
the
type
of
data
(Data
Product)."
private
:
no
default
:
"
sensor_1.sample-environment-raw-data"
-
name
:
"
user_name"
prompt
:
"
What
is
the
user
name
for
your
Wendelin
instance?"
private
:
no
default
:
"
zope"
-
name
:
"
user_password"
prompt
:
"
What
is
the
password
for
the
user
of
your
Wendelin
instance?"
private
:
yes
vars
:
fluentd_config
:
|
<source>
@type forward
port 24224
bind ::0
</source>
<match {{ tag_name }}>
@type wendelin
streamtool_uri {{ streamtool_uri }}/erp5/portal_ingestion_policies/default
user {{ user_name }}
password {{ user_password }}
<buffer>
flush_mode interval
@type file
path fluentd-buffer-file/
flush_interval 1m
</buffer>
roles
:
-
role
:
fluentd
playbook/wendelin-olimex-sensor.yml
View file @
fa411651
...
@@ -7,35 +7,5 @@
...
@@ -7,35 +7,5 @@
hosts
:
127.0.0.1
hosts
:
127.0.0.1
connection
:
local
connection
:
local
vars_prompt
:
-
name
:
"
ipv6_address_iot_gateway"
prompt
:
"
What
is
the
IPv6
address
of
the
host
where
the
data
will
be
send
to
(IoT
Gateway)?"
private
:
no
-
name
:
"
tag_name"
prompt
:
"
What
is
your
tag
name?
\n
Your
tag
name
must
consist
of
2
part
separated
by
.(dot).
First
part
is
the
name
of
the
sensor
and
must
be
the
same
as
the
reference
of
the
Data
Supply.
The
second
part
is
the
type
of
data
(Data
Product)."
private
:
no
default
:
"
sensor_1.sample-environment-raw-data"
vars
:
fluentd_config
:
|
<source>
@type exec
tag {{ tag_name }}
command python /usr/local/bin/custom_read_bme280.py
run_interval 1m
<parse>
keys pressure, humidity, temperature
</parse>
</source>
<match {{ tag_name }}>
@type forward
<server>
name myserver1
host {{ ipv6_address_iot_gateway }}
</server>
</match>
roles
:
roles
:
-
role
:
olimex-sensor
-
role
:
olimex-sensor
-
role
:
fluentd
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment