options.go 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Copyright 2019 Yunion
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. package options
  15. import (
  16. "yunion.io/x/cloudmux/pkg/multicloud/esxi"
  17. common_options "yunion.io/x/onecloud/pkg/cloudcommon/options"
  18. )
  19. type EsxiOptions struct {
  20. common_options.CommonOptions
  21. ListenInterface string `help:"Master address of host server" default:"br0"`
  22. ListenAddress string `help:"Host serve IP address to select when multiple address bind to ListenInterface"`
  23. EsxiAgentPath string `default:"/opt/cloud/workspace/esxi_agent" help:"Path for esxi agent configuration files"`
  24. ImageCachePath string `help:"Path for storing image caches"`
  25. ImageCacheLimit int `help:"Maximal storage space for image caching, in GB" default:"20"`
  26. AgentTempPath string `help:"Path for ESXI Agent"`
  27. AgentTempLimit int `help:"Maximal storage space for ESXi agent, in GB" default:"20"`
  28. LinuxDefaultRootUser bool `help:"Default account for Linux system is root" default:"false"`
  29. WindowsDefaultAdminUser bool `help:"Default account for Windows system is Administrator" default:"true"`
  30. DefaultImageSaveFormat string `help:"Default image save format, default is vmdk, canbe qcow2" default:"vmdk"`
  31. Zone string `help:"Zone where the agent locates"`
  32. DeployServerSocketPath string `help:"Deploy server listen socket path" default:"/var/run/onecloud/deploy.sock"`
  33. HostDelayTaskWorkerCount int `default:"8" help:"Host delay worker thread count, default is 8"`
  34. EnableFolderNameUUID bool `default:"false" help:"Enable folder name uuid"`
  35. esxi.EsxiOptions
  36. }
  37. var (
  38. Options EsxiOptions
  39. )