Skip to content
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

Add metal-bmc configuration for allowed CIDRs. #208

Merged
merged 1 commit into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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