Skip to content

Commit

Permalink
Enter DNS and NTP server in InstallerConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
simcod committed Sep 13, 2024
1 parent 24a3345 commit 9614ed9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ func (h *hammer) writeInstallerConfig(machine *models.V1MachineResponse, rootUUi
RaidEnabled: raidEnabled,
RootUUID: rootUUiD,
FirewallRules: alloc.FirewallRules,
DNSServers: alloc.DNSServers,
NTPServers: alloc.NtpServers,
}

yamlContent, err := yaml.Marshal(y)
Expand Down
4 changes: 4 additions & 0 deletions pkg/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ type InstallerConfig struct {
RootUUID string `yaml:"root_uuid"`
// FirewallRules if not empty firewall rules to enforce
FirewallRules *models.V1FirewallRules `yaml:"firewall_rules"`
// DNSServers for the machine
DNSServers []string `yaml:"dns_servers"`
// NTPServers for the machine
NTPServers []string `yaml:"ntp_servers"`
}

// FIXME legacy structs remove once old images are gone
Expand Down

0 comments on commit 9614ed9

Please sign in to comment.