Coder Social home page Coder Social logo

rhenning / chef-homebrew Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mathie/chef-homebrew

1.0 1.0 0.0 108 KB

Convincing Chef to use Homebrew as its native package management tool

Home Page: http://woss.name/2011/01/23/converging-your-home-directory-with-chef/

Ruby 100.00%

chef-homebrew's Introduction

Description

Installs Homebrew and acts as the native package provider for Mac OS X using Homebrew to install packages. See:

woss.name/2011/01/23/converging-your-home-directory-with-chef/

for additional background.

Requirements

Prerequisites

In order for this recipe to work, you will have to already own /usr/local. This is outside the scope of the cookbook because it’s anticipated that you’ll run the cookbook as your own user, not root and you’d have to be root to take ownership of the directory. Easiest way to get started:

sudo chown -R `whoami`:staff /usr/local

Bear in mind that this will take ownership of the entire folder and its contents, so if you’ve already got stuff in there (eg MySQL owned by a mysql user) you’ll need to be a touch more careful.

Platform

This is only going to work on platforms that Homebrew supports which is, I think, just Mac OS X. This cookbook has been tested on Mac OS X 10.6.6 with the latest version of Homebrew (as of Mon 24 Jan 2011 at any rate!).

Cookbooks

Shouldn’t require any other cookbooks, though its operation may be greatly enhanced by another cookbook I’m brewing that manages launchd. ;-)

Resources and Providers

This cookbook provides a package provider called homebrew_package which will install/remove packages using Homebrew. This becomes the default provider for package if your platform is Mac OS X.

Attributes

None.

Usage

Just make sure that this cookbook is selected before you start installing packages. You can add:

include_recipe 'homebrew'

to all your recipes that install packages, or you can just make sure it’s on the run list somewhere early on. The cookbook itself ensures that Homebrew is installed and up to date.

License and Author

Author

Graeme Mathieson (<[email protected]>)

Copyright

2011, Graeme Mathieson

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

chef-homebrew's People

Contributors

mathie avatar onewland avatar

Stargazers

 avatar

Watchers

 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.