Skip to content

Commit

Permalink
Add metal-bmc configuration for allowed CIDRs. (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 authored Sep 5, 2023
1 parent e5b1efb commit c7c5190
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions partition/roles/metal-bmc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@ You can look up all the default values of this role [here](defaults/main.yaml).
| metal_bmc_console_key | yes | The key for the metal-console port as a string |
| metal_bmc_console_cert_owner | | user of the created certificate files |
| metal_bmc_console_cert_group | | group of the created certificate files |
| metal_bmc_ignore_macs | | when fetching bmc reports from the dhcp lease file, the given macs are ignored |
| metal_bmc_allowed_cidrs | | when fetching bmc reports from the dhcp lease file, ips in the given cidrs are ignored |
2 changes: 1 addition & 1 deletion partition/roles/metal-bmc/defaults/main/main.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
metal_bmc_ignore_macs: []
metal_bmc_allowed_cidrs: []

metal_bmc_bmc_superuser:
metal_bmc_bmc_superuser_pwd:


metal_bmc_nsq_log_level: info
metal_bmc_nsq_tls_enabled: true
metal_bmc_nsq_cert_dir: /certs/nsq
Expand Down
1 change: 1 addition & 0 deletions partition/roles/metal-bmc/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
METAL_BMC_METAL_API_URL: "{{ metal_partition_metal_api_protocol }}://{{ metal_partition_metal_api_addr }}:{{ metal_partition_metal_api_port }}{{ metal_partition_metal_api_basepath }}"
METAL_BMC_METAL_API_HMAC_KEY: "{{ metal_partition_metal_api_hmac_edit_key }}"
METAL_BMC_IGNORE_MACS: "{{ metal_bmc_ignore_macs | join(',') }}"
METAL_BMC_ALLOWED_CIDRS: "{{ metal_bmc_allowed_cidrs | join(',') }}"
METAL_BMC_IPMI_USER: "{{ metal_bmc_bmc_superuser }}"
METAL_BMC_IPMI_PASSWORD: "{{ metal_bmc_bmc_superuser_pwd }}"
METAL_BMC_MQ_ADDRESS: "{{ metal_bmc_nsq_lookupd_addr }}"
Expand Down

0 comments on commit c7c5190

Please sign in to comment.