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
Last revision Both sides next revision
os:linux:set:index.html [2018/02/14 00:14]
kurihara
os:linux:set:index.html [2018/05/08 00:41]
kurihara
Line 1: Line 1:
 [[:index.html#OS Management|Top#OS Management]] [[:index.html#OS Management|Top#OS Management]]
-====== Set OS Configuration (set.py) ======+====== Set Linux Configuration with Fabric (set.py) ======
  
 $FHHOME/fabfile/set.py $FHHOME/fabfile/set.py
Line 8: Line 8:
  
  
-===== Operation =====+===== Operation with Fabric =====
  
 <sxh bash toolbar:false gutter:false> <sxh bash toolbar:false gutter:false>
Line 17: Line 17:
 </sxh> </sxh>
  
- +\\ 
-==== Ref. 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
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 171: Line 172:
 | [[os:linux:set:authentication:etc_pam.d_su.html|/etc/pam.d/su]]                    | # the only "wheel" group use 'su -' the every users use 'su - user'.\\ ''%%auth           required        pam_wheel.so use_uid  root_only%%''  | | [[os:linux:set:authentication:etc_pam.d_su.html|/etc/pam.d/su]]                    | # the only "wheel" group use 'su -' the every users use 'su - user'.\\ ''%%auth           required        pam_wheel.so use_uid  root_only%%''  |
 | [[os:linux:set:authentication:etc_pam.d_system-auth.html|/etc/pam.d/system-auth]]  |                                                                                                                                                  | | [[os:linux:set:authentication:etc_pam.d_system-auth.html|/etc/pam.d/system-auth]]  |                                                                                                                                                  |
-| /etc/sudoers                                                                                                                                                                                                                  |+| [[os:linux:set:authentication:etc_sudoers|/etc/sudoers]]                           Defaults    requiretty                                                                                                                           |
 | [[os:linux:set:authentication:etc_login.defs.html|/etc/login.defs]]                |                                                                                                                                                  | | [[os:linux:set:authentication:etc_login.defs.html|/etc/login.defs]]                |                                                                                                                                                  |
-| /etc/nsswitch.conf                                                           |                                                                                                                                                  |+| /etc/nsswitch.conf                                                                 |                                                                                                                                                  |
  
 \\ \\
 ==== Deamon ==== ==== Deamon ====
  
-|<100% 200px ->| +|<100% 250px ->| 
-| /etc/ssh/sshd_config                                                                                                                                      +| [[os:linux:set:deamon:etc_ssh_sshd_config.html|/etc/ssh/sshd_config]]                                                                                   PermitRootLogin no\\ PasswordAuthentication yes\\ UseDNS no  
-| /etc/chrony.conf                                                                                                                                             +| [[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                 |
  
 \\ \\
 ==== Kernel ==== ==== Kernel ====
 |<100% 200px ->| |<100% 200px ->|
-| [[os:linux:set:kernel:etc_sysctl.conf.html|/etc/sysctl.conf]]                                                                                         | Kernel Parameter Configuration\\ Example\\ vm.swappiness = 0                                                                                     |+| [[os:linux:set:kernel:etc_sysctl.conf.html|/etc/sysctl.conf]]  | Kernel Parameter Configuration\\ vm.swappiness = 0  |
  
  
Line 211: Line 213:
  
 |<100% 200px ->| |<100% 200px ->|
-| [[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                                                                                                                                                                                                                      | 
 +| [[os:linux:set:etc:etc_snmp_snmpd.conf|/etc/snmp/snmpd.conf]]                                                                                                                  |                                                  | 
 +| /etc/sysconfig/static-routes                                                                                                                                                                                                    | 
 +| /etc/hosts                                                                                                                                                                                                                      | 
 +| /etc/yum.conf                                                                                                                                                                  |                                                  |
  
  


os/linux/set/index.html.txt · Last modified: 2019/02/11 00:40 by kurihara