Salt Automation Deployment

Source: Internet
Author: User

1. Compile to compile machine

/export/deploy/vm-agent

Execute script

./vm-agent. SH develop-alpha

2. Check that the RPM package is packaged successfully

http://172.18.138.56/x86_64/

3. Check the project configuration file

/export/data/salt/xeniumd/vm-agent/alpha

4. Deploy with salt

Deployment, time-out 30 seconds

Salt-n  kvm-alpha-node  

Use a command to start a program after deployment is complete

Salt-n  kvm-alpha-node  "systemctl restart Vm-agent-alpha"

Detects if the status is started after boot is complete

Salt-n  kvm-alpha-node  "systemctl status Vm-agent-alpha"   grep Running

5. Salt other commands

// Push File cp. Get_file Salt://init/win2008.img/etc/aaa// Batch execution command "  ls-al"
"Md5sum win2008.img" // batch installation, subject to modification accordingly/export/data/salt/top.slsSalt-N Docker state.highstate/// batch installation good, To check the status of the process "systemctl status Vm-api"grepWC

Salt Automation Deployment

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.