FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
os:linux:example:index.html [2018/03/12 00:55] kurihara ↷ Page moved from os:linux:sample:index.html to os:linux:example:index.html |
os:linux:example:index.html [2020/02/21 01:18] (current) kurihara |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ====== Linux Fabric Examples===== | ====== Linux Fabric Examples===== | ||
| - | $FHHOME/ | + | $FHHOME/ |
| {{INLINETOC}} | {{INLINETOC}} | ||
| \\ | \\ | ||
| + | |||
| ===== Operation ===== | ===== Operation ===== | ||
| <sxh bash toolbar: | <sxh bash toolbar: | ||
| - | $ fab -l |grep tmp. | + | $ fab -l |grep example. |
| - | $ echo xx.xx.xx.xx | fab | + | $ fab -H host1, |
| </ | </ | ||
| Line 17: | Line 18: | ||
| ==== Fabric one-line Task Examples ==== | ==== Fabric one-line Task Examples ==== | ||
| <sxh bash toolbar: | <sxh bash toolbar: | ||
| - | $ echo xx.xx.xx.xx | fab auth.pro | + | fab -H host1, |
| - | $ echo xx.xx.xx.xx | fab auth.pro | + | fab -H host1, |
| </ | </ | ||
| \\ | \\ | ||
| - | ===== tmp.py ===== | + | ===== example.py ===== |
| - | $FHHOME/ | + | $FHHOME/ |
| <sxh python toolbar: | <sxh python toolbar: | ||
| Line 52: | Line 53: | ||
| </ | </ | ||
| + | \\ | ||
| + | ===== TIPS ===== | ||
| + | ==== color ==== | ||
| + | |||
| + | <sxh python toolbar: | ||
| + | from fabric.colors import * | ||
| + | |||
| + | def color(): | ||
| + | print ' | ||
| + | print blue(' | ||
| + | print cyan(' | ||
| + | print green(' | ||
| + | print magenta(' | ||
| + | print red(' | ||
| + | print white(' | ||
| + | print yellow(' | ||
| + | print (red(" | ||
| + | </ | ||
| + | |||
| + | ==== tomcat start ==== | ||
| + | <sxh python toolbar: | ||
| + | def startTomcat(): | ||
| + | run('/ | ||
| + | </ | ||
| + | |||
| + | |||
| + | \\ | ||
| + | <WRAP box 90%> | ||
| + | Related Pages | ||
| + | *[[appendix: | ||
| + | </ | ||
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.