salt-key -L
589 salt-key -a 192.168.100.231
590 salt-key -L
591 salt '*' test.ping
592 salt '*' cmd.run 'echo helloworld'
593 salt '*' grains.items
594 salt '*' grains.get hwaddr_interfaces
595 salt '*' grains.get hwaddr_interfaces:eth1
596 salt '*' grains.get ip_interfaces:eth1
597 salt '*' grains.get ip_interfaces
598 salt '*' grains.get ip_interfaces:eth1
599 salt '*' grains.get ip_interfaces:eth1:0
600 salt '*' pillar.items
601 salt '*' pillar.get master:ip
602 ifconfig
603 vi /etc/salt/master
604 mkdir -p /srv/pillar
605 cd /srv/pillar
606 salt '*' pillar.items
607 salt '*' pillar.get master:interface
608 rz
609 sz
610 pwd
611 vi package.sls
612 cat package.sls
613 vi top.sls
614 ll
615 cat top.sls
616 salt '*' saltutil.refresh_pillar
617 salt '*' grains.get os
618 ls
619 vi package.sls
620 salt '*' saltutil.refresh_pillar
621 salt '*' pillar.get apache
622 vi /etc/salt/master
623 salt -G 'os:CentOS' test.ping
624 salt -G 'G@os:CentOS' test.ping
625 salt-key -L
626 salt-key -E '192.168.100.(231,232)' test.ping
627 salt -E '192.168.100.(231,232)' test.ping
628 salt -E '192.168.100.(231|232)' test.ping
629 salt -G 'os:Centos' test.ping
630 cd /srv/salt
631 cd /srv/pillar/
632 ll
633 salt-key -L
634 service iptables stop
635 salt-key -L
636 ifconfig
637 salt-key -L
638 salt-key -a 192.168.101.40
639 ls
640 vi web.sls
641 ll
642 vi package.sls
643 ll
644 vi top.sls
645 salt '*' saltutil.refresh_pillar
646 salt '192.168.101.40' pillar.items
647 ls
648 vi top.sls
649 ls
650 vi top.sls
651 salt '*' saltutil.refresh_pillar
652 salt '192.168.101.40' pillar.items
653 vi top.sls
654 ll
655 pwd
656 ll
657 vi top.sls
658 salt '192.168.101.40' pillar.items
659 salt '*' saltutil.refresh_pillar
660 salt '192.168.101.40' pillar.items
661 salt -I 'role:web' test.ping
662 salt -I 'role:web' pkg.install httpd
663 vi /etc/salt/master
664 cd /etc/salt/
665 ll
666 cd master
667 ll\
668 pwd
669 mkdir master.d
670 cd master.d
671 ll
672 vim nodegroup.conf
673 salt -N 'test-cluster' test.ping
674 salt -N 'prod-cluster' test.ping
675 salt -C 'G@os:CentOS and I@role:web' test.ping
676 salt '*' -b 1 test.ping
677 salt-run job.listjobs
678 salt-run jobs.listjobs
679 salt-run jobs.list_jobs
680 salt-run jobs.lookup_jid 20151121172817310598
681 pwd
682 vi /etc/salt/master
683 cd /srv/salt
684 mkdir -p /srv/salt
685 ll
686 cd /srv/salt
687 ll
688 echo "test" > test.txt
689 salt '192.168.101.40' cp.get_file salt://test.txt /tmp/test.txt
690 cd /tmp
691 ll
692 echo "test2" > test2.txt
693 salt-cp '192.168.101.40' /tmp/test2.txt /tmp/test2.txt
694 salt '192.168.101.40' service.start httpd
695 salt '192.168.101.40' service.stop httpd