FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


os:linux:pkg:index.html



Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
os:linux:pkg:index.html [2018/02/21 23:47]
kurihara [Fabric Remote Shell Commands]
os:linux:pkg:index.html [2019/02/11 00:39] (current)
kurihara
Line 11: Line 11:
 $ fab -l |grep pkg $ fab -l |grep pkg
  
-$ fab  -H $H auth.pro  pkg.check_cmd +$ fab  -H $H   pkg.check_cmd 
-$ fab  -H $H auth.pro  pkg.install_rpm_centos7+$ fab  -H $H   pkg.install_rpm_centos7
 </sxh> </sxh>
  
 \\ \\
-==== Fabric Temporary Run Call Examples ====+==== Fabric one-line Task Examples ====
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
 $ H=test-server-01,test-server-02 $ H=test-server-01,test-server-02
-$ fab -H $H auth.pro  -- rpm -q xxxx +$ fab -H $H   -- rpm -q xxxx 
-$ fab -H $H auth.pro  -- "rpm -qa |grep xxx" +$ fab -H $H   -- "rpm -qa |grep xxx" 
-$ fab -H $H auth.pro --  "rpm -qa --last | head -20"+$ fab -H $H  --  "rpm -qa --last | head -20"
 </sxh> </sxh>
  
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
 $ H=test-server-01,test-server-02 $ H=test-server-01,test-server-02
-$ fab -H $H auth.pro  -- dpkg -l  # check installed list +$ fab -H $H   -- dpkg -l  # check installed list 
-$ fab -H $H auth.pro  -- apt search PACKAGE +$ fab -H $H   -- apt search PACKAGE 
-$ fab -H $H auth.pro  -- apt show PACKAGE+$ fab -H $H   -- apt show PACKAGE
  
-$ fab -H $H auth.pro  -- apt update +$ fab -H $H   -- apt update 
-$ fab -H $H auth.pro  -- apt install -y PACKAGE+$ fab -H $H   -- apt install -y PACKAGE
 </sxh> </sxh>
  


os/linux/pkg/index.html.1519224473.txt.gz · Last modified: 2018/02/21 23:47 by kurihara