Saltstack principle:
Saltstack consists of master and Minion. The master is a server, indicating a server; the minion is a client, indicating that multiple servers exist. Send the command to the qualified minion on the master, and the minion will execute the corresponding command. The master and Minion communicate through zero (Message Queue.
The master side of salt
Pre-reading
Environment Description
Commencement
Configure the saltstack LVS Module
Configure pillar
Compile states
Application configuration
Summary
Previously, due to work requirements, I wrote the LVS remote execution module of saltstack, The LVS service status management module and the LVS server status management module, and submitted them to the official saltstack
First, the basic introduction1. IntroductionSalt is a basic platform management toolSalt is a configuration management system that maintains remote nodes that are scheduled to be in a stateSalt is a distributed remote execution system used to execute commands and query data on remote nodesCore features of 2.salt:Sending a command to a remote system is parallel rather than serialProtocols that use secure encryptionUse the smallest and fastest network loadImprove the simple programming interface3.
Saltstack is an automated management tool developed based on the Python language, which is easy to use. Please see Baidu for specific compliments. Saltstack and Puppet, chef and other comparableToday I share with you the installation deployment and basic usage experience.Author EnvironmentTwo Test machinespc1:centos6.5 as Saltstack master node: 192.168.1.111pc2:c
Automated operation and Maintenance series Saltstack Saltstack principle of batch deployment Apache service
Salstack is composed of master and Minion, Master is the service side, represents a server, Minion is the client, representing multiple servers. Sending a command on master to a qualifying minion,minion executes the corresponding command. Between Master and Minion is communicated through ZERO
Deploying the lamp architecture with SaltstackSteps:(1) Install package pkg(2) Modify the profile file(3) Start service services(1) PKG Module learningHttps://www.unixhot.com/docs/saltstack/ref/states/all/salt.states.pkg.html#module-salt.states.pkgNote: Under an ID declaration, the status module cannot be reusedPkg.installed #安装pkg. Latest #确保最新版本pkg. Remove #卸载pkg. Purge #卸载并删除配置文件 # Install multiple packages at the same time common_packages:pkg.inst
Brief description
This series of articles is not saltstack primer to give up series, just contact salt players please from the "Saltstack Technology Introduction and Combat", "proficient in saltstack" and other books to get started, written very easy to understand and comprehensive.
Undeniable saltstack
First,saltstack IntroductionSaltstack is an open source automation deployment and management tool written in Python with good extensibility and excellent execution efficiency, simple configuration, can work on multiple platforms, and is often described as Func Plus + Puppet Lite version. SALTSATCK Advantages: First, fast, based on the message queue + thread, run a number of devices, are millisecond level; second, very flexible, the source code is py
Automated O M: website svn Code Update (flask + saltstack) and svnflaskPeriodic summary: It took about a week to complete the automatic website upgrade function. Many problems were encountered and many problems were learned. Here is a summary. 1. Overall architecture: backend: nginx + uwsgi # nginx provides web Services. uwsgi parses python code. Foreground: flask + bootstrap + html # flask is a set of web development tools for python, bootstrap is a
This article summarizes how saltstack locates the target host and introduces some common examples.
> Why do I need to locate the host?
As a configuration management software, the first thing to solve is how to determine the push host, or the push target of a specific configuration. If you cannot determine the target of one or more pushes, how can we automate the classification configuration management of a large number of hosts?
> What is the target m
Tags: salt saltstack salt-key salt-Minion salt-Master
Saltstack is an open-source software. Salt has two main functions: configuration management and remote execution. The saltstack configuration file format is simple and easy to write. At the same time, saltstack runs very fast remotely. The following describes the im
Let's start with an example of adding a task:Note: Although you can create a delete here, but the author does not recommend such use, management complex, recommended the bottom of the file Management Timing task method/usr/sbin/ntpdatepool.ntp.org>>/dev/null2>1:cron.present: -user:root-minute:10[[emailprotected] base]#salt ' saltstack-node2.example.com ' state.highstatesaltstack-node2.example.com:---- ------id:/usr/sbin/ntpdatepool.ntp.org >>/dev/null
Modules in the Saltstack library:in Saltstack, each subsystem plug-in (plug-in) is a Python Module. Therefore, the Module in the Saltstack library can be seen as a set of functions (for example: aka command); it can be seen as an application (e.g. MySQL, Docker); can be seen as a system component (e.g. disk, file) ; it can also be seen as an external system (GITF
public keys for a considerable month: "--list all"-a ACCEPT,--accept=accept the public key specified by the license (using--include-all option to specify the public key of all reject states except the suspended key)-A,--accept-all license all pending public keys-R REJect,--reject=reject denies the specified public key (use the--include-all option to specify the public key of all accept states except the suspended key )-R,--reject-all rejects all pending public key--include-all with accepting/re
/mysqld.pidSlow-query-log-file =/var/log/mysql_slow_querys.logSkip-name-resolveSkip-grant-tables2.6 MySQL startup script to add the following path[email protected] files]# cat mysqld#!/bin/shbasedir=/usr/local/mysql-5.6/datadir=/usr/local/mysql-5.6/data/2.7 Simulated execution salt1[[email protected] salt]# Salt ' node2 ' state.highstate test=true-no error[[email protected] salt]# Salt ' node2 ' state.highstate start installing MySQLThis article is from the "Bill Linux Operations Notes" blog, pl
Preface: Manually go to each server hardware information and records have passed, whether through the script or Automation tools can be written to crawl everywhere, this article mainly use Saltstack as a tool, and then use its provided API to write the required Python script ~ ~The requirements are as follows: Generate server hostname, IP address, memory, CPU cores, operating system, data disk quotas, main operating servicesSaltstack Quick Start, refe
Requirement Description:
1) if there is no Marshall user on a node with hundreds of Linux servers, add the user and replace the second field in the/etc/shadow column. If the user exists, replace the second field character of/etc/shadow.
2) check whether there is a sudo command on the node server. If there is a sudo command, it means it exists. Otherwise, install the sudo command.
3) enables the Marshall user to execute all the commands with the root permission.
1. Set up the
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.