cleaned up a bit and edited README

This commit is contained in:
Jack Engqvist Johansson 2012-04-21 03:38:52 +02:00
parent 4947d7b9b1
commit 0c89749bdf
5 changed files with 64 additions and 6 deletions

25
LICENSE Normal file
View File

@ -0,0 +1,25 @@
Copyright (c) 2012, Comfirm AB
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the Comfirm AB nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR NY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

7
README
View File

@ -11,6 +11,10 @@ Authors:
Jack Engqvist Johansson, Comfirm AB
http://comfirm.se
License:
BSD 3-Clause
See the LICENSE file
USAGE
=====
To deploy, run:
@ -19,11 +23,14 @@ USAGE
To update already existing deployment, run:
./deploy --update
It will run copy, replace and update-s2...
Partial deployment options:
./deploy --begin Run begin script
./deploy --copy Copy files to /tmp
./deploy --replace Replace the old files
./deploy --finish Run the finish script
./deploy --update-s2 Run the update script, only
WHAT YOU NEED
=============

View File

@ -1,13 +1,14 @@
# (C) 2012 Comfirm AB
# deploy.sh
# The server list.
# deploy.sh
# Copyright (c) 2012, Comfirm AB
#
# To get the most out of deploy.sh you can make it dynamic.
# Use a heartbeat software or similar to maintain it.
# Define the user to login with:
# user name keyfile
# ------------------------------------------
user ubuntu /hvar/keyfiles/ubuntu.rsa
user ubuntu /var/keyfiles/ubuntu.rsa
# Add server groups like this:
# server group ip address

View File

@ -1,7 +1,7 @@
# (C) 2012 Comfirm AB
# deploy.sh
# The deployment file
#
# Copyright (c) 2012, Comfirm AB
# Add files to be copied.
# file group file
# ------------------------------------------

View File

@ -1,9 +1,34 @@
#!/bin/sh
# (C) 2012 Comfirm AB
# deploy.sh
# Easy deployment to multiple servers.
# Deploy code, files, settings and much more to multiple servers via ssh.
#
# Copyright (c) 2012, Comfirm AB
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
# * Neither the name of the Comfirm AB nor the names of its contributors
# may be used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
# FOR NY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# Authors:
# ---------------------------------------------
# Jack Engqvist Johansson, Comfirm AB