Skip to content

Commit

Permalink
update tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
dennyzhang committed Jun 24, 2016
1 parent af0b7d4 commit ea51ddb
Show file tree
Hide file tree
Showing 48 changed files with 96 additions and 96 deletions.
4 changes: 2 additions & 2 deletions bash/backup_dir/backup_dir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
##-------------------------------------------------------------------
## @copyright 2016 DennyZhang.com
## Licensed under MIT
## https://raw.githubusercontent.com/DennyZhang/devops_public/2016-06-23/LICENSE
## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE
##
## File : backup_dir.sh
## Author : Denny <[email protected]>
## Description : Backup directory and tar it with timestamp
## --
## Created : <2015-04-21>
## Updated: Time-stamp: <2016-06-24 09:03:42>
## Updated: Time-stamp: <2016-06-24 15:52:59>
##-------------------------------------------------------------------

## Trap exit and dump status
Expand Down
4 changes: 2 additions & 2 deletions bash/create_loop_device.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
##-------------------------------------------------------------------
## @copyright 2016 DennyZhang.com
## Licensed under MIT
## https://raw.githubusercontent.com/DennyZhang/devops_public/2016-06-23/LICENSE
## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE
##
## File : create_loop_device.sh
## Author : Denny <[email protected]>
## Description :
## Sample:
## --
## Created : <2016-06-04>
## Updated: Time-stamp: <2016-06-24 09:03:42>
## Updated: Time-stamp: <2016-06-24 15:52:59>
##-------------------------------------------------------------------
file_count=${1?}

Expand Down
4 changes: 2 additions & 2 deletions bash/disable_oom.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
##-------------------------------------------------------------------
## @copyright 2016 DennyZhang.com
## Licensed under MIT
## https://raw.githubusercontent.com/DennyZhang/devops_public/2016-06-23/LICENSE
## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE
##
## File : disable_oom.sh
## Author : Denny <[email protected]>
## Description :
## Sample:
## --
## Created : <2016-06-04>
## Updated: Time-stamp: <2016-06-24 09:03:42>
## Updated: Time-stamp: <2016-06-24 15:52:59>
##-------------------------------------------------------------------
pid_file=${1?}

Expand Down
4 changes: 2 additions & 2 deletions bash/docker_facility/docker_destroy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
##-------------------------------------------------------------------
## @copyright 2016 DennyZhang.com
## Licensed under MIT
## https://raw.githubusercontent.com/DennyZhang/devops_public/2016-06-23/LICENSE
## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE
##
## File : docker_destroy.sh
## Author : DennyZhang.com <[email protected]>
## Description :
## --
## Created : <2016-01-02>
## Updated: Time-stamp: <2016-06-24 09:03:42>
## Updated: Time-stamp: <2016-06-24 15:52:59>
##-------------------------------------------------------------------
if ! which docker 1>/dev/null 2>&1; then
echo "Skip, since docker is not installed"
Expand Down
2 changes: 1 addition & 1 deletion bash/docker_facility/docker_sandbox.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash -e
## @copyright 2016 DennyZhang.com
## Licensed under MIT
## https://raw.githubusercontent.com/DennyZhang/devops_public/2016-06-23/LICENSE
## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE
##
### BEGIN INIT INFO
# Provides: docker_sandbox
Expand Down
4 changes: 2 additions & 2 deletions bash/dump_db_summary/dump_db_summary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
##-------------------------------------------------------------------
## @copyright 2016 DennyZhang.com
## Licensed under MIT
## https://raw.githubusercontent.com/DennyZhang/devops_public/2016-06-23/LICENSE
## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE
##
## File : dump_db_summary.sh
## Author : Denny <[email protected]>
## Description :
## Sample:
## --
## Created : <2016-06-04>
## Updated: Time-stamp: <2016-06-24 09:03:42>
## Updated: Time-stamp: <2016-06-24 15:52:59>
##-------------------------------------------------------------------
. /etc/profile

Expand Down
4 changes: 2 additions & 2 deletions bash/enforce_all_nagios_check/enforce_all_nagios_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
##-------------------------------------------------------------------
## @copyright 2016 DennyZhang.com
## Licensed under MIT
## https://raw.githubusercontent.com/DennyZhang/devops_public/2016-06-23/LICENSE
## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE
##
## File : enforce_all_nagios_check.sh
## Author : Denny <[email protected]>, Syrett <[email protected]>
Expand All @@ -11,7 +11,7 @@
## ./enforce_all_nagios_check.sh -s "check_.*_log|check_memory|check_tomcat_cpu"
## --
## Created : <2016-06-04>
## Updated: Time-stamp: <2016-06-24 09:03:42>
## Updated: Time-stamp: <2016-06-24 15:52:58>
##-------------------------------------------------------------------

