Skip to content

k14i/capistrano-glusterfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

capistrano-glusterfs

A Capistrano 3 recipie for deploying GlusterFS.

You can install the latest master version of GlusterFS concurrently.

Glossary

  • Targetted node means a node on which you are going to install GlusterFS.
  • Executing node means a node where you are going to execute capistrano-glusterfs.

Requirements

Targetted node(s)

  • Red Hat Enterprise Linux 6.4 x86 64bit (or another conpatible Linux distribution).
  • Sshd is running and publickey authentication is enabled between the users on the executing node and the targetted nodes. (Some cloud services are supported as default.)
  • The user on each targetted node is enable to run sudo without a password. (Some cloud services are supported as default.)

Pre-execution procedure

# user="deploy"
# useradd -g root -G wheel $user
# passwd $user
# visudo
# egrep '^%wheel.*NOPASSWD' /etc/sudoers
# chmod 775 /usr/local/src
# yum install -y openssh-clients
# su - $user
$ echo 'export PATH=$PATH:/bin:/usr/bin' >> ~/.bashrc
$ source ~/.bashrc
$ mkdir -p ~/.ssh -m 700
$ mv id_rsa authorized_keys ~/.ssh/
$ chmod 600 ~/.ssh/{authorized_keys,id_rsa}

Executing node

  • Git
  • Ruby >= 1.9.3

Installation on the executing node

$ git clone https://github.com/keithseahus/capistrano-glusterfs.git
$ cd capistrano-glusterfs
$ gem install bundler
$ bundle install
$ bundle exec cap install
$ cp ./config/deploy.rb.example ./config/deploy.rb
$ cp ./config/deploy/staging.rb.example ./config/deploy/staging.rb

Configuration on the executing node

$ vi ./config/deploy/staging.rb

Usage on the executing node

Show usage

$ bundle exec cap -vT | grep -i gluster

Start deployment with the staging configuration

$ bundle exec cap staging deploy

Support

Pull requiest is welcomed.

About

A Capistrano 3 recipie for deploying GlusterFS.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages