FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


os:linux:set: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:set:index.html [2018/02/18 00:17]
kurihara [Table]
os:linux:set:index.html [2019/02/11 00:40] (current)
kurihara
Line 13: Line 13:
 $ fab -l |grep set $ fab -l |grep set
  
-$ fab -H $H auth.pro  set.centos7_init +$ fab -H $H   set.centos7_init 
-$ fab -H $H auth.pro  set.centos6_init+$ fab -H $H   set.centos6_init
 </sxh> </sxh>
  
- +\\ 
-==== Fabric Remote Shell Commands ====+==== Fabric one-line Task Examples ====
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
 $ H=test-server-1 $ H=test-server-1
  
-$ fab -H $H auth.pro -- hostname+$ fab -H $H  -- hostname
  
 # LANG # LANG
-$ fab -H $H auth.pro -- localectl status   #Check locale CentOS7 +$ fab -H $H  -- localectl status   #Check locale CentOS7 
-$ fab -H $H auth.pro -- 'localectl list-locales |egrep -i "ja|jp"' # Check available locale list+$ fab -H $H  -- 'localectl list-locales |egrep -i "ja|jp"' # Check available locale list
 </sxh> </sxh>
  
Line 39: Line 39:
 from fabric.contrib import files from fabric.contrib import files
 from fabric.contrib.files import sed, append, contains from fabric.contrib.files import sed, append, contains
 +from datetime import datetime
  
 FHHOME=os.environ["FHHOME"] FHHOME=os.environ["FHHOME"]
Line 178: Line 179:
 ==== Deamon ==== ==== Deamon ====
  
-|<100% 200px ->|+|<100% 250px ->|
 | [[os:linux:set:deamon:etc_ssh_sshd_config.html|/etc/ssh/sshd_config]]                                                                                   | PermitRootLogin no\\ PasswordAuthentication yes\\ UseDNS no  | | [[os:linux:set:deamon:etc_ssh_sshd_config.html|/etc/ssh/sshd_config]]                                                                                   | PermitRootLogin no\\ PasswordAuthentication yes\\ UseDNS no  |
 | [[os:linux:set:deamon:etc_chrony.conf.html|/etc/chrony.conf]] (CentOS)\\ [[os:linux:set:deamon:etc_chrony.conf.html|/etc/chrony/chrony.conf]] (Ubuntu)  |                                                              | | [[os:linux:set:deamon:etc_chrony.conf.html|/etc/chrony.conf]] (CentOS)\\ [[os:linux:set:deamon:etc_chrony.conf.html|/etc/chrony/chrony.conf]] (Ubuntu)  |                                                              |
 | /etc/default/grub                                                                                                                                       | crashkernel=128M                                             | | /etc/default/grub                                                                                                                                       | crashkernel=128M                                             |
 +| [[os:linux:set:deamon:etc_systemd_journald.conf.html|/etc/systemd/journald.conf]]                                                                       | RateLimitInterval=30s\\ RateLimitBurst=10000                 |
  
 \\ \\
Line 213: Line 215:
 | [[os:linux:set:etc:etc_selinux_config.html|/etc/selinux/config]]\\   (RHEL7/CentOS7)\\ [[os:linux:set:etc:etc_selinux_config.html|/etc/sysconfig/selinux]]\\  (RHEL6/CentOS6)  | No SELinux policy is loaded.\\ SELINUX=disabled  | | [[os:linux:set:etc:etc_selinux_config.html|/etc/selinux/config]]\\   (RHEL7/CentOS7)\\ [[os:linux:set:etc:etc_selinux_config.html|/etc/sysconfig/selinux]]\\  (RHEL6/CentOS6)  | No SELinux policy is loaded.\\ SELINUX=disabled  |
 | /etc/fstab                                                                                                                                                                                                                      | | /etc/fstab                                                                                                                                                                                                                      |
-| /etc/snmp/snmpd.conf                                                                                                                                                           |                                                  |+| [[os:linux:set:etc:etc_snmp_snmpd.conf|/etc/snmp/snmpd.conf]]                                                                                                                  |                                                  |
 | /etc/sysconfig/static-routes                                                                                                                                                                                                    | | /etc/sysconfig/static-routes                                                                                                                                                                                                    |
 | /etc/hosts                                                                                                                                                                                                                      | | /etc/hosts                                                                                                                                                                                                                      |


os/linux/set/index.html.1518880641.txt.gz · Last modified: 2018/02/18 00:17 by kurihara