This file contains hidden or 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
# ls -l | |
total 20K | |
lrwxrwxrwx 1 nginx nginx 26 Apr 24 18:09 current -> deploy-2015-04-24_14-50-32 | |
drwxrwxr-x 7 nginx nginx 4.0K Apr 24 17:52 deploy-2015-04-24_14-50-32 | |
drwxrwxr-x 3 nginx nginx 4.0K Apr 24 18:06 deploy-2015-04-24_18-06-22 | |
drwxrwxr-x 3 nginx nginx 4.0K Apr 24 18:10 deploy-2015-04-24_18-10-44 | |
drwxrwxr-x 4 nginx nginx 4.0K Apr 26 22:46 deploy-2015-04-26_22-43-37 | |
drwxrwxr-x 4 nginx nginx 4.0K Apr 27 16:00 deploy-2015-04-27_15-58-33 | |
This file contains hidden or 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/sh | |
### BEGIN INIT INFO | |
# Provides: gtt | |
# Required-Start: $local_fs $remote_fs $network $syslog | |
# Required-Stop: $local_fs $remote_fs $network $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Unicorn application | |
# Description: Unicorn application |
This file contains hidden or 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
### Export volume | |
volume mp-sas | |
type storage/posix | |
option directory /mnt/glusterfsd/SAS-DFS | |
end-volume | |
volume mp-sata | |
type storage/posix | |
option directory /mnt/glusterfsd/SATA-DFS | |
end-volume |
This file contains hidden or 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
### Add client feature and attach to remote subvolume | |
volume mp-sas1-imp01 | |
type protocol/client | |
option transport-type tcp | |
option remote-host 213.133.111.249 | |
option remote-port 49994 | |
option remote-subvolume mp-sas1 | |
option username MP | |
option password sPOUwe74w38sdkl | |
end-volume |
This file contains hidden or 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
### Export volume | |
volume mp-sas | |
type storage/posix | |
option directory /mnt/glusterfsd/SAS-DFS | |
end-volume | |
volume mp-sata | |
type storage/posix | |
option directory /mnt/glusterfsd/SATA-DFS | |
end-volume |
This file contains hidden or 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
### Add client feature and attach to remote subvolume | |
volume mp-sas1-imp01 | |
type protocol/client | |
option transport-type tcp | |
option remote-host 213.133.111.249 | |
option remote-port 49994 | |
option remote-subvolume mp-sas1 | |
option username MP | |
option password sPOUwe74w38sdkl | |
end-volume |
This file contains hidden or 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
Site-to-Site OpenVPN routing | |
1. Server | |
89…. White public | |
192.168.1.1(/24) | |
[psychov@home openvpn]$ cat openvpn.conf | |
dev tun | |
ifconfig 10.1.0.1 10.1.0.2 | |
script-security 2 |
This file contains hidden or 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
https://doc-0s-1k-docs.googleusercontent.com/docs/securesc/jgt1n40rh1a5v0jkb1ak9ljihv97glhm/3jhj5omch3bgmnlab0952tptudbq874m/1424556000000/08786061292528027406/06273899509421333520/0B-EthI79WXHNZnh3cDBRd1IwUmM?e=download&h=09874388012917686259&nonce=dauiqj7p4vefs&user=06273899509421333520&hash=g6p8ha7fpg8kttn9cj10r3rdhecepb9k |
This file contains hidden or 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 | |
set -e # fail on any error | |
template="Debian-wheezy_7.6_amd64.tar.gz" | |
hostname="fox.dts.com"; id="102"; ip="155.75.11.23"; swap="0"; disk="20"; cpus="4"; mem="2048" | |
pvesh create /nodes/oss-hn01/openvz -vmid $id \ | |
-hostname $hostname \ | |
-storage local -ostemplate local:vztmpl/$template \ | |
-memory $mem \ | |
-swap $swap \ |