This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[general] | |
# Path to a Public key to install on servers. If a usable key has not | |
# been installed on the remote servers the user will be prompted for a | |
# password and this key will be installed so the password will not be | |
# required again | |
CONFIG_SSH_KEY= | |
# Set to 'y' if you would like Packstack to install MySQL | |
CONFIG_MYSQL_INSTALL=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
our @empty=(b..x); | |
our @full= (a); | |
my $round = 1; | |
OUT:while(1) | |
{ | |
print "#############\n"; | |
foreach my $s (@full){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################################################################ | |
#script to trigger this script | |
# for i in {1..84} | |
# do | |
# scp AutoNetconf.sh 10.5.101.$i:~/ | |
# ssh 10.5.101.$i "sh AutoNetConf.sh $i" | |
# done | |
################################################################ | |
IPID=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Function: | |
# This script can collect Infomation of System OS,CPU,MEM,DISK,NETWORK,and so on. | |
# | |
# I modify the script from a example from internet | |
# Thanks to the origin author. | |
# Have Fun! | |
# 2014-04-23 by shalk | |
# Todo : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use 5.010; | |
use strict; | |
use Expect; | |
my $cmd = "perl simulate.pl"; | |
my $timeout = 30; | |
my @question_list = qw/name age home/; | |
my $qa = { | |
"name" => "shalk\n", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@localhost ~]# cat 1.pl | |
#!/usr/bin/env perl | |
use 5.010; | |
use strict; | |
use Expect; | |
#use Smart::Comments; | |
my $cmd = "perl simulate.pl"; | |
my $timeout = 30; | |
my $qa = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
#use lib './nopass/lib/perl5/'; | |
#use Smart::Comments; | |
use Expect; | |
use Getopt::Long; | |
my $username = "root"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm | |
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm | |
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-40.el6.centos.noarch.rpm | |
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm | |
rpm -qa | grep yum | xargs rpm -e --nodeps | |
rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm | |
rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm | |
rpm -ivh yum-3.2.29-40.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python -V | |
if [ $? != 0 ] ; then | |
echo "python not installed" | |
fi | |
# | |
rpm -ivh python-devel-2.6.0-8.12.2.x86_64.rpm | |
fail(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# prepare: | |
# a server installed suse 11 sp2 | |
# ISO of suse | |
# autoinst.xml | |
# this script | |
# usage: | |
# modify this script's line between 18 ~ 26 | |
# make this parameter correct | |
# description: |