Skip to content

Commit

Permalink
Add install_args option to flatcar config
Browse files Browse the repository at this point in the history
  • Loading branch information
Thor77 committed Jul 28, 2022
1 parent 6a929ce commit ad2d037
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ type hcloudConfig struct {

type flatcarConfig struct {
InstallScript string `toml:"install_script"`
InstallArgs string `toml:"install_args"`
Version string
ConfigTemplate string `toml:"config_template"`
TemplateStatic map[string]string `toml:"template_static"`
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ func main() {
"apt update",
"apt install -y gawk",
fmt.Sprintf("chmod +x %s", installScriptTarget),
fmt.Sprintf("%s -s -i %s -V %s", installScriptTarget, ignitionTarget, cfg.Flatcar.Version),
fmt.Sprintf("%s -s -i %s -V %s %s", installScriptTarget, ignitionTarget, cfg.Flatcar.Version, cfg.Flatcar.InstallArgs),
"shutdown -r now",
}
for _, command := range commands {
Expand Down

0 comments on commit ad2d037

Please sign in to comment.