Maintenance of the master, such as regular Maintenance tasks.Publisher ServerBound to the default port 4505 zmq pub and publish_pull.ipc pull type ipc, as long as the data is pushed to publish_pull.ipc, all clients of subcribe 4505 publisher will receive the data. The specific role of this server has not been viewed yet.EventPublisher ServerIf you bind master_event_pub.ipc pub and master_event_pull.ipc pull to push data to master_event_pull.ipc, the client subscribing to master_event_pub.ipc wi
Install salt-minion, rehl5salt-minion on REHL5Install salt-minion ON REHL5
This article applies to rhel5.4, 6.4, and. el5.4 is used as an example.1 online installation is extremely simple:
# wget --no-check-certificate -O install_salt.sh https://bootstrap.saltstack.com# sh install_salt.sh -I
The above applies to el5, el6, el7, and other versions. You can find a
The operating system is centos6.3, centos6.4, and Windows server2008r2.
The download link in this article may be updated with the version on the official saltstack website, but there may be changes or errors. Please refer to the version link you need to install. I wrote a specific link to facilitate repeated operations in the near future.
In this article, Linux uses epel for installation, and Windows selects the EXE installation package.
1. in your system, if the current epel is not in the enabl
Salt-minion dead But PID file exists solutionDescriptionA salt minion machine could not be started due to its own error operation, as follows:[Email protected] run]#/etc/init.d/salt-minion statussalt-minion dead but PID file existsResolution process:The error is known:The minion
The following problems are encountered:[Email protected]:/etc/salt# salt-key-lAccepted Keys:unaccepted Keys:Rejected Keys:[Email protected]:/etc/salt# salt-master-l Debug[DEBUG] Reading Configuration From/etc/salt/master[DEBUG] Using Cached Minion ID from/etc/salt/minion_id:saltstack.cs2cloud.internal[DEBUG] Configuration file path:/etc/salt/master[INFO] Setting up the Salt Master[WARNING] Unable to bind socket, error: [Errno] cannot assign requested
salt-ssh Batch automatic installation of the controlled end minion Salt-ssh is another way to manage saltstack, without the need to install the Minion end, can use all the functions of salt, management and use of basic and salt. However, Salt-ssh did not inherit the original ZEROMQ communication architecture. So, she's running slower. Supplements as salt are very useful in the initial batch installation of
Not all of the options for the master and Minion end profiles are described here, but rather the usual ones.I. Description ofMaster Common configuration optionsCat/etc/salt/master
Interface : Specify the address of bind (default is 0.0.0.0)
Publish_port : Specify a publishing port (default is 4505)
Ret_port : Specifies the result return port, corresponding to the Master_port in the Minion configurat
Second, the source code installation ChapterUsing the SALT-SSH feature requires the client system Python version 2.6+1.salt-minion End Environment:System: SUSE SP3 64bitPython version: 2.6.6RPM Package: Pcre-devel #不安装, compile Swig error2. Configure/etc/salt/rosterCases:10.10.10.30: host:10.10.10.30 user:syspub #普通用户, with no password sudo permissions passwd:123456aa sudo:true Timeout:15When the number of clients, manual configuration/etc/salt/r
First, RPM installation ChapterUsing the SALT-SSH feature requires the client system Python version 2.6+1.salt-minion End Environment:System: CentOS 6.5 64bitPython version: 2.6.62. Configure/etc/salt/rosterCases:10.10.10.30: host:10.10.10.30 user:syspub #普通用户, with no password sudo permissions passwd:123456aa sudo:true Timeout:15When the number of clients, manual configuration/etc/salt/roster is cumbersome, here to write a simple script for refe
Master Common configuration options :1Interface: Specifies the address of bind (default 0.0.0.0)2 Publish_port: Specify a publishing port (default 4505)3 Ret_port: Specifies the result return port, corresponding to the master--port of the Minion configuration file (default is root)4 User : Specifies the running users of the master process and, if adjusted, needs to adjust permissions for some directories (default root)5 Timeout: Specifies timeout time
I. Cp.get_file implementing files from the master side to the Minion serverCp.get_file1. Modify/etc/salt/master to specify the root directory of the server's workFile-roots:-Base:/srv/salt (default path, can be specified)2. Create a DirectoryMkdir/srv/salt3. Copy the files that need to be copied to the working directoryCp-ra Souce_file/srv/salt4. Execute cp.get_file commandSalt ' * ' Cp.get_file salt://path/to/file/
When deploying Salt-minion, an error[[email protected] ~]#/etc/init.d/salt-minion startStarting Salt-minion Daemon:traceback (most recent):File "/usr/bin/salt-minion", line 6, From salt.scripts import salt_minionImporterror:no module named Salt.scriptsKnow a bit of Python, basically can confirm that Python module impor
Batch deployment, unattended deployment, salt master/minion deployment
Preparation:
Rhel-server-6.4-x86_64-dvd.iso
Salt.tar.gz
Step 1: Prepare a server to manage other servers
System --- → rhel-server-6.4-x86_64-dvd.iso
Ip --- → route 10.10.111
Hostname ---- → admin.black.com
Configure the yum Source
Mkdir/iso
Mount/dev/cdrom/iso
Create/etc/yum. repo. d/yum. repo
Step 2: Use the admin Server as the DHCP server
Requirements:
1: assign ip addresses to o
What is mine doing? Is that you define the collection module in mine, he will collect the data, where it is stored, do not know, but certainly the client Minino Local. Interested friends can check Saltstack code.Paste it down here first, official DOC usage:
The code is as follows
Copy Code
Mine.delete: Remove specific function contents of minion. Returns True on success. CLI Example: Salt ' * ' mine.delete ' network.interfa
Install salt-minion ON REHL5Install salt-minion ON REHL5
This article applies to rhel5.4, 6.4, and. el5.4 is used as an example.1 online installation is extremely simple:
# wget --no-check-certificate -O install_salt.sh https://bootstrap.saltstack.com# sh install_salt.sh -I
The above applies to el5, el6, el7, and other versions. You can find a bunch of repo under/etc/yum. repos. d/and save the following:
Install salt-minion ON RHEL5
This article applies to rhel5.4, 6.4, and. el5.4 is used as an example.
1 online installation is extremely simple:
# Wget -- no-check-certificate-O install_salt.sh https://bootstrap.saltstack.com# Sh install_salt.sh-I
The above applies to el5, el6, el7, and other versions. You can find a bunch of repo under/etc/yum. repos. d/and save the following:
Epel. repoEpel-testing.repoSaltstack-salt-el5-epel-5.repo
2 The following d
Install Salt-minion on REHL5This article applies to rhel5.4, 6.4, 7. Take el5.4 for example only.1 Online installation method is extremely simple:# wget--no-check-certificate-o install_salt.sh https://bootstrap.saltstack.com# sh install_salt.sh-iThe above applies to El5, El6, EL7 and other versions. You can find a bunch of repo under/etc/yum.repos.d/, save the following:Epel.repoepel-testing.reposaltstack-salt-el5-epel-5.repo2 The following main descr
During report statistics today, I found some information on the Internet, sorted it out, and shared it.
1. Use the folderbrowserdialog class in C # To select a folder and record the selected folder path.
(1) first introduce the namespace system. Windows. forms;
(2). Add the [stathread] attribute to the main entry point of the application, that is, the static void main () method;
///
(3). then define the ev
PHP provides functions such as filesize, copy, unlink, and so on, but does not provide functions such as dirsize, Copydir, Rmdirs and Other folder operations (RmDir can only delete empty directories). So you can only write these functions manually, and the main trick is to decompose the problem by layer by recursion until it breaks down into the least-boy problem that can be solved directly.
==================== View
public static void CopyDirectory (String srcpath, String destpath) {try {DirectoryInfo dir = new DirectoryInfo (Srcpath);filesysteminfo[] FileInfo = dir. Getfilesysteminfos (); Get files and subdirectories under directory (without subdirectories) foreach (FileSystemInfo i in FileInfo) { if (I am DirectoryInfo) //Determine if folder {
if (! Directory.Exists (destpath+ "\ \" +i.name)) {
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.