Giter Site home page Giter Site logo

ricog / chef-applications Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kitchenplan/chef-applications

0.0 2.0 0.0 525 KB

A cookbook, based on the pivotal_workstation, but without a lot of custom providers and a lot cleaner.

License: Apache License 2.0

Ruby 46.76% HTML 52.73% Shell 0.51%

chef-applications's Introduction

applications Cookbook Build Status

A cookbook, based on the pivotal_workstation, but without a lot of custom providers and a lot cleaner.

Usage

package / homebrew_package

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.

As this extends the built-in package resource/provider in Chef, it has all the resource attributes and actions available to the package resource. However, a couple notes:

  • Homebrew itself doesn't have a notion of "upgrade" per se. The "upgrade" action will simply perform an install, and if the Homebrew Formula for the package is newer, it will upgrade.
  • Likewise, Homebrew doesn't have a purge, but the "purge" action will act like "remove".

Examples

package "mysql" do
  action :install
end

homebrew_package "mysql"

package "mysql" do
  provider Chef::Provider::Package::Homebrew
end

homebrew_tap

LWRP for brew tap, a Homebrew command used to add additional formula repositories. From the brew man page:

tap [tap]
       Tap a new formula repository from GitHub, or list existing taps.

       tap is of the form user/repo, e.g. brew tap homebrew/dupes.

Default action is :tap which enables the repository. Use :untap to disable a tapped repository.

Examples

homebrew_tap "homebrew/dupes"

homebrew_tap "homebrew/dupes" do
  action :untap
end

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write you change
  4. Run the tests, ensuring they all pass (with travis)
  5. Submit a Pull Request using Github

Analytics

chef-applications's People

Contributors

betamatt avatar floodedcodeboy avatar ibevanmeenen avatar jockri avatar krispypen avatar maadhattah avatar mikeclarke avatar nanoxd avatar roderik avatar spobo avatar willejs avatar wimvds avatar wireframe avatar

Watchers

 avatar  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.