Skip to content

Commit

Permalink
Add variable for configuring ntp servers (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
simcod authored Sep 13, 2024
1 parent 5327bbd commit b64184b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions partition/roles/pixiecore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ Deploys pixiecore in a systemd-managed Docker container.
| pixiecore_metal_hammer_logging_cert | | set metal-hammer to send logs to a remote endpoint and authenticate with this cert for mtls auth |
| pixiecore_metal_hammer_logging_key | | set metal-hammer to send logs to a remote endpoint and authenticate with this key for mtls auth |
| pixiecore_metal_hammer_logging_tls_insecure | | set metal-hammer to send logs to a remote endpoint without verifying the tls certificate for mtls auth |
| pixiecore_metal_hammer_ntp_servers | | A list of custom NTP servers |
| pixiecore_additional_volume_mounts | | Volumes to mount into the pixiecore, besides the default ones |
1 change: 1 addition & 0 deletions partition/roles/pixiecore/defaults/main/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ pixiecore_metal_hammer_logging_password:
pixiecore_metal_hammer_logging_cert:
pixiecore_metal_hammer_logging_key:
pixiecore_metal_hammer_logging_tls_insecure: false
pixiecore_metal_hammer_ntp_servers: []

pixiecore_additional_volume_mounts: []
3 changes: 3 additions & 0 deletions partition/roles/pixiecore/templates/pixie-cmd.j2
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@
{% if pixiecore_metal_hammer_logging_tls_insecure %}
- "--metal-hammer-logging-tls-insecure={{ pixiecore_metal_hammer_logging_tls_insecure | lower }}"
{% endif %}
{% if pixiecore_metal_hammer_ntp_servers %}
- "--ntp-servers={{ pixiecore_metal_hammer_ntp_servers | join(',') }}"
{% endif %}

0 comments on commit b64184b

Please sign in to comment.