openbsd-ports/sysutils/amazon-ssm-agent/patches/patch-agent_appconfig_constants_unix_go
2017-11-17 09:14:50 +00:00

75 lines
3.5 KiB
Plaintext

$OpenBSD: patch-agent_appconfig_constants_unix_go,v 1.3 2017/11/17 09:14:50 ajacoutot Exp $
Index: agent/appconfig/constants_unix.go
--- agent/appconfig/constants_unix.go.orig
+++ agent/appconfig/constants_unix.go
@@ -18,55 +18,55 @@ package appconfig
const (
// DefaultProgramFolder is the default folder for SSM
- DefaultProgramFolder = "/etc/amazon/ssm/"
+ DefaultProgramFolder = "${SYSCONFDIR}/amazon/ssm/"
// AppConfigPath is the path of the AppConfig
AppConfigPath = DefaultProgramFolder + AppConfigFileName
// PackageRoot specifies the directory under which packages will be downloaded and installed
- PackageRoot = "/var/lib/amazon/ssm/packages"
+ PackageRoot = "/var/db/amazon/ssm/packages"
// PackageLockRoot specifies the directory under which package lock files will reside
- PackageLockRoot = "/var/lib/amazon/ssm/locks/packages"
+ PackageLockRoot = "/var/db/amazon/ssm/locks/packages"
// PackagePlatform is the platform name to use when looking for packages
PackagePlatform = "linux"
// DaemonRoot specifies the directory where daemon registration information is stored
- DaemonRoot = "/var/lib/amazon/ssm/daemons"
+ DaemonRoot = "/var/db/amazon/ssm/daemons"
// LocalCommandRoot specifies the directory where users can submit command documents offline
- LocalCommandRoot = "/var/lib/amazon/ssm/localcommands"
+ LocalCommandRoot = "/var/db/amazon/ssm/localcommands"
// LocalCommandRootSubmitted is the directory where locally submitted command documents
// are moved when they have been picked up
- LocalCommandRootSubmitted = "/var/lib/amazon/ssm/localcommands/submitted"
- LocalCommandRootCompleted = "/var/lib/amazon/ssm/localcommands/completed"
+ LocalCommandRootSubmitted = "/var/db/amazon/ssm/localcommands/submitted"
+ LocalCommandRootCompleted = "/var/db/amazon/ssm/localcommands/completed"
// LocalCommandRootInvalid is the directory where locally submitted command documents
// are moved if the service cannot validate the document (generally impossible via cli)
- LocalCommandRootInvalid = "/var/lib/amazon/ssm/localcommands/invalid"
+ LocalCommandRootInvalid = "/var/db/amazon/ssm/localcommands/invalid"
// DownloadRoot specifies the directory under which files will be downloaded
DownloadRoot = "/var/log/amazon/ssm/download/"
// DefaultDataStorePath represents the directory for storing system data
- DefaultDataStorePath = "/var/lib/amazon/ssm/"
+ DefaultDataStorePath = "/var/db/amazon/ssm/"
// EC2ConfigDataStorePath represents the directory for storing ec2 config data
- EC2ConfigDataStorePath = "/var/lib/amazon/ec2config/"
+ EC2ConfigDataStorePath = "/var/db/amazon/ec2config/"
// EC2ConfigSettingPath represents the directory for storing ec2 config settings
- EC2ConfigSettingPath = "/var/lib/amazon/ec2configservice/"
+ EC2ConfigSettingPath = "/var/db/amazon/ec2configservice/"
// UpdaterArtifactsRoot represents the directory for storing update related information
- UpdaterArtifactsRoot = "/var/lib/amazon/ssm/update/"
+ UpdaterArtifactsRoot = "/var/db/amazon/ssm/update/"
// DefaultPluginPath represents the directory for storing plugins in SSM
- DefaultPluginPath = "/var/lib/amazon/ssm/plugins"
+ DefaultPluginPath = "/var/db/amazon/ssm/plugins"
// ManifestCacheDirectory represents the directory for storing all downloaded manifest files
- ManifestCacheDirectory = "/var/lib/amazon/ssm/manifests"
+ ManifestCacheDirectory = "/var/db/amazon/ssm/manifests"
// List all plugin names, unfortunately golang doesn't support const arrays of strings