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 | ||
middleware:httpd:index.html [2017/12/17 23:46] kurihara |
middleware:httpd:index.html [2019/02/11 00:45] (current) kurihara |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | [[: | ||
+ | |||
====== Apache httpd (httpd.py) ====== | ====== Apache httpd (httpd.py) ====== | ||
- | \\ | + | $FHHOME/ |
{{INLINETOC}} | {{INLINETOC}} | ||
\\ | \\ | ||
- | ===== Operation ===== | + | ===== Apache httpd Operation ===== |
<sxh bash toolbar: | <sxh bash toolbar: | ||
- | $ echo a |fab -l |grep httpd | + | $ fab -l |grep httpd |
+ | </ | ||
- | $ echo xx.xx.xx.xx | fab | + | <sxh bash toolbar: |
+ | $ fab | ||
</ | </ | ||
+ | |||
+ | \\ | ||
+ | ==== Fabric Temporary Run Call Examples ==== | ||
+ | <sxh bash toolbar: | ||
+ | $ H=test-server-1, | ||
+ | |||
+ | $ fab -H $H -- "ps aux |grep apahce" | ||
+ | |||
+ | $ fab -H $H -- tree -Dpuga | ||
+ | $ fab -H $H -- tree -Dpuga | ||
+ | </ | ||
+ | |||
+ | |||
\\ | \\ | ||
- | ===== httpd.py | + | ===== httpd.py ===== |
+ | |||
+ | $FHHOME/ | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
import sys | import sys | ||
Line 24: | Line 45: | ||
# Installing Apache httpd | # Installing Apache httpd | ||
# | # | ||
- | #yum | + | # httpd.install_yum |
@task | @task | ||
def install_yum(): | def install_yum(): | ||
sudo(" | sudo(" | ||
+ | |||
+ | # httpd.install_apt | ||
+ | @task | ||
+ | def install_apt(): | ||
+ | sudo(" | ||
+ | |||
Line 34: | Line 61: | ||
# | # | ||
# | # | ||
+ | # httpd.check_files_etc_httpd | ||
@task | @task | ||
def check_files_etc_httpd(): | def check_files_etc_httpd(): | ||
- | ''' | + | ''' |
run(" | run(" | ||
# | # | ||
+ | # httpd.check_files_etc_apache2 | ||
@task | @task | ||
- | def check_files_etc_httpd(): | + | def check_files_etc_apache2(): |
- | ''' | + | ''' |
run(" | run(" | ||
+ | # | ||
+ | # Check Configuration | ||
+ | # | ||
+ | # | ||
+ | @task | ||
+ | def check_configuration_pkg(): | ||
+ | ''' | ||
+ | run(" | ||
+ | |||
+ | |||
+ | # | ||
+ | # Check Modules | ||
+ | # | ||
+ | # | ||
+ | @task | ||
+ | def check_modules_pkg(): | ||
+ | '''/ | ||
+ | run("/ | ||
+ | |||
+ | @task | ||
+ | def check_modules_src(): | ||
+ | '''/ | ||
+ | run("/ | ||
+ | |||
+ | |||
+ | # | ||
+ | # Check Server-Status | ||
+ | # | ||
+ | @task | ||
+ | def check_server_satus(): | ||
+ | ''' | ||
+ | run(" | ||
Line 60: | Line 121: | ||
\\ | \\ | ||
- | ===== Configuration ===== | + | ===== Apache httpd Configuration |
- | *[[middleware: | + | *[[middleware: |
+ | *[[middleware: | ||
+ | *[[middleware: | ||
+ | *[[middleware: | ||
+ | \\ | ||
+ | \\ | ||
+ | <WRAP box 90%> | ||
+ | <catlist .: -noAddPageButton -smallHead -sortAscending> | ||
+ | </ | ||
+ | \\ | ||
+ | [[: |
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.