Documentation ¶
Index ¶
- Constants
- type CDStats
- type Pinger
- type SaltOps
- func (sop *SaltOps) GetConfDOption(conf string, key string) (interface{}, string)
- func (sop *SaltOps) GetConfOpion(conf string, key string) interface{}
- func (sop *SaltOps) SetConfDOption(conf string, key string, value interface{})
- func (sop *SaltOps) SetConfOption(conf string, key string, value interface{})
- func (sop *SaltOps) SetSaltConfigDir(cfgdir string) *SaltOps
- func (sop *SaltOps) SetSaltExecPath(execpath string) *SaltOps
- func (sop *SaltOps) StartSaltMinion()
- func (sop *SaltOps) StopSaltMinion()
- type SysOp
- type Uccd
Constants ¶
const ( CS_NEW = iota // new to the cluster CS_REGISTERED // registered in the cluster CS_ORPHANED // orphaned from the current cluster node, needs remapping CS_DELETED // deleted from the cluster, needs complete shutdown of all cluster services )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CDStats ¶
Cluster Director Stats
func NewCDStats ¶
func NewCDStats() *CDStats
func (*CDStats) GetPubKeyFp ¶
GetPubKeyFp is just reimplementation of "salt.utils.crypt.pem_finger". Salt gets fingerprint by not stripping any newlines "\n" symbol from the key cipher text.
Default location of keys is $SALT_CONFIG/pki. If path starts with "/", it is used entirely (absolute), otherwise appended to the default root of known Salt Config root path.
func (*CDStats) SetClusterDirectorURL ¶
SetClusterDirectorURL sets the main url of the Cluster Director API endpoint, or the main entry URL to the entire cluster.
func (*CDStats) SetPubKeyFP ¶
Set Salt configuration directory
func (*CDStats) SetSaltConfigDir ¶
Set Salt configuration directory
func (*CDStats) UpdateStats ¶
func (cds *CDStats) UpdateStats()
UpdateStats calls Cluster Director with the current Salt Minion fingerprint, and fetches current registered machine status and Cluster Node FQDN.
type SaltOps ¶
type SaltOps struct {
// contains filtered or unexported fields
}
SaltOps object
func (*SaltOps) GetConfDOption ¶
GetConfDOption looks for a key of the additional Salt configuration. if it was in any of config files of a ".d" directory. If none is found, an empty string is returned (and it indicates a default value is used or main config has it).
func (*SaltOps) GetConfOpion ¶
GetConfOpion looks for a key of the main Salt configuration. If none is found, an empty string is returned (and it indicates a default value is used)
func (*SaltOps) SetConfDOption ¶
SetConfOption writes a configuration option to a .d "drop-in" config file. If parameter conf is already a full path, it will be used. Otherwise new config file "/path/to/foo.d/mgr-uccd.conf" will be used.
func (*SaltOps) SetConfOption ¶
Write a configuration option to the main config file
func (*SaltOps) SetSaltConfigDir ¶
SetSaltConfigDir sets Salt configuration directory
func (*SaltOps) SetSaltExecPath ¶
SetSaltConfigDir sets Salt configuration directory
func (*SaltOps) StartSaltMinion ¶
func (sop *SaltOps) StartSaltMinion()
StartSaltMinion starts Salt Minion in background and watches it.
func (*SaltOps) StopSaltMinion ¶
func (sop *SaltOps) StopSaltMinion()
StopSaltMinion terminates currently running Salt Minion.
type SysOp ¶
type SysOp struct {
// contains filtered or unexported fields
}
///////////////////////////////
SysOp object
func (*SysOp) GetSaltOps ¶
GetSaltOps returns all methods to Salt Operation configuration on the client
type Uccd ¶
type Uccd struct {
// contains filtered or unexported fields
}
func (*Uccd) SetClusterURL ¶
SetClusterURL sets cluster main entry URL
func (*Uccd) SetMinionPEMPubKey ¶
SetMinionPEMPubKey sets PEM public key of the current minion
func (*Uccd) SetPingTimeDuration ¶
SetPingTimeDuration sets ping pause duration to ping Cluster Node
func (*Uccd) SetSaltConfigPath ¶
SetSaltConfigPath sets configuration path to the Salt Minion
func (*Uccd) SetSaltExec ¶
SetSaltConfigPath sets configuration path to the Salt Minion