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:conf:centos.html [2017/12/04 01:34] kurihara ↷ Links adapted because of a move operation |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | [[os: | ||
- | ~~NOTOC~~ | ||
- | ====== CentOS OS Configuration ====== | ||
- | |||
- | ===== Operation ===== | ||
- | |||
- | <sxh bash toolbar: | ||
- | $ echo a |fab -l |grep centos | ||
- | |||
- | $ echo xx.xx.xx.xx | fab auth.pro | ||
- | $ echo xx.xx.xx.xx | fab auth.pro | ||
- | </ | ||
- | |||
- | \\ | ||
- | ===== centos.py ===== | ||
- | |||
- | <sxh python toolbar: | ||
- | import sys, os | ||
- | from fabric.api import * | ||
- | from fabric.contrib import files | ||
- | |||
- | FHHOME=os.environ[" | ||
- | |||
- | #It is possible to execute it many times | ||
- | |||
- | # | ||
- | # common_init | ||
- | # | ||
- | @task | ||
- | def common_init(): | ||
- | # / | ||
- | sudo("/ | ||
- | put(" | ||
- | sudo(" | ||
- | |||
- | # / | ||
- | sudo("/ | ||
- | put(" | ||
- | sudo(" | ||
- | |||
- | # | ||
- | sudo("/ | ||
- | |||
- | |||
- | # | ||
- | # CentOS7 ini | ||
- | # | ||
- | @task | ||
- | def centos7_init(): | ||
- | # / | ||
- | sudo("/ | ||
- | put(" | ||
- | sudo(" | ||
- | |||
- | |||
- | # | ||
- | # CentOS6 ini | ||
- | # | ||
- | @task | ||
- | def centos6_init(): | ||
- | # / | ||
- | sudo("/ | ||
- | put(" | ||
- | sudo(" | ||
- | </ | ||
- | |||
- | |||
- | |||
- | |||
- | \\ | ||
- | <WRAP box 90%> | ||
- | [[: | ||
- | <catlist -noAddPageButton -noHead> | ||
- | </ | ||
- | \\ | ||
- | [[os: |
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.