saltstack github

Discover saltstack github, include the articles, news, trends, analysis and practical advice about saltstack github on alibabacloud.com

Use saltstack to Manage Users

following options: Name: Specifies the username to be deleted. Purge: Set to clear User Files (Home Directory) Force: if the user is currently logged on, the absent state will fail. If the _ force _ option is set to true, the user will be deleted even if the user is currently logged on. When managing users, you must specify at least _ User. Present _ or _ User. Absent _. Other options are optional, such as _ uid _, _ GID _, and _ home. Users. SLS The following is an example of a State Decl

Saltstack Learning -8:web Management page (halite)

Installation Halite Method One: failed, unknown origin cause 1, install and start Salt-api yum installsalt-api –y service salt-api start chkconfig salt-api on 2. Installing halite and its dependent files yum installpython-pip –y pip install--upgrade pip pip install-U halite pip installcherrypy pip installpaste yum installpython-devel gcc –y pip installgevent pip installpyopenssl Pip Install tornado 创建登录用户 Useradd Sal

Saltstack exploration-using pillar to improve VIM deployment

Saltstack exploration-using pillar to improve VIM deployment[[emailprotected]srv]#pwd/srv[[emailprotected]srv]#lspillar salt[[emailprotected]srv]#catpillar/data.slspkg/ top.slsusers/[[emailprotected]srv]#cat pillar/pkg/init.slspkgs:{%ifgrains[' os_family ']== ' RedHat ' %}vim:vim-enhanced{%elifgrains[' os_family ']== ' Debian ' %}vim:vim{%elifgrains[' os ']== ' Arch ' %} vim:vim{%endif%}[[emailprotected]srv]#cat pillar/top.slsbase: ' * ':-data- Users-

Redis compile installation and saltstack simple configuration

-saltstack Configuration1, copy installation package to salt/redis/files/2, copy configuration file to salt/redis/files/3, copy startup script to salt/redis/files/directory, no to create;Install.sls is as follows: File.managed:-Name:/usr/local/src/redis-3.0.7.tar.gz-Source:salt://redis/files/redis-3.0.7.tar.gz-User:root-Group:root-mode:755Cmd.run:-Name:cd/usr/local/src Tar XF redis-3.0.7.tar.gz cd redis-3.0.7 Prefix=/usr/local/redi s Install-Unles

Saltstack file synchronization and python call

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 files Slatsatck is used to synchronize the confi

ID of a saltstack task

I recently read the source code of saltstack, understand the process, and view the execution process of the salt command. Think about whether you can transform the source code, so you need it. Later I thought about whether I could specify the jid when executing the salt. Let's talk about the following requirements: Jid of the salt command Similar to this: 650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/48/6D/wKioL1QIDsTRoHWYAADPA53FEF4

Saltstack maser ha

I. I have been busy with database platform testing recently. I'm so excited that it will be available after the National Day, but I still have some concerns. All the functions depend on this platform, including basic database operations, permission management, migration, monitoring, alarms, etc. If the platform crashes, the sky will collapse, so I made all the components of the platform ha, this article record the ha of the saltstack maser. There are

Saltstack (1) Introduction

Basic principle:The saltstack uses the C/s mode, and the server side is the master,client end of the salt, which communicates between Minion,minion and master through ZEROMQ Message Queuing. Minion on-line after the first contact with the master, their pub key sent past, then the master side through the SALT-KEY-L command will see Minion key, accept the Minion-key, that is, master and Minion have mutual trust. Master can send any instruction for Minio

Saltstack (13) Reactor

It has been more than a week since I studied saltstack. The probation period of a company is six months. The most difficult thing is that the company has no permissions in the past six months. For an O M Company, having no permissions is not the same as having no permissions. The landlord is bored, and he only has to make a small test on his own. Reactor Speaking of reactor, we should start with the events of salt. What is the events? Speaking of eve

Target minions for learning saltstack (2)

Tag: Target saltstack nodegroup Grains Next to the previous article, we will explain the detailed usage of each classification method of target. > Grains First, it should be noted that the grains information of minion will be generated and loaded at minion startup, and then will exist in the form of static data. Grains matching has been mentioned previously. The implementation principle is to read the grains dict data and then match with the TGT stri

Deploying returner on saltstack [3]

Deploy returner on saltstackSentiment: Have you ever heard of Salt's minion too many times? It takes a long time to view the execution results and the screen is full. It is not convenient to check whether the execution is successful. At this time, saltsack's returner function was on the stage. We can save the execution command results to the database, which is convenient to view through the database. However, you may encounter many problems during installation and testing. I would like to thank

