Func : Use YumModule2016/09/29 |
This is the basic Usage for YumModule.
|
|
[1] | Run "yum update" on all Minions. |
[root@dlp ~]# func "*" call yumcmd update ('node01.srv.world', 'command: update \nkernel-tools.x86_64 0:3.10.0-327.36.1.el7 - u\nbind-license.noarch 32:9.9.4-29.el7_2.4 - u\n..... ('dlp.srv.world', 'command: update \nkernel-tools.x86_64 0:3.10.0-327.36.1.el7 - u\nbind-license.noarch 32:9.9.4-29.el7_2.4 - u\n..... |
[2] | Install specific packages on specific Minions. The results of func command display "\n" and it's hard to read, so replace them to real newline characters to read easily. |
[root@dlp ~]# func "node01.srv.world" call yumcmd install "httpd mariadb-server" | sed 's/\\n/\n/g'
{'node01.srv.world': 'command: install httpd mariadb-servermariadb-server.x86_64 1:5.5.50-1.el7_2 - uhttpd.x86_64 0:2.4.6-40.el7.centos.4 - u'} |
Sponsored Link |
|