欲忘树 发表于 2018-1-3 22:28:04

saltstack 一:安装之快速安装 bootstap script

$ sh bootstrap-salt.sh -h  

  Usage :bootstrap-salt.sh <install-type> <install-type-args>
  

  Installation types:
  - stable (default)
  - stable (ubuntu specific)
  - daily(ubuntu specific)
  - testing (redhat specific)
  - git
  

  Examples:
  - bootstrap-salt.sh
  - bootstrap-salt.sh stable
  - bootstrap-salt.sh stable 2014.7
  - bootstrap-salt.sh daily
  - bootstrap-salt.sh testing
  - bootstrap-salt.sh git
  - bootstrap-salt.sh git develop
  - bootstrap-salt.sh git v0.17.0
  - bootstrap-salt.sh git 8c3fadf15ec183e5ce8c63739850d543617e4357
  

  Options:
  -hDisplay this message # 显示帮助
  -vDisplay script version # 显示脚本版本
  -nNo colours.
  -DShow debug output. # 显示debug输出
  -cTemporary configuration directory
  -gSalt repository URL. (default: git://github.com/saltstack/salt.git) # 指定salt repo 地址
  -GInstead of cloning from git://github.com/saltstack/salt.git, clone from https://github.com/saltstack/salt.git (Usually necessary on systems which have the regular git protocol port blocked, where https usually is not)
  -kTemporary directory holding the minion keys which will pre-seed
  the master.
  -sSleep time used when waiting for daemons to start, restart and when checking
  for the services running. Default: 3
  -MAlso install salt-master # 总是安装 master
  -SAlso install salt-syndic
  -NDo not install salt-minion # 总是安装 minion
  -XDo not start daemons after installation
  -COnly run the configuration function. This option automatically
  bypasses any installation.
  -PAllow pip based installations. On some distributions the required salt
  packages or its dependencies are not available as a package for that
  distribution. Using this flag allows the script to use pip as a last
  resort method. NOTE: This only works for functions which actually
  implement pip based installations.
  -FAllow copied files to overwrite existing(config, init.d, etc)
  -UIf set, fully upgrade the system prior to bootstrapping salt
  -KIf set, keep the temporary files in the temporary directories specified
  with -c and -k.
  -IIf set, allow insecure connections while downloading any files. For
  example, pass '--no-check-certificate' to 'wget' or '--insecure' to 'curl'
  -APass the salt-master DNS name or IP. This will be stored under
  ${BS_SALT_ETC_DIR}/minion.d/99-master-address.conf

  -iPass the salt-minion>  ${BS_SALT_ETC_DIR}/minion_id
  -LInstall the Apache Libcloud package if possible(required for salt-cloud)
  -pExtra-package to install while installing salt dependencies. One package
  per -p flag. You're responsible for providing the proper package name.
  -dDisable check_service functions. Setting this flag disables the
  'install_<distro>_check_services' checks. You can also do this by
  touching /tmp/disable_salt_checks on the target host. Defaults ${BS_FALSE}
  -HUse the specified http proxy for the installation
  -ZEnable external software source for newer ZeroMQ(Only available for RHEL/CentOS/Fedora/Ubuntu based distributions)
  -bAssume that dependencies are already installed and software sources are set up.
  If git is selected, git tree is still checked out as dependency step.
页: [1]
查看完整版本: saltstack 一:安装之快速安装 bootstap script