FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
os:package:cmd.html [2017/12/02 22:37] kurihara created |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | [[: | ||
| - | ~~NOTOC~~ | ||
| - | ====== Commands Management====== | ||
| - | |||
| - | |||
| - | ===== Operation ===== | ||
| - | |||
| - | <sxh bash toolbar: | ||
| - | $ echo a |fab -l |grep rpm | ||
| - | |||
| - | $ echo xx.xx.xx.xx | fab auth.pro | ||
| - | $ echo xx.xx.xx.xx | fab auth.pro | ||
| - | </ | ||
| - | |||
| - | \\ | ||
| - | ===== cmd.py ===== | ||
| - | |||
| - | <sxh python toolbar: | ||
| - | import sys | ||
| - | from fabric.api import * | ||
| - | from fabric.contrib import files | ||
| - | |||
| - | |||
| - | # | ||
| - | # CentOS Common | ||
| - | # | ||
| - | @task | ||
| - | def centos_common_rpm(): | ||
| - | sudo(" | ||
| - | sudo(" | ||
| - | sudo(" | ||
| - | sudo(" | ||
| - | sudo(" | ||
| - | sudo(" | ||
| - | sudo(" | ||
| - | sudo(" | ||
| - | sudo(" | ||
| - | sudo(" | ||
| - | sudo(" | ||
| - | sudo(" | ||
| - | sudo(" | ||
| - | sudo(" | ||
| - | sudo(" | ||
| - | |||
| - | |||
| - | |||
| - | # | ||
| - | #CentOS7 Common | ||
| - | # | ||
| - | @task | ||
| - | def centos7_common_rpm(): | ||
| - | sudo(" | ||
| - | sudo(" | ||
| - | sudo(" | ||
| - | |||
| - | |||
| - | </ | ||
| - | |||
| - | \\ | ||
| - | <WRAP box 90%> | ||
| - | [[: | ||
| - | <catlist -noAddPageButton -noHead> | ||
| - | </ | ||
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.