FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


Sidebar


Top     SiteMap

Manager Server

Target Server

$FHHOME/bin/xxx.sh | xxxx.exp













.

preparation:target:fasthandle-init.htmlt



This is an old revision of the document!


FastHandle-init

What is FastHandle-init

FastHandle-init is a Basic OS Setting Script before installing FastHandle.


How to use FastHandle-init

  1. OS preparation
  2. Create fasthandle-init.sh
    vi fasthandle-init.sh
    
  3. Change Permission
    chown 755 fasthandle-init.sh
    
  4. Execute fansthandle-init.sh
    ./fasthandle-init.sh test-server-01
    


FastHandle-init Examples

RHEL7/CentOS7

#!/bin/bash
#=================================================
# fasthandle-init.sh   HOSTNAME
#
# How to use
#     ./fasthandle-init.sh  test-server-01
#
#=================================================

# Hostname Settings
HOSTNAME=$1
hostname $HOSTNAME
hostnamectl set-hostname $HOSTNAME

# Create fasthandle user
useradd fasthandle
echo 'fasthandle:fastpass' | chpasswd


# sudoers
cp -p  /etc/sudoers  /etc/sudoers.`date -d '1day ago' +%Y%m%d`

cat << @ >> /etc/sudoers


# FastHandle
fasthandle    ALL=(ALL)   NOPASSWD:ALL

@



preparation/target/fasthandle-init.htmlt.1511370871.txt.gz ยท Last modified: 2017/11/23 02:14 by kurihara