Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible-graylog-sidecar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
hdacloud
ansible-graylog-sidecar
Commits
3c6da980
Commit
3c6da980
authored
9 months ago
by
Alexander Käb
Browse files
Options
Downloads
Patches
Plain Diff
feat: provide way to add tags to sidecar.yml and implement workaround symlink
parent
9296dfd8
Branches
master
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+7
-1
7 additions, 1 deletion
README.md
tasks/sidecar.yml
+23
-0
23 additions, 0 deletions
tasks/sidecar.yml
templates/sidecar.yml.j2
+7
-0
7 additions, 0 deletions
templates/sidecar.yml.j2
with
37 additions
and
1 deletion
README.md
+
7
−
1
View file @
3c6da980
...
@@ -24,6 +24,12 @@ graylog_sidecar_server_url:
...
@@ -24,6 +24,12 @@ graylog_sidecar_server_url:
graylog_sidecar_server_api_token
:
graylog_sidecar_server_api_token
:
```
```
## Auto fetch configs
You can specify a list of tags that will be used to auto fetch configs from the graylog
server. To do so add the
`config_tags`
variable and provide a list of tags for which the
configs should be pulled by the sidecar.
## Node Certificates
## Node Certificates
For node certificates to be generated you will need to create an additional host group
For node certificates to be generated you will need to create an additional host group
...
@@ -38,7 +44,7 @@ via a host group called `graylog-nodes`.
...
@@ -38,7 +44,7 @@ via a host group called `graylog-nodes`.
You may also use a completely separate host to store the CA files for Graylog and the
You may also use a completely separate host to store the CA files for Graylog and the
Sidecar service. If this is the case, you need to set the
`use_central_ca_host`
variable
Sidecar service. If this is the case, you need to set the
`use_central_ca_host`
variable
to
`true`
and provide a host group called
`ca-store`
. The other groups mentioned earlier
to
`true`
and provide a host group called
`ca-store`
. The other groups mentioned earlier
may
be omitted.
**need to
be omitted
**
.
The log node CA file must be available at:
`/etc/graylog/graylog-ca.pem`
The log node CA file must be available at:
`/etc/graylog/graylog-ca.pem`
The sidecar CA file must be available at:
`/etc/graylog/sidecar/sidecar-ca.pem`
The sidecar CA file must be available at:
`/etc/graylog/sidecar/sidecar-ca.pem`
...
...
This diff is collapsed.
Click to expand it.
tasks/sidecar.yml
+
23
−
0
View file @
3c6da980
...
@@ -79,6 +79,29 @@
...
@@ -79,6 +79,29 @@
changed_when
:
false
changed_when
:
false
become
:
true
become
:
true
-
name
:
Create Workaround Symlink for filebeat when version >= '1.5.0'
when
:
sidecar_version is version('1.5.0', 'ge')
become
:
true
block
:
-
name
:
Create Workaround Symlink | Ensure directories exist
ansible.builtin.file
:
path
:
'
/usr/share/filebeat/bin/'
state
:
directory
mode
:
'
0755'
-
name
:
Create Workaround Symlink | Check if old filebeat version exists
ansible.builtin.stat
:
path
:
'
/usr/share/filebeat/bin/filebeat'
register
:
filebeat_bin
-
name
:
Create Workaround Symlink | Create Symlink if required
when
:
not filebeat_bin.stat.exists
ansible.builtin.file
:
src
:
'
/usr/lib/graylog-sidecar/filebeat'
dest
:
'
/usr/share/filebeat/bin/filebeat'
state
:
link
-
name
:
Enable / start sidecar service
-
name
:
Enable / start sidecar service
ansible.builtin.service
:
ansible.builtin.service
:
name
:
graylog-sidecar
name
:
graylog-sidecar
...
...
This diff is collapsed.
Click to expand it.
templates/sidecar.yml.j2
+
7
−
0
View file @
3c6da980
...
@@ -3,3 +3,10 @@
...
@@ -3,3 +3,10 @@
server_url: {{ graylog_sidecar_server_url }}
server_url: {{ graylog_sidecar_server_url }}
server_api_token: {{ graylog_sidecar_server_api_token }}
server_api_token: {{ graylog_sidecar_server_api_token }}
node_id: {{ graylog_sidecar_node_id }}
node_id: {{ graylog_sidecar_node_id }}
{% if config_tags is not none and config_tags | length > 0 %}
tags:
{% for tag in config_tags %}
- {{ tag }}
{% endfor %}
{% endif %}
\ No newline at end of file
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