Documentation ¶
Index ¶
- type Wrapper
- func (p *Wrapper) AIOCmd(command string, def string) string
- func (p *Wrapper) FacterCmd() string
- func (p *Wrapper) FacterDomain() (string, error)
- func (p *Wrapper) FacterFQDN() (string, error)
- func (p *Wrapper) FacterStringFact(fact string) (string, error)
- func (p *Wrapper) Setting(setting string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wrapper ¶
Wrapper provides ways to interact with Puppet and Facter
func (*Wrapper) AIOCmd ¶
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 (*Wrapper) FacterCmd ¶
FacterCmd finds the path to facter using first AIO path then a `which` like command
func (*Wrapper) FacterDomain ¶
FacterDomain determines the machines domain by querying facter. Returns "" when unknown
func (*Wrapper) FacterFQDN ¶
FacterFQDN determines the machines fqdn by querying facter. Returns "" when unknown
func (*Wrapper) FacterStringFact ¶
FacterStringFact looks up a facter fact, returns "" when unknown
Click to show internal directories.
Click to hide internal directories.