Scripts that bootstrap your server with convenient configuration.
DEPRECATED: please take a look at Transmute: https://github.com/iwinux/transmute (and Ansible) for a more reliable server-management approach.
maintained by Limbo Peng (iwinux@gmail.com)
Usage
- SSH into root@remoteip
apt-get update && apt-get upgrade
apt-get install git-core
git clone http://github.com/iwinux/server-bootstrap
cd server-bootstrap
- run
./boostrap <packagename>
to install the package
Available packages
- deps: install dependencies - this should be run first
- mongodb: download and install MongoDB to /opt/mongodb (ATTENTION: it is for x64)
- nginx: build and install Nginx from source - it will be installed to /opt/nginx
- openvpn: install OpenVPN and set up the server
- python: install pythonbrew and build Python 2.7.2 from source via pythonbrew (installed to home directory of the specified user)
- ruby: install RVM and build Ruby 1.9.3 from source via RVM (installed to home directory of the specified user)
- user: create user with sudo priviledge and copy necessary config files
- vim: build and install Vim 7.3 from source
from https://github.com/iwinux/server-bootstrap
----------
Ansible Playbook for Debian Server Setup.
With the help of Ansible, you can automate (almost) all the steps for setting up a server. No more adhoc (read: unreliable) bash scripts for server provisioning.
This playbook provides a convenient setup for a Debian server, which is mainly used for my personal server management.
Requirements
- Ansible 1.5+
- Debian "wheezy" hosts
Features
- targeted on Debian Linux
- offers some sane defaults:
- unnecesasry packages (shipped with Debian) removed
- APT sources switched to unstable (sid)
- user created with sudo and SSH public key access
- root login on SSH disabled
- installs and sets up packages:
- fail2ban
- nginx
- nodejs
- runit
- shadowsocks
- a few utils
Usage
- set up Ansible following instructions here
git clone https://github.com/iwinux/transmute.git
cp site.yml.tmpl site.yml
and pick up things you need.- define necessary vars in
group_vars/{{ group }}
orhost_vars/{{ host }}
(seegroup_vars/all
andhost_vars/host.tmpl
for example) ansible-playbook site.yml
and you're good to go!from https://github.com/iwinux/transmute