Boss said Saltstack, this girl dare not to comply with "1"----saltstack installation

Source: Internet
Author: User
Tags gpg saltstack

Our server, back and forth, left and right, up and down, bent finger toe arithmetic, exactly right, and then the difference between the diameter of my math course is also the language supplement imparted, the girl never understand why the boss just like to use Saltstack.

Hearsay, who who recommended to Bluff boss, days ignore, I just want to hit a soy sauce.

Life is helpless, it is strange to blame this girl chose it, miserable, who come who know, who roll who clear.

Revolt, flowers fall off, days if sentient days also old, began to learn to install saltstack alone, this girl is also spelled.

What is Saltstack, few words: Batch. Batch Management Server information, batch new users, batch installation software, batch update configuration files.

Anyway n multi-server need to "batch" what to do, it is estimated that the loan can pies to the middle of the scene stroll.

My Virtual Machine information:

cat /etc/centos-6.5uname -R2.6. -431. el6.x86_64

Sly smile, originally wanted to install the source code Saltstack, ah, well-known into the rich and noble, like a cheap, from ignorance like friends.

All kinds of wonderful problems from my fingers, but also flow, at the beginning also boast what waves this miss did not see, when you really understand, then know: Love the party know heavy, tried to regret thick.

The girl decisively refused to install the source, to Epel source installation saltstack.

[Email protected] ~]#YumList epel*Loaded Plugins:fastestmirror, refresh-PackageKit, securityloading mirror speeds from cached Hostfile*base:mirrors.sina.cn*extras:mirrors.cn99.com*updates:mirrors.sina.cnupdates|3.4Kbxx:xxUpdates/primary_db |2.0MBxx: onAvailable Packagesepel-release.noarch6-8Extras[[email protected]~]#Yum InstallEpel-release.noarch-yloaded Plugins:fastestmirror, refresh-PackageKit, securityloading mirror speeds from cached Hostfile*base:mirrors.sina.cn*extras:mirrors.cn99.com*updates:mirrors.sina.cnSetting up Install processresolving Dependencies-Running Transaction Check---> Package epel-release.noarch0:6-8Would be installed-finished Dependency resolutiondependencies resolved===============================================================================================Package Arch Version Repository Size===============================================================================================Installing:epel-release Noarch6-8Extras -ktransaction Summary===============================================================================================Install1Package (s) Total Download size: -kinstalled Size: Akdownloading Packages:epel-release-6-8. noarch.rpm | -Kbxx:xxWarning:rpmts_HdrFromFdno:Header V3 RSA/SHA1 Signature, key ID c105b9de:nokeyretrieving key fromfile:///etc/pki/rpm-gpg/rpm-gpg-key-centos-6Importing GPG Key0xc105b9de: Userid:centos-6Key (CentOS6Official Signing Key) <centos-6[Email protected]>Package:centos-release-6-5. El6.centos.11.1. x86_64 (@anaconda-centos-201311272149. x86_64/6.5) From:/etc/pki/rpm-gpg/rpm-gpg-key-centos-6Running rpm_check_debugrunning Transaction testtransaction Test succeededrunning Transaction installing:epel-release-6-8. noarch1/1Verifying:epel-release-6-8. noarch1/1Installed:epel-release.noarch0:6-8 Complete!

Then all of a sudden come so unprepared, no problem, installation success, for the source of the success of the installation of natural good coax, after all, lose the mood, even if won applause.

If you want to try, I believe, don't mention: sadness is always superfluous. I sing to you ~ ~ ~ ~ ~

Server-side installation:

[Email protected] ~]#YumList salt*Loaded Plugins:fastestmirror, refresh-PackageKit, securityloading mirror speeds from cached Hostfileepel/metalink |6.0Kbxx:xx*base:mirrors.sina.cn* Epel:FTP. cuhk.edu.hk*extras:mirrors.cn99.com*Updates:mirrors.sina.cnepel|4.3Kbxx:xxEpel/primary_db |5.9MBxx: onAvailable Packagessalt.noarch2015.5.Ten-2. El6 Epelsalt-api.noarch2015.5.Ten-2. El6 Epelsalt-cloud.noarch2015.5.Ten-2. El6 Epelsalt-master.noarch2015.5.Ten-2. El6 Epelsalt-minion.noarch2015.5.Ten-2. El6 Epelsalt-SSH. noarch2015.5.Ten-2. El6 Epelsalt-syndic.noarch2015.5.Ten-2. El6 Epel[[email protected]~]#Yum InstallSalt.noarch salt-master.noarch-y

Client Installation "Also install Epel:yum install epel-release.noarch-y First"

Yum Install salt.noarch salt-minion.noarch-  y

