• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

schubert/brewstrap: Homebrew + RVM + Chef Soloist

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

schubert/brewstrap

开源软件地址:

https://github.com/schubert/brewstrap

开源编程语言:

Shell 100.0%

开源软件介绍:

Brewstrap

For OSX: Homebrew + rbenv/RVM + Chef Solo For Linux: Your local package management + Chef Solo For OpenBSD: Ports + Ansible

To make it easier to automate the setup for a development team or across multiple personal machines. This script attempts to install XCode if it is not already installed. Installs homebrew. Then using your github credentials attempts to kick off a chef-solo run of a repository of your choosing.

You can see an example repository here: https://github.com/schubert/brewstrap-example

Running

curl -L http://git.io/PvkgGw > /tmp/$USER-brewstrap.sh && bash /tmp/$USER-brewstrap.sh

or

ftp -o /tmp/$USER-brewstrap.sh http://git.io/PvkgGw && sh /tmp/$USER-brewstrap.sh

Options (set before running)

export DEBUG=true # Enable verbose messaging for git, chef librarian and chef-solo
export RVM=true # Use/install RVM instead of rbenv
# OSX Only
export XCODE=true # Attempt to install Xcode from ADC instead of installing Xcode CLI tools

It is recommended now that you just install Xcode through the app store. Apple has not made it easy to automatically install Xcode anymore and many homebrew packages will not work with the CLI package.

If a solo.rb file is not present in your repo brewstrap will write one out expecting cookbooks only to be in the "cookbooks" folder. If you have additional folders you wish to include (for example site-cookbooks if you are using Librarian Chef) then check in your own solo.rb:

base_dir = File.expand_path(File.dirname(__FILE__))
file_cache_path File.join(base_dir, "tmp", "cache")
cookbook_path File.join(base_dir, "cookbooks"), File.join(base_dir, "site-cookbooks")

If a Cheffile from Librarian Chef is present, brewstrap will install the librarian-chef gem and then attempt to run "librarian-chef install" before launching chef solo.

The details of your github credentials are written out to a file: ~/.brewstraprc. In the future this will be stored in the OSX keychain and multiple chef repositories will be supported so you can layer a personal repository ontop of a team repository.

History

I have multiple machines at home and I get a new laptop every 2 years. Going through and setting things up everytime is a hassle. I could do migrations but I like to use the upgrade as an excuse to clear out any cruft that I may no longer be using.

Legal

Chef and chef-solo are © 2010 Opscode (http://www.opscode.com/)

License

MIT




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap