github.com/whamcloud/lemur@v0.0.0-20190827193804-4655df8a52af/cmd/lhsmd/config/default.go (about)

     1  // Copyright (c) 2018 DDN. All rights reserved.
     2  // Use of this source code is governed by a MIT-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package config
     6  
     7  const (
     8  	// DefaultConfigDir is the default agent config directory
     9  	DefaultConfigDir = "/etc/lhsmd"
    10  	// AgentConfigFile is the agent config file in config dir
    11  	AgentConfigFile = "agent"
    12  	// DefaultConfigPath is the default path to the agent config file
    13  	DefaultConfigPath = DefaultConfigDir + "/" + AgentConfigFile
    14  
    15  	// ConfigDirEnvVar is the name of an environment variable which
    16  	// can be set to change the location of config files
    17  	// (e.g. for development)
    18  	ConfigDirEnvVar = "LHSMD_CONFIG_DIR"
    19  
    20  	// AgentConnEnvVar is the environment variable containing a connect
    21  	// string for plugins to use when registering with the agent
    22  	AgentConnEnvVar = "LHSMD_AGENT_CONNECTION"
    23  
    24  	// PluginMountpointEnvVar is the environment variable containing
    25  	// a Lustre client mountpoint to be used by the plugin
    26  	PluginMountpointEnvVar = "LHSMD_CLIENT_MOUNTPOINT"
    27  
    28  	// DefaultTransport is the default agent<->plugin transport
    29  	DefaultTransport = "grpc"
    30  
    31  	// DefaultTransportSocketDir is default directory to store the unix socket
    32  	DefaultTransportSocketDir = "/var/run/lhsmd"
    33  
    34  	// DefaultAgentMountRoot is the root directory for agent client mounts
    35  	DefaultAgentMountRoot = "/mnt/lhsmd"
    36  
    37  	// DefaultPluginDir is the default location for plugin binaries
    38  	DefaultPluginDir = "/usr/libexec/lhsmd"
    39  )
    40  
    41  // DefaultClientMountOptions is the default set of Lustre client
    42  // mount options
    43  var DefaultClientMountOptions = []string{"user_xattr"}