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 | ||
preparation:target:fasthandle-init.htmlt [2017/12/20 01:27] kurihara |
preparation:target:fasthandle-init.htmlt [2019/02/13 22:07] (current) kurihara |
||
---|---|---|---|
Line 24: | Line 24: | ||
\\ | \\ | ||
- | ===== FastHandle-init Examples===== | + | ===== fh-init.sh (FastHandle-init Examples)===== |
==== RHEL7/ | ==== RHEL7/ | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
Line 32: | Line 32: | ||
# | # | ||
# How to use | # How to use | ||
+ | # | ||
# | # | ||
- | # | ||
# | # | ||
Line 61: | Line 61: | ||
</ | </ | ||
+ | ==== RHEL6/ | ||
+ | <sxh bash toolbar: | ||
+ | #!/bin/bash | ||
+ | # | ||
+ | # fh-init.sh | ||
+ | # | ||
+ | # How to use | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | |||
+ | # Hostname Settings | ||
+ | if [ ! -z $1 ] ; then | ||
+ | HOSTNAME=$1 | ||
+ | hostname $HOSTNAME | ||
+ | | ||
+ | #/ | ||
+ | cp -p / | ||
+ | grep -v HOSTNAME / | ||
+ | cat / | ||
+ | echo HOSTNAME=$H >> / | ||
+ | fi | ||
+ | |||
+ | |||
+ | # Create fasthandle user | ||
+ | useradd fasthandle | ||
+ | echo ' | ||
+ | |||
+ | |||
+ | # sudoers | ||
+ | cp -p / | ||
+ | |||
+ | cat << @ >> / | ||
+ | |||
+ | |||
+ | # FastHandle | ||
+ | fasthandle | ||
+ | |||
+ | @ | ||
+ | </ | ||
My Sites
SNS
Copyright (c) 2024 FastHandle - IT Operations Examples All Rights Reserved.