Giter VIP home page Giter VIP logo

chef-solo's Introduction

chef-solo

chef-solo . it's esay setup server . user iptables ntp ruby nginx mysql publiffy git_project unicorn

  • CnetOS 6
  • selinux::disabled
  • init_network
  • init_user
  • init_setting
  • init_iptables
  • ntp
  • mysql
  • mysql::server
  • mysql_user
  • rbenv
  • ruby
  • mkdir
  • nginx
  • nginx_conf
  • publify (ruby on rails blog engine)
  • deploy_project (git project & command setup)
  • unicorn

Install

1.Chef key

  • [OPSCODE](berks install --path site-cookbooks) Download & install Chef

~/.chef/ knife.rb mukaer-validator.pem mukaer.pem

2.Get Code

cd ~/
git clone https://github.com/mukaer/chef-solo.git
cd chef-solo
gem install bundle
berks install --path site-cookbooks

Use

Boot Setup server.

knife solo prepare  [email protected]

edit nodes/192.168.0.63.json or show example nodes/example.json

{"run_list":[
	 "init_user",
     "ntp",
     "mysql",
	 "rbenv",
	 "ruby",
     "deploy_project"
 ],
 
 "init_user" :{
	 "deploy_auth_keys": ["ssh-rsa AAAAB3Nz....xND1cIQ== [email protected]" ],
     "deploy_id_rsa": "-----BEGIN RSA PRIVATE KEY-----\nMIIEo...PqVsbk=\n-----END RSA PRIVATE KEY-----\n",
	 "deploy_id_rsa_pub"  :"ssh-rsa AAAAB3NzaC1yA...lPbrka6A0w== [email protected]\n",
	 "deploy_known_hosts" : ["mukaer.com,115.179.0.91 ssh-rsa AAAAB3.....NzaC1yijSiscQ=="]
 },
 
 "ntp" :{
	 "servers" :["ntp.nict.jp","ntp.ring.gr.jp","0.jp.pool.ntp.org","1.jp.pool.ntp.org","2.jp.pool.ntp.org"]
 },

 "deploy_project" : {
	 "projects" : [{
					   "app_root"       : "/var/www/gengou.jp/app",
					   "git_repository" : "https://github.com/mukaer/gengou.jp.git",
					   "git_revison"    : "master",
					   "commands"       : [
						   "cd /var/www/gengou.jp/app ; source /etc/profile && bundle install --system",
						   "chmod 775 /var/www/gengou.jp/app/tmp",
						   "chmod 775 /var/www/gengou.jp/app/log"
					   ]

	 }]

 }
 }
knife solo cook [email protected]

chef-solo's People

Contributors

mukaer avatar

Watchers

James Cloos avatar Sairam Illendula avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.