mirror of
https://github.com/davidallendj/configurator.git
synced 2025-12-20 03:27:02 -07:00
Updated generator plugins
This commit is contained in:
parent
7c266e6406
commit
f8f76342ac
3 changed files with 14 additions and 6 deletions
|
|
@ -61,8 +61,11 @@ func (g *Conman) Generate(config *configurator.Config, opts ...util.Option) (map
|
|||
|
||||
// apply template substitutions and return output as byte array
|
||||
return generator.ApplyTemplates(generator.Mappings{
|
||||
"server_opts": "",
|
||||
"global_opts": "",
|
||||
"plugin_name": g.GetName(),
|
||||
"plugin_version": g.GetVersion(),
|
||||
"plugin_description": g.GetDescription(),
|
||||
"server_opts": "",
|
||||
"global_opts": "",
|
||||
}, target.Templates...)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -65,8 +65,11 @@ func (g *Dhcpd) Generate(config *configurator.Config, opts ...util.Option) (gene
|
|||
}
|
||||
}
|
||||
return generator.ApplyTemplates(generator.Mappings{
|
||||
"compute_nodes": compute_nodes,
|
||||
"node_entries": "",
|
||||
"plugin_name": g.GetName(),
|
||||
"plugin_version": g.GetVersion(),
|
||||
"plugin_description": g.GetDescription(),
|
||||
"compute_nodes": compute_nodes,
|
||||
"node_entries": "",
|
||||
}, target.Templates...)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -75,8 +75,10 @@ func (g *DnsMasq) Generate(config *configurator.Config, opts ...util.Option) (ma
|
|||
|
||||
// apply template substitutions and return output as byte array
|
||||
return generator.ApplyTemplates(generator.Mappings{
|
||||
"name": g.GetName(),
|
||||
"output": output,
|
||||
"plugin_name": g.GetName(),
|
||||
"plugin_version": g.GetVersion(),
|
||||
"plugin_description": g.GetDescription(),
|
||||
"dhcp-hosts": output,
|
||||
}, target.Templates...)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue