Documentation ¶
Overview ¶
Package mon provides methods for setting up Ceph configuration for mons daemons.
Index ¶
- Constants
- func FlattenMonEndpoints(mons map[string]*cephconfig.MonInfo) string
- func GetMonDataDirPath(configDir, monName string) string
- func GetMonRunDirPath(configDir, monName string) string
- func Initialize(context *clusterd.Context, config *Config) error
- func ParseMonEndpoints(input string) map[string]*cephconfig.MonInfo
- type Config
Constants ¶
const ( // InitCommand is the `rook ceph` subcommand which will perform mon initialization InitCommand = "mon-init" // DefaultPort is the default port Ceph mons use to communicate amongst themselves. DefaultPort = 6790 )
Variables ¶
This section is empty.
Functions ¶
func FlattenMonEndpoints ¶
func FlattenMonEndpoints(mons map[string]*cephconfig.MonInfo) string
FlattenMonEndpoints returns a comma-delimited string of all mons and endpoints in the form <mon-name>=<mon-endpoint>
func GetMonDataDirPath ¶ added in v0.9.0
GetMonDataDirPath returns the path of a given monitor's data dir. The data dir is where a mon's '--mon-data' flag should be configured.
func GetMonRunDirPath ¶ added in v0.9.0
GetMonRunDirPath returns the path of a given monitor's run dir. The run dir is where a mon's monmap file should be stored.
func Initialize ¶ added in v0.9.0
Initialize generates configuration files for a Ceph mon
func ParseMonEndpoints ¶
func ParseMonEndpoints(input string) map[string]*cephconfig.MonInfo
ParseMonEndpoints parses a flattened representation of mons and endpoints in the form <mon-name>=<mon-endpoint> and returns a list of Ceph mon configs.
Types ¶
type Config ¶
type Config struct { Name string Cluster *cephconfig.ClusterInfo Port int32 }
Config contains the necessary parameters Rook needs to know to set up a mon for a Ceph cluster.