Saltstack-api (12)

Saltstack-apiOfficial Document Https://docs.saltstack.com/en/latest/ref/netapi/all/salt.netapi.rest_cherrypy.htmlconditions of Use: 1) HTTPS call, need to generate certificate 2) configuration file 3) using PAM authentication 4) Start Salt-apiinstallationYum Install-y Salt-apiImplementation Method1) Create user useradd-m-s/sbin/nologin Saltapi2) Set Password passwd saltapi3) generate a self-signed certificateCd/etc/pki/tls/certsMV Localhost.crt/tmpMak

Saltstack Source Installation Zabbix_agent

Company's existing monitoring using Zabbix,saltstack client server installed, the client does not need each machine to install, of course, modify the Zabbix configuration file, directly with salt to complete, today tested salt source installation zabbix_agent, the effect is OK;The ritual, Top.sls.[email protected] salt]# cat Top.slsBase‘*‘:-Zabbix#目录树[Email protected] salt]# tree zabbix/zabbix/├──conf.sls├──files│?? ├──conf.sh│?? ├──zabbix-2.4.7.tar.g

Installation of Saltstack

Environment:Installation Environment: centos6.5 x64master:192.168.0.23minion:192.168.0.24Installing the Epel source/etc/init.d/iptables stopsed -i ‘/SELINUX/s/enforcing/disabled/g‘ /etc/selinux/config wget http://ftp.riken.jp/Linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -ivh epel-release-6-8.noarch.rpmmaster安装:yum -y install salt-master salt-minionchkconfig salt-master onminion安装yum -y install salt-minionchkconfig salt-minion onConfigure Salt-masteruser: rootworker_threads: 5publis

First knowledge of Saltstack

1.1MasternodeSalt Master you need to bind the system 2 a TCP ports, respectively, are 4505 and the 4506 . Yum Install Salt-masterConfiguration Master Boot auto Start :Chkconfig Salt-master onStart Master:Service Salt-master StartSalt Master can also be at the front desk to Debug mode starts, which greatly increases the command output :Salt-master-l Debug1.2MinionnodeYum Install Salt-minionConfiguration Minion Boot auto Start :Chkconfig salt-minion onStart Minion:Service Salt-minion StarModifying

Saltstack (vi) Case exercise

are 200 servers, all the Minion services are hung up, then work is big.Skills:The principle is: in Minion, master key and Minion can not conflict, if the conflict minion will kill themselves.Method:1, first prepare the new master key, the original master key directly packaged, the Salt directory under the PKI directory all packaged, and then uploaded to the new master. Before this new master does not start the service. Place the original master key in the Salt directory of the new master and st

Saltstack User Management

The recent Test team came a big wave, the most company test that must have a QA environment, Test team boss and I have a good relationship, they group many people to Linux also know very well, usually get a thing what can also do their own, Ruanmoyingpao plus recently really busy to them to configure the Jenkins and opened the QA Environment user rights, Let's say saltstack user management.Simply a small example, recorded. For the user management modu

Saltstack+python Batch Modify server password

Saltstack Installation: SkipPython Script Change Password:1 #-*-Coding Utf-8-*-2 ImportSocket3 ImportRe4 ImportOS5 ImportSYS6 ImportCrypt7 8 9Localip =Socket.gethostbyname (Socket.gethostname ())Ten One defpassword (): ALocalip = Socket.gethostbyname (Socket.gethostname ())#获取本地ip -A = Re.split ('[.]', Localip)#切割ip地址并生成列表 -addr = a[3] thePS ="[email protected]"+Addr - returnPS - -new_passwd = crypt.crypt (password (),"AB") #将生成的密码加密 +CHANGE_PAS

Saltstack Web Platform Cluster Deployment (3)---HAPROXY+KEEPALIVE+HTTPD deployment

Last article we talked about the deployment and configuration of HaproxyLet's talk about how to use keepalive and httpd to implement the Saltstack cluster deployment of the HAPROXY+KEEPALIVE+HTTPD Web architectureFirst of all our HTTP deployment, very simple answer oh, the direct yum installation is complete, but in our saltstack is to use the installed definition of the line.OK, let's get up.[email protect

Job-cache Management of Saltstack

Prior to Saltstack 2014.7, the execution results of the Minion end were to be stored in an external system, and by using returners, we could store the returned results in our designated storage system, but the Returners feature was directly connected to the corresponding store by the Minion side. , the use of specific returners may also require the installation of related software packages in Minion, which may not fully meet our requirements in a larg

Total Pages: 15 1 .... 8 9 10 11 12 .... 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.