mirror of
https://github.com/davidallendj/configurator.git
synced 2025-12-20 11:37:00 -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
|
// apply template substitutions and return output as byte array
|
||||||
return generator.ApplyTemplates(generator.Mappings{
|
return generator.ApplyTemplates(generator.Mappings{
|
||||||
"server_opts": "",
|
"plugin_name": g.GetName(),
|
||||||
"global_opts": "",
|
"plugin_version": g.GetVersion(),
|
||||||
|
"plugin_description": g.GetDescription(),
|
||||||
|
"server_opts": "",
|
||||||
|
"global_opts": "",
|
||||||
}, target.Templates...)
|
}, target.Templates...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -65,8 +65,11 @@ func (g *Dhcpd) Generate(config *configurator.Config, opts ...util.Option) (gene
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return generator.ApplyTemplates(generator.Mappings{
|
return generator.ApplyTemplates(generator.Mappings{
|
||||||
"compute_nodes": compute_nodes,
|
"plugin_name": g.GetName(),
|
||||||
"node_entries": "",
|
"plugin_version": g.GetVersion(),
|
||||||
|
"plugin_description": g.GetDescription(),
|
||||||
|
"compute_nodes": compute_nodes,
|
||||||
|
"node_entries": "",
|
||||||
}, target.Templates...)
|
}, 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
|
// apply template substitutions and return output as byte array
|
||||||
return generator.ApplyTemplates(generator.Mappings{
|
return generator.ApplyTemplates(generator.Mappings{
|
||||||
"name": g.GetName(),
|
"plugin_name": g.GetName(),
|
||||||
"output": output,
|
"plugin_version": g.GetVersion(),
|
||||||
|
"plugin_description": g.GetDescription(),
|
||||||
|
"dhcp-hosts": output,
|
||||||
}, target.Templates...)
|
}, target.Templates...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue