Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.98 KB | None | 0 0
  1. ryan@ip-10-0-9-9:/www/private/environment$ sudo salt 'prod-lb-1' state.highstate test=True
  2. prod-lb-1.redshelf.com:
  3.     Passed invalid arguments to state.highstate: expected string or buffer
  4.    
  5.         Retrieve the state data from the salt master for this minion and execute it
  6.    
  7.         test
  8.             Notify states to execute in test-only (dry-run) mode.
  9.    
  10.             Sets the ``test`` variable in the minion ``opts`` for the duration of
  11.             the state run.
  12.         pillar
  13.             Custom Pillar data can be passed with the ``pillar`` kwarg. Values
  14.             passed here will override hard-coded Pillar values.
  15.         queue : ``False``
  16.             Instead of failing immediately when another state run is in progress,
  17.             queue the new state run to begin running once the other has finished.
  18.    
  19.             This option starts a new thread for each queued state run so use this
  20.             option sparingly.
  21.         localconfig:
  22.             Instead of using running minion opts, load ``localconfig`` and merge that
  23.             with the running minion opts. This functionality is intended for using
  24.             "roots" of salt directories (with their own minion config, pillars,
  25.             file_roots) to run highstate out of.
  26.    
  27.         mock:
  28.             The mock option allows for the state run to execute without actually
  29.             calling any states. This then returns a mocked return which will show
  30.             the requisite ordering as well as fully validate the state run.
  31.    
  32.             .. versionadded:: 2015.8.4
  33.    
  34.         CLI Example:
  35.    
  36.         .. code-block:: bash
  37.    
  38.             salt '*' state.highstate
  39.    
  40.             salt '*' state.highstate whitelist=sls1_to_run,sls2_to_run
  41.             salt '*' state.highstate exclude=sls_to_exclude
  42.             salt '*' state.highstate exclude="[{'id': 'id_to_exclude'}, {'sls': 'sls_to_exclude'}]"
  43.    
  44.             salt '*' state.highstate pillar="{foo: 'Foo!', bar: 'Bar!'}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement