saltstack– Configuration Management installation Apache

Source: Internet
Author: User
Tags saltstack

l Server on: Vi/etc/salt/master// Search to find File_roots

L Open a comment that reads:

File_roots:

Base

-/srv/salt

L Mkdir/srv/salt; Cd/srv/salt

L Vi/srv/salt/top.sls// Add the following:

Base

‘*‘:

-Apache

L This means that all clients are executed on the Apache Module

L Restart /etc/init.d/salt-master Restart

L Vi/srv/salt/apache.sls// Add the following: this is Apache contents of the module

Apache-service:

Pkg.installed:

-Names:// If there is only one service here, then you can write –name:httpd There 's no need to change another line.

-httpd

-Httpd-devel

Service.running:

-NAME:HTTPD

description, apache-service id the name, custom. pkg.installed for the package installation function, here is the name of the package to install. service.running is also a function to ensure that the specified service starts, enable indicates boot start.

L Execution: Salt ' web10.aming.com ' state.highstate



saltstack– Configuration Management installation Apache

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.