It's a neat, simple-to-value love.

My virtual machine is cloned, although the temperament is good, but also not to hurt the elegance, change the name, a little decorative hostname a little more beautiful.

Server : [[email protected]~]#hostnameLocalhost.localdomain[[email protected]~]#Cat/etc/sysconfig/networknetworking=Yeshostname=salt.master.localdomain client: [[email protected]~]#Cat/etc/sysconfig/networknetworking=Yeshostname=Salt.minion.localdomain both ends have to be restarted network[[email protected]~]# Service Network Restartshutting Interface Eth0:device State:3(disconnected) [OK]shutting down Loopback interface: [OK] Bringing up loopback interface: [OK]bringing up interface eth0:active connection state:a Ctivatingactive Connection path:/org/freedesktop/networkmanager/activeconnection/1state:activatedconnection activated [OK]

First glance at what Yum installs, and what it hears are all routine, often meow. For example: Key profile:/etc/salt/master, what chaos five or six has been modified this configuration, in addition to the client also has a configuration:/etc/salt/minion is not listed.

[Email protected] salt]# RPM-QL salt-Master/etc/rc.d/init.d/salt-Master/etc/salt/Master/usr/bin/Salt/usr/bin/salt-CP/usr/bin/salt-Key/usr/bin/salt-Master/usr/bin/salt-Run/usr/bin/salt-Unity/usr/share/Mans/man1/salt-CP.1. GZ/usr/share/Mans/man1/salt-key.1. GZ/usr/share/Mans/man1/salt-master.1. GZ/usr/share/Mans/man1/salt-run.1. GZ/usr/share/Mans/man1/salt-unity.1. GZ/usr/share/Mans/man7/salt.7. gz

At this time only modify the configuration of the client/etc/salt/minion, only one project, master is configured as the server IP, so that almost the server and the client can collude together, the law allows.

then 192.168. 37.131

Can't bear the mood, can't hide the pleasure, service start with client service

[Email protected] salt]# service salt-Master startstarting Salt-Master daemon:                               [  OK  
[Email protected] salt]# service salt-minion startstarting Salt-Minion daemon:                               [  OK  

Feeling calm, such as shallow water, dark blue eyes, the results of scanning once again, passable, the original fire Qiang provoked the pot, this girl seriously to this firewall gnashing of teeth, ask Sanbuzhi, who let me: anti-human heart I did not, only cruel said: "Baby, White!"

[[Email protected] salt]# service iptables stopiptables:setting chains to policy Accept:filter          [  OK  ]ipt ables:flushing firewall rules:                         [  OK  ]iptables:unloading modules:                               [  OK  ]

A simple test to relieve the stress:

[Email protected] salt]# Salt-key-laccepted keys:denied keys:unaccepted Keys:salt.minion.localdomainRejected keys:[[email protected] salt]# salt -key-a-ythe following keys is going to be accepted:unaccepted keys:salt.minion.localdomainKey forMinion Salt.minion.localdomain accepted. [email protected] salt]# Salt-key-laccepted Keys:salt.minion.localdomainDenied keys:unaccepted keys:rejected keys:[[email protected] salt]#  Salt ' Salt.minion.localdomain ' test.pingsalt.minion.localdomain:true[[email protected] salt]# Salt'Salt.minion.localdomain'Cmd.run'ifconfig'salt.minion.localdomain:eth1 Link encap:ethernet HWaddrxx: 0C: in: the: e7:8c inet Addr:192.168.37.132Bcast:192.168.37.255Mask:255.255.255.0Inet6 addr:fe80::20c:29ff:fe83:e78c/ -scope:link up broadcast RUNNING multicast MTU: theMetric:1RX Packets:1695Errors0Dropped0Overruns:0Frame0TX Packets:1588Errors0Dropped0Overruns:0Carrier0Collisions:0Txqueuelen: +RX Bytes:224880(219.6KiB) TX Bytes:216262(211.1KiB) Lo Link encap:local Loopback inet addr:127.0.0.1Mask:255.0.0.0Inet6 Addr: ::1/ -scope:host up LOOPBACK RUNNING MTU:16436Metric:1RX Packets:4Errors0Dropped0Overruns:0Frame0TX Packets:4Errors0Dropped0Overruns:0Carrier0Collisions:0Txqueuelen:0RX Bytes: -(240.0b) TX Bytes: -(240.0b

This simple test I also do not bother to release, this girl all understand, if you do not understand, even if you have the nerve to doubt, estimate, haha.

After the study of this lady, this saltstack seems to have a little little people love, cars see car, but I eat and drink to sleep time is almost gone, whining ....

Boss said Saltstack, this girl dare not to comply with "1"----saltstack installation

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.