Saltstack-gdlwolf Self-study summary second: Salt common help find commands

Source: Internet
Author: User
Tags saltstack

bookon the Back: Saltstack-gdlwolf Self-study summary of the first:saltstack Installation Deployment (YUM installation)

Connection Address:http://gdlwolf.blog.51cto.com/343866/1786901

this blog main record in the download saltstack commonly used help commands, of course, you can also go to the Saltstack official inquiry, official website address:

Some of the programs that salt has officially provided

Https://github.com/saltstack-formulas

Understand Yaml

Http://docs.saltstack.cn/topics/yaml/index.html

Salt Module Connection

Https://docs.saltstack.com/en/latest/ref/states/all/index.html

Saltstack file Operations State There are a number of ways

Https://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html

1 , Master End -->salt command Help View


[[Email protected] salt] #salt  -husage: salt [options] ' <target> '  < function> [arguments] options:  --version              show program ' s version number andexit  -- Versions-report     show program ' S dependencies version numberand  exit  -h, --help             show this help message and exit  --saltfile=saltfile    specify the path to a saltfile. if notpassed, one                          will be searched for inthe current working directory   -c config_dir, --config-dir=config_dir                         pass in an alternativeconfiguration  directory.                         default: /etc/salt  -t timeout,  --timeout=TIMEOUT                         change the timeout, ifapplicable,  for the running                         command; default=5  -- hard-crash          raise any original  exception ratherthan exiting                         gracefully Default:False  -s, --static           return the data from minions as agroup  after they all                         return.  -p, --progress         display a progress graph. [requires ' ProgressBar '                          python package.]   #以下省略N多行


2 , Minion End -->salt-call Help View


[[email protected] home]# salt-call-husage: salt-call [options]<function>  [arguments] salt call is used to executemodule functions locally  on a minion options:  --version             show program ' s versionnumber and exit  --versions-report      show program ' s dependencies version numberand exit   -h, --help            show this  help message and exit  --saltfile=saltfile   specify the  path to a Saltfile. If notpassed, one                          Will be searched for inthe current working directory  -c config_dir, -- config-dir=config_dir                         pass in an alternativeconfiguration  directory.                         Default: /etc/salt  --hard-crash           Raise any original exception  ratherthan exiting                         gracefully Default:False  -g,  --grains          return the information  Generated bythe salt grains  -m module_dirs, --module-dirs=module_dirs                         Specify  an additionaldirectory to pull modules from.                          multiple directoriescan be provided by passing  '-m                          /--module-dirs ' multiple times.  -d, --doc, --documentation                          Return thedocumentation for the specified module or       &Nbsp;                 for  all modules if noneare specified.  --master=MASTER        Specify the master to use. The minionmust be                          authenticated with themaster. If this option is                          omitted, the masteroptions from the minion config                          will be used. If multimasters are set  Up the first#以下省略N多行 


3 , Master End - View Saltstack built-in module information


3.1. Simple Find, no details included

Salt ' salt02 ' sys.list_modules

650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M00/82/78/wKiom1dWWWexWajXAAA_xguF59Y897.jpg "title=" 1.jpg " alt= "Wkiom1dwwwexwajxaaa_xguf59y897.jpg"/>



3.2. A more detailed view Salt Module Information

Salt ' salt02 ' sys.list_functions

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/82/77/wKioL1dWWpjji-YHAABsL27Tvcw387.jpg-wh_500x0-wm_3 -wmp_4-s_2231721056.jpg "title=" 1.jpg "alt=" Wkiol1dwwpjji-yhaabsl27tvcw387.jpg-wh_50 "/>



3.3. A more detailed view Salt A module information (for example, Status )

Salt ' salt02 ' sys.list_functions status

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/82/78/wKiom1dWWbei_5cgAABKP-nm3NQ813.jpg-wh_500x0-wm_3 -wmp_4-s_2326477986.jpg "title=" 1.jpg "alt=" Wkiom1dwwbei_5cgaabkp-nm3nq813.jpg-wh_50 "/>


3.4. View More Salt built-in module with sample

Salt ' salt02 ' Sys.doc

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/82/77/wKioL1dWWwOCYQieAAC1Z2sRuGs223.jpg-wh_500x0-wm_3 -wmp_4-s_3985838340.jpg "title=" 1.jpg "alt=" Wkiol1dwwwocyqieaac1z2srugs223.jpg-wh_50 "/>


3.5. View More Salt A module is built in, such as Status ), with sample


Salt ' salt02 ' sys.doc status

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/82/77/wKioL1dWWyuDcrqOAABtSXbUfeY705.jpg-wh_500x0-wm_3 -wmp_4-s_3995682614.jpg "title=" 1.jpg "alt=" Wkiol1dwwyudcrqoaabtsxbufey705.jpg-wh_50 "/>


Saltstack-gdlwolf Self-study summary second: Salt common help find commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.