:/home[emailprotected]:~#
Restart the master and manually trigger an event.
[emailprotected]ter:~#/etc/init.d/salt-masterrestart[ok]Restartingsaltmastercontroldaemon:salt-master.[emailprotected]:~#salt‘*‘cmd.run"salt-callevent.fire_master‘{"lixc":"lixc"}‘‘lixc‘"salt-minion:local:True
Let's take a look at the result of runner execution.
[emailprotected]:~#cat/tmp/test.logsalt-minionlixclost+foundsalt-developsalt-develop.zip
OK. These are the simplest basic functions.
The previous study Saltstack installation and basic configuration, you can execute system commands through Saltstack, including system reboot, view system load, add/remove users, etc. can also be installed on the line Web,db,bbs and configuration of the same or similar servers into a group, through the Saltstack Group function batch execution management. The foll
recently studied Saltstack, first contact, found him good strong, how strong? Well, I've only touched the tip of the iceberg, but it's enough for me to drink a pot. Next, will explore the world of saltstack, can discover how many new continent, see own ability!
Saltstack Introduction:
Salt, a new infrastructure management approach that is easy to
easier to configure and use than Puppet, and can achieve almost all the functions of puppet.Ansible (www.ansible.com) more concise automated operations tools, do not need to install agents on the client, based on the development of Python. You can implement batch operating system configuration, batch program deployment, batch run commands.3 Saltstack InstallationSaltstack Introduction https://docs.saltstack.com/en/latest/topics/index.htmlCan be execu
Saltstack IntroductionSalt is:A configuration management system capable of maintaining a predefined state of a remote node (for example, ensuring that the specified newspaper is installed and the specified service is running);A distributed remote execution system for executing commands and querying data on a remote node (which can be a single node or a node selected by any rule);The purpose of development is to provide the best solution for remote exe
Saltstack provides a very rich set of functional modules (written in Python), covering the basic functions of the operating system, common tool support, and, of course, the SYS module to list the modules supported by the current version#salt ' * ' Sys.list_modulesNext, the common modules are introduced, and the API usage methods of the modules are also enumerated. The A
Point I began to study:Http://edu.51cto.com/course/course_id-2354.html1Training ObjectivesThe objective of this course is to enable all participants to participate in the training Saltstack Server Management, skilled use of remote execution of the function of the bulk operation of the server, using configuration management for automated installation, deployment and management. At the same time, according to the production needs of enterprises to custo
Saltstack file synchronization and python callSaltstack file synchronization and python call
Saltstack was written in python2.6. It took a lot of effort to call it in python. first install salt-master (or salt-minion), and then enter the following command:
# Python2.6
>>> Import salt. config
No error. Now you can use python to call the salt api.1. Synchronize fil
,172date=none,173 mindays=None,174 maxdays=None,175 inactdays=None,176 Warndays=none,177expire=none) :178 ""According to the requirements to write to the states file, I here the need is relatively simple, so naturally did not write so many pull. The for if endif endfor in the file is Python's Jinja syntax, and I don't know much about it.OK, let's see the results.650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/EB/wKioL1UWwtOitvxOAAJrxoR7ENM906.jpg "title=" 333. PNG "alt=" wkiol1uww
Previously mentioned writing State.sls files using the Python languageThe Saltstack system supports many ways to extend it, and renderer is one of them.The default Saltstack renderers is Yaml+jinja, which can be learned through the obstetric master file that the current rendererCurrently Saltstack supports many kinds of renderer, because Yaml Jinja Python has a w
bookon the Back: Saltstack-gdlwolf Self-study summary of the first:saltstack Installation Deployment (YUM installation)Connection Address:http://gdlwolf.blog.51cto.com/343866/1786901this 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 program
Saltstack is a centralized and lightweight automated O M management tool with puppet and func functions. It is written in Python and has powerful functions and can be quickly installed using epel. Compared with puppet, installation and configuration are easier and easier.
Epel install
[[emailprotected] ~]# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm###CentOS 5.x###rpm -Uvh https://dl.fedoraproject.org/pub/epe
Tags: feature services start sed style sharp light weight x86 lease PIDI. Introduction of SaltstackSaltstack is a centralized management platform for server infrastructure, Saltstack based on the Python language, and is based on the C/s architecture, combined with lightweight Message Queuing (ZeroMQ) and Python third-party modules (PYZMQ, Pycrypto, PYJINJIA2, Python-msgpack and Pyyaml, etc.),Saltstack integ
I. Overview of Saltstack Architecture
Saltstack is based on the C/S architecture, Server master and client minions, which consists of the following parts:
Second, the installation configuration of Saltstack
1. master installation
The code is as follows
Copy Code
RPM-IVH http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-
Salt ' * ' saltutil.refresh_pillarThe official website example really did not understand, the English dish. In fact, a simple step.Reference documentsHttps://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.mysql.htmlhttps://z900collector.wordpress.com/linux/using-the-saltstack-mysql-module/Salt-master is mainly looking for/usr/lib/python2.6/site-packages/salt/modules/test.py.[Email protected] salt]# cat/etc/salt/minionmaster:172.1.1.1Id:cm1M
Pillar ComponentsPillar is also one of the most important components of saltstack, and its role is to define any data related to the controlled host, and the defined data can be used by other components such as templates, State, API, etc. The data defined in pillar is associated with the host of the different business features, so that the host can only see its own matching data, so pillar security is very
Pillar is also one of the most important components of saltstack, and its role is to define any data related to the controlled host, and the defined data can be used by other components such as templates, State, API, etc. The data defined in pillar is associated with the minion of different business features so that different minion can only see their own matching data, so pillar security is very high, suit
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
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.