Deploy OA speed airship source code download saltstack and batch installation httpd service

Source: Internet
Author: User
Tags saltstack

Saltstack Introduction
Salt OA speed airship source code download Q2947702644 is a basic platform management tool. 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. Master listens on 4505 and 4506 ports, 4505 is the master and Minion authenticated communication ports, and 4506 performs return information for commands that Master uses to send commands or to receive Minion.
?

Saltstack Common Modules
Saltstack provides a number of functional modules to facilitate operation of the operating system's underlying functions and common tools.
1:PKG module: Is package management, including additions and deletions updates.
2:file module: Manages file operations, including synchronizing files, setting file permissions and owning user groups, deleting files, and more.
3:cmd module: A command or script is executed on the minion.
4:user module: Manage system account operations.
5:service module: Managing system service operations
6:cron module: Managing Cron Service operations

?
Deployment environment

Role Host name IP
Master master.saltstack.com 192.168.200.128
Minion Web01.saltstack.com 192.168.200.129
Minion Web02.saltstack.com 192.168.200.130
?
Operation Steps

Saltstack Installation

1: Modify host Name

Vim/etc/hostname

The three hosts were:
Master.saltstack.com//(Management)
Web01.saltstack.com//(Managed)
Web02.saltstack.com//(Managed)

Init 6//reboot system for host name to take effect

2: Modify three Hosts files

Vim/etc/hosts

192.168.200.128 master.saltstack.com
192.168.200.129 web01.saltstack.com
192.168.200.130 web02.saltstack.com
3: Installation

Systemctl Stop Firewalldsetenforce 0//off firewall yum install-y epel-releaseyum install-y salt-master//Management side install Yum install-y EP El-releaseyum install-y salt-minion//Managed side installation

4: Management-side configuration

Vim/etc/salt/master

interface:192.168.200.128//15 Line listening address changed to local IP
............
Auto_accept:true//215 Certificate Certification
............
File_roots://416 Line Site Directory Open
Base

    • /srv/salt
      ............
      Nodegroups://710 Row Group classification
      Group1: ' web01.saltstack.com '
      Group2: ' web02.saltstack.com '
      ............
      Pillar_opts:true//552 Line Pillar Open

Pillar_roots://529 Line
Base

    • /srv/pillar
Cat/etc/salt/master | Grep-v ^$ | Grep-v ^#//view modified configuration Items

Deploy Saltstack and bulk install HTTPD services

?

5: Create the Salt file root directory and the pillar directory

Mkdir/srv/saltmkdir/srv/pillarsystemctl start Salt-master.service//Open Service NETSTAT-NATP | Egrep ' 4505|4506 '//view 4505, 4506 ports

Deploy Saltstack and bulk install HTTPD services

?

6: Managed Side configuration

Vim/etc/salt/minion

master:192.168.200.128//16 Line Specifies the management side IP
id:web01.saltstack.com//78 Row Specifies the host name being controlled (the other one is web02.saltstack.com)

Systemctl start Salt-minion.service//Open service

?

7: Test on the management side. ' * ' refers to all hosts

Salt ' * ' test.ping//view communication status Salt ' * ' cmd.run ' df-h '//View all managed side mount conditions Salt ' web01.saltstack.com ' cmd.run ' df-h '//View the mount of the specified host Salt ' * ' grains.items//view grains value salt ' * ' pillar.items//view pillar (Dynamic Info) Salt-key//view clients that have been accepted

Deploy Saltstack and Bulk install httpd service deployment Saltstack and bulk install HTTPD services
?
?

Saltstack Configuration Management installation Apache

Note: ' * ' means all clients execute Apache module

Vim/srv/salt/top.sls

Base
‘*‘:

    • Apache
      Deploy Saltstack and bulk install HTTPD services
VIM/SRV/SALT/APACHE.SLS//Note Apache-service is a custom ID name

Apache-service:
Pkg.installed:

    • Names
      • httpd
      • Httpd-devel
        Service.running:
    • Name:httpd
    • Enable:true
      Deploy Saltstack and bulk install HTTPD services

Restart Service

Systemctl Restart Salt-master

To perform a flush state configuration command on the management side

Salt ' * ' state.highstate

Deploy Saltstack and Bulk install httpd service deployment Saltstack and bulk install HTTPD services
?
?

Go to Minion verify that the httpd installation was successful
Deploy Saltstack and Bulk install httpd service deployment Saltstack and bulk install HTTPD services

Deploy OA speed airship source code download saltstack and batch installation httpd service

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.