# salt.runners.manage

General management functions for salt, tools like seeing what hosts are up and what hosts are down

`salt.runners.manage.` `bootstrap`(version='develop', script='http://bootstrap.saltstack.org', hosts='')

  Bootstrap minions with salt-bootstrap

  Options:
    version: git tag of version to install [default: develop] script: Script to execute [default: http://bootstrap.saltstack.org] hosts: Comma separated hosts [example: hosts="host1.local,host2.local"]

  CLI Example:

      salt-run manage.bootstrap hosts="host1,host2"
      salt-run manage.bootstrap hosts="host1,host2" version="v0.17"
      salt-run manage.bootstrap hosts="host1,host2" version="v0.17" script="https://raw.github.com/saltstack/salt-bootstrap/develop/bootstrap-salt.sh"

`salt.runners.manage.` `bootstrap_psexec`(hosts='', master=None, version=None, arch='win32', installer_url=None, username=None, password=None)

  Bootstrap Windows minions via PsExec.

  hosts
    Comma separated list of hosts to deploy the Windows Salt minion.
  master
    Address of the Salt master passed as an argument to the installer.
  version
    Point release of installer to download. Defaults to the most recent.
  arch
    Architecture of installer to download. Defaults to win32.
  installer_url
    URL of minion installer executable. Defaults to the latest version from http://docs.saltstack.com/downloads
  username
    Optional user name for login on remote computer.
  password
    Password for optional username. If omitted, PsExec will prompt for one to be entered for each host.

  CLI Example:

      salt-run manage.bootstrap_psexec hosts='host1,host2'
      salt-run manage.bootstrap_psexec hosts='host1,host2' version='0.17' username='DOMAIN\Administrator'
      salt-run manage.bootstrap_psexec hosts='host1,host2' installer_url='http://exampledomain/salt-installer.exe'

`salt.runners.manage.` `down`(removekeys=False)

  Print a list of all the down or unresponsive salt minions Optionally remove keys of down minions

  CLI Example:

      salt-run manage.down
      salt-run manage.down removekeys=True

`salt.runners.manage.` `key_regen`()

  This routine is used to regenerate all keys in an environment. This is invasive! ALL KEYS IN THE SALT ENVIRONMENT WILL BE REGENERATED!!

  The key_regen routine sends a command out to minions to revoke the master key and remove all minion keys, it then removes all keys from the master and prompts the user to restart the master. The minions will all reconnect and keys will be placed in pending.

  After the master is restarted and minion keys are in the pending directory execute a salt-key -A command to accept the regenerated minion keys.

  The master must be restarted within 60 seconds of running this command or the minions will think there is something wrong with the keys and abort.

  Only Execute this runner after upgrading minions and master to 0.15.1 or higher!

  CLI Example:

      salt-run manage.key_regen

`salt.runners.manage.` `safe_accept`(target, expr_form='glob')

  Accept a minion's public key after checking the fingerprint over salt-ssh

  CLI Example:

      salt-run manage.safe_accept my_minion
      salt-run manage.safe_accept minion1,minion2 expr_form=list

`salt.runners.manage.` `status`(output=True)

  Print the status of all known salt minions

  CLI Example:

      salt-run manage.status

`salt.runners.manage.` `up`()

  Print a list of all of the minions that are up

  CLI Example:

      salt-run manage.up

`salt.runners.manage.` `versions`()

  Check the version of active minions

  CLI Example:

      salt-run manage.versions

Current Salt release: 0.17.1

#### Previous topic

salt.runners.launchd

#### Next topic

salt.runners.network

### Quick search

Enter search terms or a module, class or function name.

### Upcoming SaltStack Events

My conferences on Lanyrd