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 | |
# ansible 설치 | |
apt-get update && apt-get install ansible -y | |
# aws pem을 ssh agent의 key로 등록 | |
ssh-agent bash | |
ssh-add {aws_ssh_key}.pem |
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 | |
## $1 is log file name | |
## $2 is start line number | |
## $3 is end line number | |
for idx in $(seq $2 $3);do | |
sed "${idx}q;d" $1 | json | |
done |
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
$ sdcadm post-setup fabrics -c ./fabric_cfg.json | |
Downloading image ebfc89fa-8ffc-11e6-a823-d354feacbb52 | |
(portolan@master-20161011T214759Z-ga06a34d) | |
Error importing image ebfc89fa-8ffc-11e6-a823-d354feacbb52 | |
(portolan@master-20161011T214759Z-ga06a34d) | |
sdcadm post-setup: error: imgapi client error: socket hang up | |
## download manually | |
$ wget https://us-east.manta.joyent.com/Joyent_Dev/public/builds/portolan/master-20161011T214759Z/portolan/portolan-zfs-master-20161011T214759Z-ga06a34d.zfs.gz --no-check-certificate |
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
RDM 개념 | |
http://www.2cpu.co.kr/bbs/board.php?bo_table=vm&wr_id=23&sca=&sfl=wr_subject&stx=rdm&sop=and |
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
# local tunnel (for connecting remote from local) | |
ssh -f -N -L{LOCAL-PORT}:{DEST-IP}:{DEST-PORT} -l {JUMP-HOST-USER} {JUMP-HOST-IP}:{JUMP-HOST-PORT} | |
# reverse tunnel (for connecting local from remote) | |
ssh -f -N -R {LOCAL-PORT}:{DEST-IP}:{DEST-PORT} -l {LOCAL_USER} {LOCAL-IP}:{LOCAL-PORT} |
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
# common | |
yum install http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm | |
yum install http://rdo.fedorapeople.org/openstack-kilo/rdo-release-kilo.rpm | |
# for proxy node | |
yum install openstack-swift-proxy python-swiftclient python-keystone-auth-token python-keystonemiddleware memcached | |
# for storage node | |
yum install openstack-swift-account openstack-swift-container openstack-swift-object |
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
yum install python-devel gcc python-crypto | |
git clone https://github.com/boto/boto.git | |
cd boto | |
# for centOS 6.x | |
# pip install -r requirements-py26.txt | |
pip install -r requirements.txt | |
python setup.py install |
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 -c "import py_compile;py_compile.compile('FILENAME.py')" |
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 | |
#---------------------- | |
# setup packages | |
#---------------------- | |
#yum update -y | |
yum install -y yum-plugin-priorities | |
yum install -y http://repos.fedorapeople.org/repos/openstack/EOL/openstack-icehouse/rdo-release-icehouse-3.noarch.rpm | |
sed -i "s/baseurl/#baseurl/" /etc/yum.repos.d/rdo-release.repo | |
echo "baseurl=http://repos.fedorapeople.org/repos/openstack/EOL/openstack-icehouse/epel-6/" >> /etc/yum.repos.d/rdo-release.repo |
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 | |
if [[ "`pidof -x $(basename $0) -o %PPID`" ]]; then | |
echo "This script is already running with PID `pidof -x $(basename $0) -o %PPID`" | |
exit | |
fi |
NewerOlder