Documentation ¶
Index ¶
- type PuppetWrapper
- func (p *PuppetWrapper) AIOCmd(command string, def string) string
- func (p *PuppetWrapper) FacterCmd() string
- func (p *PuppetWrapper) FacterDomain() (string, error)
- func (p *PuppetWrapper) FacterFQDN() (string, error)
- func (p *PuppetWrapper) FacterStringFact(fact string) (string, error)
- func (p *PuppetWrapper) Setting(setting string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PuppetWrapper ¶
PuppetWrapper provides ways to interact with Puppet and Facter
func (*PuppetWrapper) AIOCmd ¶
func (p *PuppetWrapper) AIOCmd(command string, def string) string
AIOCmd looks up a command in the AIO paths, if it's not there it will try PATH and finally return a default if not in PATH
func (*PuppetWrapper) FacterCmd ¶
func (p *PuppetWrapper) FacterCmd() string
FacterCmd finds the path to facter using first AIO path then a `which` like command
func (*PuppetWrapper) FacterDomain ¶
func (p *PuppetWrapper) FacterDomain() (string, error)
FacterDomain determines the machines domain by querying facter. Returns "" when unknown
func (*PuppetWrapper) FacterFQDN ¶
func (p *PuppetWrapper) FacterFQDN() (string, error)
FacterFQDN determines the machines fqdn by querying facter. Returns "" when unknown
func (*PuppetWrapper) FacterStringFact ¶
func (p *PuppetWrapper) FacterStringFact(fact string) (string, error)
FacterStringFact looks up a facter fact, returns "" when unknown
Click to show internal directories.
Click to hide internal directories.