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