function check_one_server(){
Expand Down
4 changes: 2 additions & 2 deletions bash/free_cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
##-------------------------------------------------------------------
## @copyright 2016 DennyZhang.com
## Licensed under MIT
## https://raw.githubusercontent.com/DennyZhang/devops_public/2016-06-23/LICENSE
## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE
##
## File : free_cache.sh
## Author : Denny <[email protected]>
## Description :
## Sample:
## --
## Created : <2016-06-04>
## Updated: Time-stamp: <2016-06-24 09:03:42>
## Updated: Time-stamp: <2016-06-24 15:52:58>
##-------------------------------------------------------------------
# http://unix.stackexchange.com/questions/17936/setting-proc-sys-vm-drop-caches-to-clear-cache
echo "Free cached memory, so that OS can have more free memory"
Expand Down
4 changes: 2 additions & 2 deletions bash/git_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
##-------------------------------------------------------------------
## @copyright 2016 DennyZhang.com
## Licensed under MIT
## https://raw.githubusercontent.com/DennyZhang/devops_public/2016-06-23/LICENSE
## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE
##
## File : git_update.sh
## Author : Denny <[email protected]>
## Description :
## --
## Created : <2016-04-15>
## Updated: Time-stamp: <2016-06-24 09:03:41>
## Updated: Time-stamp: <2016-06-24 15:52:58>
##-------------------------------------------------------------------
working_dir=${1?}
git_repo_url=${2?}
Expand Down
2 changes: 1 addition & 1 deletion bash/inject_ssh_key/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ How To Use
user_home_list='mac:/Users/mac,root:/root'
ssh_email='[email protected]'
ssh_key='AAAAB3NzaC1yc2EAAAADAQABAAABAQDAwp69ZIA8Usz5EgSh5gBXKGFZBUawP8nDSgZVW6Vl...'
wget -O inject_ssh_key.sh https://raw.githubusercontent.com/DennyZhang/devops_public/2016-06-23/bash/inject_ssh_key/inject_ssh_key.sh
wget -O inject_ssh_key.sh https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/bash/inject_ssh_key/inject_ssh_key.sh
sudo bash ./inject_ssh_key.sh $user_home_list $ssh_email $ssh_key
```
4 changes: 2 additions & 2 deletions bash/inject_ssh_key/inject_ssh_key.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
##-------------------------------------------------------------------
## @copyright 2016 DennyZhang.com
## Licensed under MIT
## https://raw.githubusercontent.com/DennyZhang/devops_public/2016-06-23/LICENSE
## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE
##
## File : inject_ssh_key.sh
## Author : Denny <[email protected]>
## Description :
## --
## Created : <2015-05-13>
## Updated: Time-stamp: <2016-06-24 09:03:41>
## Updated: Time-stamp: <2016-06-24 15:52:58>
##-------------------------------------------------------------------
user_home_list=${1?"To who the ssh key shall be injected. Users are separated by comma"}
ssh_email=${2?"email associated to this ssh key"}
Expand Down
4 changes: 2 additions & 2 deletions bash/list_os_packages/list_os_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
##-------------------------------------------------------------------
## @copyright 2016 DennyZhang.com
## Licensed under MIT
## https://raw.githubusercontent.com/DennyZhang/devops_public/2016-06-23/LICENSE
## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE
##
## File : list_os_packages.sh
## Author : Denny <[email protected]>
Expand All @@ -13,7 +13,7 @@
## list_os_packages.sh python
## --
## Created : <2016-06-04>
## Updated: Time-stamp: <2016-06-24 09:07:27>
## Updated: Time-stamp: <2016-06-24 15:52:58>
################################################################################################
. /etc/profile
[ -n "$DOWNLOAD_PREFIX" ] || export DOWNLOAD_PREFIX="https://raw.githubusercontent.com/DennyZhang/devops_public/master"
Expand Down
4 changes: 2 additions & 2 deletions bash/manage_all_services/manage_all_services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
##-------------------------------------------------------------------
## @copyright 2016 DennyZhang.com
## Licensed under MIT
## https://raw.githubusercontent.com/DennyZhang/devops_public/2016-06-23/LICENSE
## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE
##
## File : manage_all_services.sh
## Author : Denny <[email protected]>
Expand All @@ -13,7 +13,7 @@
# manage_all_services.sh status couchbase-server
## --
## Created : <2016-06-04>
## Updated: Time-stamp: <2016-06-24 09:03:41>
## Updated: Time-stamp: <2016-06-24 15:52:58>
##-------------------------------------------------------------------
. /etc/profile

Expand Down
4 changes: 2 additions & 2 deletions bash/pre_check/pre_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
##-------------------------------------------------------------------
## @copyright 2016 DennyZhang.com
## Licensed under MIT
## https://raw.githubusercontent.com/DennyZhang/devops_public/2016-06-23/LICENSE
## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE
##
## File : pre_check.sh
## Author : Denny <[email protected]>
## Description :
## Sample:
## --
## Created : <2016-06-12>
## Updated: Time-stamp: <2016-06-24 09:07:53>
## Updated: Time-stamp: <2016-06-24 15:52:58>
################################################################################################
. /etc/profile
[ -n "$DOWNLOAD_PREFIX" ] || export DOWNLOAD_PREFIX="https://raw.githubusercontent.com/DennyZhang/devops_public/master"
Expand Down
4 changes: 2 additions & 2 deletions bash/ubuntu1404_inject_163_apt_source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
##-------------------------------------------------------------------
## @copyright 2016 DennyZhang.com
## Licensed under MIT
## https://raw.githubusercontent.com/DennyZhang/devops_public/2016-06-23/LICENSE
## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE
##
## File : ubuntu1404_inject_163_apt_source.sh
## Author : Denny <[email protected]>
## Description :
## --
## Created : <2016-04-18>
## Updated: Time-stamp: <2016-06-24 09:03:41>
## Updated: Time-stamp: <2016-06-24 15:52:58>
##-------------------------------------------------------------------
cat > /etc/apt/sources.list.d/163.list <<EOF
deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted
Expand Down
4 changes: 2 additions & 2 deletions bash/wait_for/wait_for.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
##-------------------------------------------------------------------
## @copyright 2016 DennyZhang.com
## Licensed under MIT
## https://raw.githubusercontent.com/DennyZhang/devops_public/2016-06-23/LICENSE
## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE
##
## File : wait_for.sh
## Author : Denny <[email protected]>
## Description :
## Sample:
## --
## Created : <2016-06-04>
## Updated: Time-stamp: <2016-06-24 09:03:41>
## Updated: Time-stamp: <2016-06-24 15:52:58>
##-------------------------------------------------------------------
. /etc/profile

Expand Down
4 changes: 2 additions & 2 deletions chef/chef_kitchen_provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
##-------------------------------------------------------------------
## @copyright 2016 DennyZhang.com
## Licensed under MIT
## https://raw.githubusercontent.com/DennyZhang/devops_public/2016-06-23/LICENSE
## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE
##
## File : chef_kitchen_provision.sh
## Author : Denny <[email protected]>
## Description :
## --
## Created : <2015-11-30>
## Updated: Time-stamp: <2016-06-24 09:08:32>
## Updated: Time-stamp: <2016-06-24 15:52:58>
##-------------------------------------------------------------------
# pre-cache Chef Omnibus installation
mkdir -p /tmp/install.sh.14
Expand Down
4 changes: 2 additions & 2 deletions chef/chinese_chef_kitchen_provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
##-------------------------------------------------------------------
## @copyright 2016 DennyZhang.com
## Licensed under MIT
## https://raw.githubusercontent.com/DennyZhang/devops_public/2016-06-23/LICENSE
## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE
##
## File : chinese_chef_kitchen_provision.sh
## Author : Denny <[email protected]>
## Description :
## --
## Created : <2015-11-30>
## Updated: Time-stamp: <2016-06-24 09:10:14>
## Updated: Time-stamp: <2016-06-24 15:52:58>
##-------------------------------------------------------------------
# pre-cache Chef Omnibus installation
[ -n "$DOWNLOAD_PREFIX" ] || export DOWNLOAD_PREFIX="https://raw.githubusercontent.com/DennyZhang/devops_public/master"
Expand Down
4 changes: 2 additions & 2 deletions chef/devops_provision_os.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
##-------------------------------------------------------------------
## @copyright 2016 DennyZhang.com
## Licensed under MIT
## https://raw.githubusercontent.com/DennyZhang/devops_public/2016-06-23/LICENSE
## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE
##
## File : devops_provision_os.sh
## Author : Denny <[email protected]>
Expand All @@ -11,7 +11,7 @@
# bash -e /root/devops_provision_os.sh
## --
## Created : <2016-04-20>
## Updated: Time-stamp: <2016-06-24 09:11:53>
## Updated: Time-stamp: <2016-06-24 15:52:57>
################################################################################################
. /etc/profile
[ -n "$DOWNLOAD_PREFIX" ] || export DOWNLOAD_PREFIX="https://raw.githubusercontent.com/DennyZhang/devops_public/master"
Expand Down
4 changes: 2 additions & 2 deletions chef/kitchen_hook_hack_hosts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
##-------------------------------------------------------------------
## @copyright 2016 DennyZhang.com
## Licensed under MIT
## https://raw.githubusercontent.com/DennyZhang/devops_public/2016-06-23/LICENSE
## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE
##
## File : kitchen_hook_hack_hosts.sh
## Author : DennyZhang.com <[email protected]>
## Description : Note the OS user running the script may be root or kitchen!
## --
## Created : <2015-07-03>
## Updated: Time-stamp: <2016-06-24 09:03:41>
## Updated: Time-stamp: <2016-06-24 15:52:57>
##-------------------------------------------------------------------
set +e

Expand Down
6 changes: 3 additions & 3 deletions chef/linux_apply_cookbook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
##-------------------------------------------------------------------
## @copyright 2016 DennyZhang.com
## Licensed under MIT
## https://raw.githubusercontent.com/DennyZhang/devops_public/2016-06-23/LICENSE
## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE
##
## File : linux_apply_cookbook.sh
## Author : Denny <[email protected]>
## Description :
## --
## Created : <2016-04-20>
## Updated: Time-stamp: <2016-06-24 09:13:23>
## Updated: Time-stamp: <2016-06-24 15:52:57>
################################################################################################
. /etc/profile
[ -n "$DOWNLOAD_PREFIX" ] || export DOWNLOAD_PREFIX="https://raw.githubusercontent.com/DennyZhang/devops_public/master"
Expand All @@ -29,7 +29,7 @@ bash /var/lib/devops/refresh_common_library.sh "1523631277" "/var/lib/devops/dev
# export git_repo_url="[email protected]:DennyZhang/chef_community_cookbooks.git"
# export chef_json="{\"run_list\": [\"recipe[general_security]\"], \"general_security\": {\"ssh_disable_passwd_login\": \"true\", \"ssh_disable_root_login\": \"false\"}}"
# apt-get install -y curl
# curl -o /tmp/linux_apply_cookbook.sh https://raw.githubusercontent.com/DennyZhang/devops_public/2016-06-23/chef/linux_apply_cookbook.sh
# curl -o /tmp/linux_apply_cookbook.sh https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/chef/linux_apply_cookbook.sh
# bash -xe /tmp/linux_apply_cookbook.sh
################################################################################################
function basic_setup() {
Expand Down
4 changes: 2 additions & 2 deletions chef/preinstall_kitchen_verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
##-------------------------------------------------------------------
## @copyright 2016 DennyZhang.com
## Licensed under MIT
## https://raw.githubusercontent.com/DennyZhang/devops_public/2016-06-23/LICENSE
## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE
##
## File : preinstall_kitchen_verify.sh
## Author : Denny <[email protected]>
## Description :
## --
## Created : <2015-11-30>
## Updated: Time-stamp: <2016-06-24 09:03:40>
## Updated: Time-stamp: <2016-06-24 15:52:57>
##-------------------------------------------------------------------
LOG_FILE="/var/log/preinstall_kitchen_verify.log"
function log() {
Expand Down
4 changes: 2 additions & 2 deletions chef/setup_jenkins/setup_jenkins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
##-------------------------------------------------------------------
## @copyright 2016 DennyZhang.com
## Licensed under MIT
## https://raw.githubusercontent.com/DennyZhang/devops_public/2016-06-23/LICENSE
## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE
##
## File : setup_jenkins.sh
## Author : Denny <[email protected]>
## Description :
## --
## Created : <2016-04-20>
## Updated: Time-stamp: <2016-06-24 09:15:05>
## Updated: Time-stamp: <2016-06-24 15:52:57>
##-------------------------------------------------------------------
function configure_jenkins_port() {
port=${1?}
Expand Down
Loading

0 comments on commit ea51ddb

Please sign in to comment.