Use cfengine to manage linux servers

Source: Internet
Author: User
Article Title: Use cfengine to manage linux servers. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Cfengine (configuration engine) is a UNIX management tool designed to automate simple management tasks and make difficult tasks easier. Cfengine is suitable for managing various environments, from one host to tens of thousands of hosts. As of Version 2.2, we now know that the maximum number of installation clusters for general management is about 20,000.

Figure-1 shows the relationship diagram of the Cfengine component.

Figure-1 Relationship between components of Cfengine

Basic installation

In either case, you need two libraries: BerkeleyDB for internal databases, and OpenSSL for encryption. These libraries are open resources and are free to use as cfengine. Without these libraries, you will not be able to use cfengine, and you cannot use other libraries to replace these two libraries. The RHEL 5.0 used in this article already includes these libraries.

# Wget linux/dag/redhat/el5/en/i386/dag/RPMS/cfengine-2.2.2-1.el5.rf.i386.rpm "> ftp://fr.rpmfind.net/linux/dag/redhat/el5/en/i386/dag/RPMS/cfengine-2.2.2-1.el5.rf.i386.rpm

# Rpm-ivh cfengine-2.2.2-1.el5.rf.i386.rpm

The next step is to build the basic structure of the cfengine working directory tree:

Create a Cfengine working directory manually

# Mkdir/var/cfengine

# Mkdir/var/cfengine/bin

# Mkdir/var/cfengine/inputs

Next, create a local copy of The cfengine executable program under the bin subdirectory of the working directory (for example,/var/cfengine/bin. In actual operation, these copies are executed, so when the network is disconnected during task execution, there is no risk to the system.

Step 3 copy the Cfengine binary code to the working directory

# Cp/usr/local/sbin/cfagent/var/cfengine/bin

# Cp/usr/local/sbin/cfexmcm/var/cfengine/bin

# Cp/usr/local/sbin/cfservd/var/cfengine/bin

# Chown-R root: 0/var/cfengine

# Chmod-R 755/var/cfengine

[1] [2] [3] [4] [5] Next page

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.