Today, we will try again, add a piece of data disk, and an intranet network card.This test command is still done through profile.We need to add some data to _grains's virt_disk_nic.py.As follows:Def disk_nic ():Grains = {}grains[' virt ']={' disk ':
Salt Data Synchronization ModeWay One:Minion automatically synchronizes data to master:The default is 60 seconds to automatically synchronize data onceAutomatic synchronization time interval is determined by parameter Loop_interval (minion
Here is a brief introduction of State.sls and State.highstate and the difference, this is their own use in the process of a little experience it.Environment Description: Salt 2015.5.0 (Lithium)Top.sls 650) this.width=650; "src="
The following problems are encountered:[Email protected]:/etc/salt# salt-key-lAccepted Keys:unaccepted Keys:Rejected Keys:[Email protected]:/etc/salt# salt-master-l Debug[DEBUG] Reading Configuration From/etc/salt/master[DEBUG] Using Cached Minion
Today to the official website A Salt event test example to revise and summarize, in order to better understand the use of the event, the following tests are based on the official website of the steps to doTest 1:Write a Python script on the master
Displays the currently alive Minion[[email protected]_server pillar]# salt-run manage.up108_server134_server display status [[email Protected]_server pillar]# salt-run manage.statusdown:up:-108_server-134_server display version [[Email
Salt Master End Custom Grains project, and issued to the Minion end, for example, issued Max_open_file.1. Create grains_openfile.py under directory _grains on the Salt master side
Import Os,sys,commandsDef grains_openfile ():‘‘‘Return OS max
vi. use of grains and Cmd.runGrains.items is mainly used to collect minion information, convenient for information collection, follow-up pillar use, according to hardware information automatic matching configuration file, basic usage:#salt "*"
Managed manage a template file, load it into each node and run the appropriate configurationSalt.states.file. managed (name, source=none, source_hash= ", user=none, group=none, mode=none, template=none, makedirs=false, dir_mode=none, context= None,
Rookie play Cloud computing 21: Saltstack's PillarReference:Click to open linkView Pillar Data:# salt ' * ' Pillar.itemsThe default root directory for pillar in:/srv/pillar, you can change the configuration file/etc/salt/master with the following
Add file text at Tail of fileSalt.states.file. Append (name, text=none, makedirs=false, source=none, source_hash=none , template= ' Jinja ', sources=none, source_hashes=none, defaults=none , context=none)NameThe path of the attached fileTextTo be
yum-y Install Salt-master installation, the following error occurred: file /usr/lib64/python2.6/zipfile.pyc from install of python-libs-2.6.6-66.el6_8.x86_64 conflicts with file from package python-2.6.6-36.el6.x86_64 file
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.