-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
firewalld vars #33
firewalld vars #33
Changes from all commits
e6b9822
c232239
582b85a
6a38dad
132a952
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,12 +29,3 @@ | |
roles: | ||
- role: mirsg.infrastructure.monitoring_client | ||
- role: mirsg.infrastructure.firewalld | ||
vars: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Am now setting these at the inventory level instead. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nice, makes sense to put them in the inventory |
||
internal_zone_sources: | ||
- "{{ monitoring_client_monitoring_server_ip }}" | ||
rich_rules: | ||
- zone: "internal" | ||
rule: "family=ipv4 source \ | ||
address={{ monitoring_client_monitoring_server_ip }}/32 \ | ||
port protocol=tcp \ | ||
port={{ monitoring_client_node_exporter_port }} accept" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
--- | ||
# defaults file for ../ansible-role-dual-vm-firewalld | ||
allow_public_access: false | ||
firewalld_allow_public_access: false | ||
|
||
# IP ranges allowing HTTP/HTTPS | ||
internal_zone_open_services: | ||
firewalld_internal_zone_open_services: | ||
- ssh | ||
public_zone_open_services: [] | ||
work_zone_open_services: [] | ||
firewalld_public_zone_open_services: [] | ||
firewalld_work_zone_open_services: [] | ||
|
||
internal_zone_closed_services: | ||
firewalld_internal_zone_closed_services: | ||
- samba-client | ||
public_zone_closed_services: | ||
firewalld_public_zone_closed_services: | ||
- ssh | ||
work_zone_closed_services: | ||
firewalld_work_zone_closed_services: | ||
- ssh | ||
|
||
internal_zone_sources: [] | ||
work_zone_sources: [] | ||
public_zone_sources: [] | ||
firewalld_internal_zone_sources: [] | ||
firewalld_work_zone_sources: [] | ||
firewalld_public_zone_sources: [] | ||
|
||
internal_zone_ports: [] | ||
public_zone_ports: [] | ||
work_zone_ports: [] | ||
firewalld_internal_zone_ports: [] | ||
firewalld_public_zone_ports: [] | ||
firewalld_work_zone_ports: [] | ||
|
||
close_zone_services: | ||
internal: "{{ internal_zone_closed_services }}" | ||
public: "{{ public_zone_closed_services }}" | ||
work: "{{ work_zone_closed_services }}" | ||
firewalld_close_zone_services: | ||
internal: "{{ firewalld_internal_zone_closed_services }}" | ||
public: "{{ firewalld_public_zone_closed_services }}" | ||
work: "{{ firewalld_work_zone_closed_services }}" | ||
|
||
open_zone_services: | ||
internal: "{{ internal_zone_open_services }}" | ||
public: "{{ public_zone_open_services }}" | ||
work: "{{ work_zone_open_services }}" | ||
firewalld_open_zone_services: | ||
internal: "{{ firewalld_internal_zone_open_services }}" | ||
public: "{{ firewalld_public_zone_open_services }}" | ||
work: "{{ firewalld_work_zone_open_services }}" | ||
|
||
zone_sources: | ||
internal: "{{ internal_zone_sources }}" | ||
public: "{{ public_zone_sources }}" | ||
work: "{{ work_zone_sources }}" | ||
firewalld_zone_sources: | ||
internal: "{{ firewalld_internal_zone_sources }}" | ||
public: "{{ firewalld_public_zone_sources }}" | ||
work: "{{ firewalld_work_zone_sources }}" | ||
|
||
zone_ports: | ||
internal: "{{ internal_zone_ports }}" | ||
public: "{{ public_zone_ports }}" | ||
work: "{{ work_zone_ports }}" | ||
firewalld_zone_ports: | ||
internal: "{{ firewalld_internal_zone_ports }}" | ||
public: "{{ firewalld_public_zone_ports }}" | ||
work: "{{ firewalld_work_zone_ports }}" | ||
|
||
# rich_rules should be a list of hashes | ||
rich_rules: [] | ||
firewalld_rich_rules: [] |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ tls_server_config: | |
cert_file: node_exporter.crt | ||
key_file: node_exporter.key | ||
basic_auth_users: | ||
{{ monitoring_client_exporter_username }}: {{ monitoring_client_exporter_password | password_hash('bcrypt') }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using |
||
{{ monitoring_client_exporter_username }}: {{ monitoring_client_exporter_password | password_hash }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using
bcrypt
with thepassword_hash
filter was causing an exception.