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

Introduce metal-core sync schedule. #254

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
3 changes: 2 additions & 1 deletion partition/roles/metal-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ You can look up all the default values of this role [here](defaults/main/main.ya
| metal_core_log_level | | The metal-core log level |
| metal_core_rack_id | yes | The rack id describing the rack in which the leaf switches are contained. Can be a logical rack name and is used by the metal-api to identify the switch pair |
| metal_core_reconfigure_switch | | If set to true, metal-core will automatically reconfigure files on the switch |
| metal_core_reconfigure_switch_interval | | The interval in which the switch config gets applied from information received from the metal-api |
| metal_core_sync_cron_schedule | | The cron schedule in which the switch config gets applied from information received from the metal-api (supports six fields including seconds) |
| metal_core_sync_delay | | A delay applied after a triggered sync to allow switches in the same rack to sync at different points in time |
| metal_core_grpc_address | | The address (host:port) of the metal-api gRPC server |
| metal_core_grpc_cert_dir | | Path to the gRPC certificate files on the host machine |
| metal_core_grpc_ca_cert | | The gRPC CA certificate content |
Expand Down
3 changes: 2 additions & 1 deletion partition/roles/metal-core/defaults/main/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ metal_core_hmac_key: change-me
metal_core_rack_id:

metal_core_reconfigure_switch: true
metal_core_reconfigure_switch_interval: 10s
metal_core_sync_cron_schedule: "*/20 * * * * *"
metal_core_sync_delay: 0s

metal_core_grpc_address: "{{ metal_partition_metal_api_grpc_address }}"
metal_core_grpc_cert_dir: "{{ metal_partition_metal_api_grpc_cert_dir }}"
Expand Down
3 changes: 2 additions & 1 deletion partition/roles/metal-core/templates/metal-core-env.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ METAL_CORE_METAL_API_BASEPATH: "{{ metal_partition_metal_api_basepath }}"
METAL_CORE_HMAC_KEY: "{{ metal_partition_metal_api_hmac_edit_key }}"
METAL_CORE_LOG_LEVEL: "{{ metal_core_log_level }}"
METAL_CORE_RECONFIGURE_SWITCH: "{{ metal_core_reconfigure_switch }}"
METAL_CORE_RECONFIGURE_SWITCH_INTERVAL: "{{ metal_core_reconfigure_switch_interval }}"
METAL_CORE_SYNC_SCHEDULE: "{{ metal_core_sync_cron_schedule }}"
METAL_CORE_SYNC_DELAY: "{{ metal_core_sync_delay }}"
{% if metal_partition_mgmt_gateway %}
METAL_CORE_MANAGEMENT_GATEWAY: "{{ metal_partition_mgmt_gateway }}"
{% endif %}
Expand Down