Automation operation and maintenance tool saltstack - Grains, pillar, job cache, jinja template details and nginx, keepalived service configuration

1. Configuration Management (continued) Now, on the basis of the previous blog post, I will continue to talk about configuration management. To supplement the knowledge of sls files: The core of Salt state system is SLS, or SaLt State file. _SLS r ...

Posted by Beavis2084 on Thu, 15 Aug 2019 05:02:16 -0700

Use of Saltstack Function Modules in Linux (salt-ssh, salt-syndic and salt-api)

Introduction of Saltstack Function Module 1. Introduction to salt-ssh Sal-ssh can run independently without minion, and use sshpass to interact with passwords, but it works in serial mode, resulting in a significant performance degradation. ...

Posted by ruthsimon on Thu, 15 Aug 2019 03:01:11 -0700

Installation of vim plug-in YouCompleteMe for Mac

System: macOS Mojave 10.14.6 vim version: 8.1 (higher than 7.4.1578 and supports Python 2 or Python 3) Installation of CMake CMake is a cross-platform project management tool. It can be obtained directly through brew brew install cmake Installat ...

Posted by cyberrate on Tue, 13 Aug 2019 22:24:20 -0700

redis: two principals and two subordinates

Monitoring: Sentinel constantly checks whether your master and slave servers are functioning properly. Notification: Sentinel can send notifications to administrators or other applications through the API when a Redis server being monitored has problems. Automatic failover: When a primary server does not work properly, Sentinel starts an aut ...

Posted by jrottman on Tue, 13 Aug 2019 20:49:55 -0700

11. Network Programming-tcp File Downloader

Example: Download something with Thunder. Before downloading, a file will be built locally and renamed after downloading.When the client downloads something, it receives part of the data from the server to write into the file just now, and then writes in again. When all the data is written, it means the ...

Posted by sing2trees on Mon, 12 Aug 2019 20:49:00 -0700

Case 11. Grouping of personnel

The requirements are as follows: 1) Assume that there are 72 persons in total (providing a list of persons with the name of Chinese Pinyin) 2) Seven groups 3) To ensure the randomness of the personnel distribution group, that is, the results of each execution of the script should be different. Knowledge Point 1: Generating Random Numbers In L ...

Posted by ronverdonk on Fri, 09 Aug 2019 00:12:25 -0700

Build ldap dual main mode

1. Install OpenLDAP yum install openldap openldap-clients openldap-servers Start directly after installation ``` systemctl start slapd ``` Set Administrator Password``` slappasswd -h {SSHA} ``` You will then be asked to enter a clear text password and return to you an encrypted password, remembering the password that was returne ...

Posted by roustabout on Thu, 08 Aug 2019 12:14:57 -0700

Introducing the hierarchical structure of Docker images and creating them (docker commit and docker file)

1. Introduce the hierarchical structure of Docker image: (1) docker mirror: The Docker image is a read-only Docker container template, which contains the file system structure and its content needed to start the Docker container, so it is the basis for starting a Docker container. Docker image file ...

Posted by solaris77 on Mon, 05 Aug 2019 02:56:12 -0700

Linux System: Build ZooKeeper 3.4 Middleware under centos7, Summarize Common Commands

I. Download and Unzip 1. Introduction to Zookeeper As a distributed service framework, Zookeeper is mainly used to solve the consistency problem of application systems in distributed cluster. It can provide data storage based on directory node tree similar to file system. But Zookeeper is not used to store data exclusively. Its function is main ...

Posted by dhcrusoe on Sat, 03 Aug 2019 06:14:03 -0700

linux-based regular expressions, shell-based, file lookup and compression

1.shell programming shows basic information of computer and basic script. Only for version 6.7. COLOR="\033[1;36m" COLOREND="\033[0m" echo -e "CPU type is $COLOR `lscpu |grep 'Model name'|tr -s ' '|cut -d: -f2`$COLOREND" echo -e "Disk space is $COLOR `lsblk |grep 'disk' |tr -s ' '|cut -d' ' -f4|head -n 1` $COLOREND" echo -e "Memory size is $C ...

Posted by Elizabeth on Sat, 03 Aug 2019 00:13:30 -0700