saltstack tutorial

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

Use shell scripts to telnet to the server and modify the Saltstack configuration and restart the service

recently, the company added 40 servers for the last active function, although the server can be managed by saltstack (automated operations Tools Saltstack), the project can be released through Jenkins + Saltstack (using jenkins+ Saltstack+sh deploy the project to multiple servers, but before this need to get rid of the

Deploying Saltstack under Linux

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

Two development of Python Saltstack (2)

. Perform various modules on master:>>> Import Salt.client>>> local = salt.client.LocalClient ('/etc/salt/minion ') >>> Local.cmd (' * ', "test.ping")Return:{' 192.168.48.129 ': True}Execute command:>> local.cmd (' * ', ' cmd.run ', ' W ')"Returned is a dictionary form that is easy to post-process data with"{' 192.168.48.129 ': ' 12:17:38 up 5:58, 1 user, load average:0.00, 0.01, 0.05\nuser TTY from [Emai L protected] IDLE jcpu PCPU what\nroot pts/0 192.168.48.1 11:14 2:50 0.89s 0.89s python '}I

(eight) Saltstack project installation MySQL

/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

Actual combat Use Saltstack source installation configuration MySQL

]#catconf.slsinclude:- mysql.install#mysqlforconfigmysql_cnf:file.managed:- name:/etc/my.cnf-user:root-mode: 755-source:salt://mysql/files/my.cnf#mysqlinitsalt:// mysql/files/conf.sh:cmd.script:-env: -BATCH: ' yes ' - require:-cmd.run:mysql_commpile -pkg:mysql_pkg#mysql Servermysql_service:file.managed:-name:/etc/init.d /mysqld-user:root-mode:755- Source:salt://mysql/files/mysqldcmd.run:-names: -/sbin/chkconfig--addmysqld -/sbin/chkconfig--level35mysqld on-unless:/sbin/chkconfig--listmysqld serv

Saltstack Quick Start Simple summary

Saltstack 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 a Func-enhanced version of +puppet Lite. 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 python, easy to unders

Saltstack the wrong path to the remote script prompt in Windows client

version of the branch is opened, 2018.3.0 did not fix the Bug , only 2018.3.1 was repaired. https://github.com/saltstack/salt/pull/45716https://github.com/saltstack/salt/pull/45716Workaround:Upgrade Salt-master to the 2018.3.1 version, upgrade salt-minion to the 2018.3.1 version and Master remain consistent. Successfully re-executing the command and getting the results returned:Experience: when se

Saltstack Foundation Detailed Introduction

1.saltstack Basics in detail saltstack is a very easy to use and lightweight management tool with Python development. Composed of master and minion, the master side of communication saltstack through ZEROMQ listens on 4505 and 4506 ports, 4505 is a salt message publishing system, and 4506 is the port that the salt client communicates with the server. Salt client

Saltstack Study Notes 7-states

States is a configuration language in Saltstack and requires a large number of states files to be written in daily configuration management. For example, install a package, then manage a configuration file, and finally ensure that a service runs correctly.Write some states SLS files (files describing the state configuration) to describe and implement our functionality. The states SLS file is written in Yaml syntax. Of course states SLS files also supp

Puppet, Saltstack, ansible personal use of a little comparison

Many enterprises use cloud services, automated operations tools are getting more and more fire, the installation and use of three automated operations toolsPuppet, Saltstack, ansible personal point of view;puppet C/S Framework Server puppet master Client Puppet agent process launcher using Ruby processThere is a listening port Master 8140 Agent 8139The principle Agent client puppet.conf configures the IP address of the master server, Runinterval = 10

Saltstack Source Installation Nrpe

Recently get addicted to Saltstack, and today got the Saltstack source installation Nrpe, install Nrpe before installing Nagios-plugins, the first is Top.sls file:[email protected] salt]# cat Top.slsBase‘*‘:-Nagios[Email protected] salt]# tree Nagios #目录结构Nagios├──conf.sls├──files│?? ├──conf.sh│?? ├──nagios-plugins-1.5.tar.gz│?? ├──nrpe-2.12.tar.gz│?? └──nrpe.cfg├──init.sls├──install.sls└──top.sls[email pro

Stories about IDs in saltstack

Tags: saltstack ID hosts Authentication Today, let's talk about how to set IDs and how to solve problems. I hope it will be useful to you .... In the early stage of Host Name planning, we will design a host name recognition method based on the specific business .. One day, the installation of a test machine is complete, but when the saltstack authenticates the key, it will find that when the mas

Generate a server asset inventory from Python using Saltstack

(the following codeLinuxTest Success)linux-node0.oldboyedu.com 192.168.1.30 installation salt-master,salt-minionlinux-node1.oldboyedu.com 192.168.1.31 installation salt-minionThe main use here Saltstack of the Grains, is that Saltstack Minion static information generated by the terminal, such as CPU , memory, hostname, whatever, and that's all we need.Execution Salt \* grains.items, will print a whole bunch

Quick introduction to SaltStack

Quick introduction to SaltStack1. Introduction A set of C/S architecture configuration management tools developed based on Python. The underlying layer uses ZeroMQ Message Queue pub/sub for communication and SSL certificate issuance for authentication management.2. Environment preparation 2.1 installation This document uses the salt-bootstrap Method for installation. Salt-bootstrap is a separate project of SaltStack. It is mainly used to deploy the

Saltstack installation Configuration

Saltstack IntroductionSaltstack is a new infrastructure management tool. At present in the rapid development stage, can be regarded as the strengthened func+ weakening Puppet combination. The two main functions of Saltstack are reflected indirectly: remote execution and configuration management. Saltstack is a very easy-to-use and lightweight management tool deve

Python virtualenv install and run saltstack and saltstackenv

Python virtualenv install and run saltstack and saltstackenvScenario: 1. The virtualenv virtual environment of python is very easy to use. 2. saltstack is also quite useful as an important component of O M automation. But: 1. saltsatck is the easiest to install with yum, which is combined with Python that comes with linux-centos. 2. Even with the compilation and installation, it is also in the compiling an

Resource allocation and performance test of cluster management system Saltstack

Saltstack is a new configuration management and remote execution tool after Puppet and Chef, and Saltstack is getting more and more attention at present. Compared with Puppet, saltstack is not so bulky, feeling lighter; unlike Puppet, which has its own DSL for writing configuration, Saltstack uses YAML as the configur

Saltstack Quick Start Summary

Saltstack is an open-source automated deployment and management tool written in python. It has good scalability and excellent execution efficiency, simple configuration, and can work on multiple platforms, often described as Func enhanced version + Puppet Lite version saltstack is an open-source automated deployment and management tool written in python. It has good scalability, excellent execution efficien

One of the saltstack series-Installation

Recently, I talked a lot with a person with technology from blizzard in China. They are testing salt, but currently puppet is used, and the number of servers is about to exceed 1000. So why do they consider testing salt and looking for another method? There must be some advantages of salt. In fact, my reputation for puppet has long been known for more than a year, although I have not studied it yet .... We also know the existence of saltstack, a simil

Iv. Saltstack How to manage objects?

Pre-Lab Environment:[Email protected] ~]# salt-key-l[Email protected] ~]# salt-key-a super65.cn-yIntroduction to Salt Management Objects:The object that Saltstack manages is called Target.Many of the objects we manage are those we need to classify different objects. How does the Saltstack classify it?It is important to plan the ID of the target in the pre-saltstack

Total Pages: 15 1 .... 4 5 6 7 8 .... 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.