saltstack tutorial

Learn about saltstack tutorial, we have the largest and most updated saltstack tutorial information on alibabacloud.com

Saltstack Installing Nginx

1. Directory structure[Email protected] salt]# tree/srv/salt/nginx//srv/salt/nginx/+--Config.sls+--files| +--Nginx| +--nginx-1.0.15.tar.gz| +--nginx.conf| +--nginx_log_cut.sh| +--nginx-upstream-jvm-route-0.1.tar.gz+--Init.sls+--Install.sls1

Saltstack virt Module Create virtual machine analysis three

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 ':

Saltstack (i) installation

# Salt installation (Epel source mode)RPM-IVH http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm# Service SideYum-y Install Salt-master# ClientYum-y Install Salt-minion# Server configuration:Vi/etc/salt/masterinterface:192.168.6

Saltstack Management Six Data synchronization method

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

Saltstack State.sls and State.highstate

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="

Saltstack's file Management

1.managed File Management/srv/salt/file/managed.sls/tmp/hyxc: file.managed: - Source: -salt://files/hyxc -salt://files/ HWG - makedirs:true# -replace:false - user:root - Group : Root -mode:644 -Backup:minion

Saltstack Master cannot receive Minion

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

Installation and Use of saltstack

Use centos6.3 _ x86_64 to install EPEL third-party software source wget-c http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmrpm -Install EPEL third-party software source wget-c using centos6.3 _ x86_64 for

Saltstack Event Practice

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

Saltstack Common Commands

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

Saltstack Study Notes

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

Saltstack from simple to introductory (II.)

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 "*"

Saltstack built-in state module file managed

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 Pillar

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

Saltstack built-in state module file append

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

Saltstack Python API call

First, Python installation saltstackPip Install saltSecond, the interface invocation instance1, test.pingImport Salt.clientClient = Salt.client.LocalClient ()ret = client.cmd (' * ', ' test.ping ')Print ret2. CMD module1) Function: Implement call

Saltstack Automating the deployment of Apache instances

1, configure the Pillar Top.sls: BaseNova-Match:nodegroup-NovaNeutron-Match:nodegroup-Neutron 2. Configuration of pillar Nova and neutron:

Saltstack Automatic Deployment haproxy+keepalived+nginx+memcache+php (fastcgi)

Series:To deploy the Haproxy total directory structure[[Email protected] srv]# tree salt/salt/├── base│   ├── init│    │   ├── audit.sls│   │   ├── dns.sls│    │   ├── env_init.sls│   │   ├──  epel.sls│   │   ├── files│   │   │    └── resolv.conf│   

Saltstack installation failure due to Python version conflict

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

Saltstack Automated Deployment kubernetes v1.9.3 version----Dashboard

[Email protected] coredns]# pwd/srv/addons/coredns[Email protected] srv]# CD addons/[[email protected] addons]# lsCoredns Dashboard Nginx-deployment.yaml Nginx-service.yaml[Email protected] addons]# CD coredns/[[email protected] coredns]#

Total Pages: 15 1 .... 11 12 13 14 15 Go to: Go

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.