github.com/Pankov404/juju@v0.0.0-20150703034450-be266991dceb/feature/flags.go (about) 1 // Copyright 2015 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 // The feature package defines the names of the current feature flags. 5 package feature 6 7 // TODO (anastasiamac 2015-03-02) 8 // Features that have commands that can be blocked, 9 // command list for "juju block" and "juju unblock" 10 // needs to be maintained until we can dynamically discover 11 // these commands. 12 13 // JES stands for Juju Environment Server and controls access 14 // to the apiserver endpoints, api client and CLI commands. 15 const JES = "jes" 16 17 // LogErrorStack is a developer feature flag to have the LoggedErrorStack 18 // function in the utils package write out the error stack as defined by the 19 // errors package to the logger. The ability to log the error stack is very 20 // useful in those error cases where you really don't expect there to be a 21 // failure. This means that the developers with this flag set will see the 22 // stack trace in the log output, but normal deployments never will. 23 const LogErrorStack = "log-error-stack" 24 25 // EnvironmentsCacheFile is the feature flag that guards the writing of the 26 // new $JUJU_HOME/environments/cache.yaml file. If this flag is set, new 27 // environments will be written to the cache file rather than a JENV file. 28 // As JENV files are updated, they are migrated to the cache file and the 29 // JENV file removed. 30 const EnvironmentsCacheFile = "env-cache" 31 32 // LegacyUpstart is used to indicate that the version-based init system 33 // discovery code (service.VersionInitSystem) should return upstart 34 // instead of systemd for vivid and newer. 35 const LegacyUpstart = "legacy-upstart" 36 37 // AddressAllocation is used to indicate that LXC and KVM containers 38 // on providers that support that (currently only MAAS and EC2) will 39 // use statically allocated IP addresses. 40 const AddressAllocation = "address-allocation" 41 42 // DbLog is the the feature which has Juju's logs go to 43 // MongoDB instead of to all-machines.log using rsyslog. 44 const DbLog = "db-log" 45 46 // CloudSigma enables the CloudSigma provider. 47 const CloudSigma = "cloudsigma" 48 49 // VSphereProvider enables the generic vmware provider. 50 const VSphereProvider = "vsphere-provider"