Skip to content

Commit

Permalink
Merge pull request #1311 from mira-miracoli/d-s-n-port
Browse files Browse the repository at this point in the history
defined influx service, d-s-n not available in firewalld
  • Loading branch information
mira-miracoli authored Sep 6, 2024
2 parents c8254a9 + 4bbe8ec commit 305c60e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions group_vars/influxdb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ nginx_conf_ssl_certificate_key: /etc/ssl/user/privkey-nginx.pem
firewall_public_services:
- http
- https
- d-s-n # name for port 8086
- influxdb # must be created in playbook
firewall_internal_services:
- http
- https
- ssh
- d-s-n
- influxdb
20 changes: 20 additions & 0 deletions influxdb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,26 @@
persistent: true
loop:
- httpd_can_network_connect
- name: Create influxdb firewalld service
ansible.builtin.copy:
dest: /etc/firewalld/services/influxdb.xml
content: |
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>influxdb</short>
<description>Time-series database for storing metrics and analytics data</description>
<port protocol="tcp" port="8086"/>
</service>
mode: "0600"
owner: root
group: root
notify: copied_service
handlers:
- name: Reload Firewalld
listen: copied_service
ansible.builtin.service:
name: firewalld
state: reloaded
collections:
- devsec.hardening
roles:
Expand Down

0 comments on commit 305c60e

Please sign in to comment.