Giter Site home page Giter Site logo

kitchenplan / chef-applications Goto Github PK

View Code? Open in Web Editor NEW
23.0 6.0 33.0 1.65 MB

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

License: Apache License 2.0

Ruby 48.10% HTML 51.39% Shell 0.52%

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 diskwriter avatar floodedcodeboy avatar ibevanmeenen avatar jockri avatar krispypen avatar maadhattah avatar mikeclarke avatar nanoxd avatar roderik avatar sambego avatar spobo avatar willejs avatar wimvds avatar wireframe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

chef-applications's Issues

Alfred does not work


Recipe: <Dynamically Defined Resource>
  * remote_file[/var/chef/cache/Alfred.dmg - Alfred] action create[2013-02-22T22:28:03+01:00] INFO: Processing remote_file[/var/chef/cache/Alfred.dmg - Alfred] action create (/opt/kitchenplan/vendor/cookbooks/dmg/providers/package.rb line 34)
[2013-02-22T22:28:03+01:00] DEBUG: remote_file[/var/chef/cache/Alfred.dmg - Alfred] checking for changes
[2013-02-22T22:28:03+01:00] DEBUG: Sending HTTP Request via GET to media.alfredapp.com:80/alfred_1.3.3_267.zip
[2013-02-22T22:28:03+01:00] DEBUG: Streaming download from http://media.alfredapp.com/alfred_1.3.3_267.zip to tempfile /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/chef-rest20130222-13216-15qd20o-0
[2013-02-22T22:28:06+01:00] DEBUG: remote_file[/var/chef/cache/Alfred.dmg - Alfred] checking for file existence of /var/chef/cache/Alfred.dmg
[2013-02-22T22:28:06+01:00] DEBUG: remote_file[/var/chef/cache/Alfred.dmg - Alfred] file exists at /var/chef/cache/Alfred.dmg
[2013-02-22T22:28:06+01:00] DEBUG: remote_file[/var/chef/cache/Alfred.dmg - Alfred] target checksum: a5593b2ad706efef485438280094a6a0a543e39f2db102f0e6e6a5c64ccbdbe8
[2013-02-22T22:28:06+01:00] DEBUG: remote_file[/var/chef/cache/Alfred.dmg - Alfred] source checksum: a5593b2ad706efef485438280094a6a0a543e39f2db102f0e6e6a5c64ccbdbe8
[2013-02-22T22:28:06+01:00] DEBUG: remote_file[/var/chef/cache/Alfred.dmg - Alfred] target and source checksums are the same - not updating
 (up to date)
  * ruby_block[attach /var/chef/cache/Alfred.dmg] action run[2013-02-22T22:28:06+01:00] INFO: Processing ruby_block[attach /var/chef/cache/Alfred.dmg] action run (/opt/kitchenplan/vendor/cookbooks/dmg/providers/package.rb line 42)
hdiutil: imageinfo failed - not recognized
hdiutil: attach failed - not recognized
[2013-02-22T22:28:07+01:00] INFO: ruby_block[attach /var/chef/cache/Alfred.dmg] called

    - execute the ruby block attach /var/chef/cache/Alfred.dmg

  * execute[cp -R '/Volumes/Alfred.app/Alfred.app' '/Applications'] action run[2013-02-22T22:28:07+01:00] INFO: Processing execute[cp -R '/Volumes/Alfred.app/Alfred.app' '/Applications'] action run (/opt/kitchenplan/vendor/cookbooks/dmg/providers/package.rb line 54)

Postgres configuration doesn't work

Error when configuring postgres:


---- Begin output of psql -d template1 -c 'create user smlscript;' ----
STDOUT: 
STDERR: psql: could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
---- End output of psql -d template1 -c 'create user smlscript;' ----

this is because PGHOST gets set as an environment variable in bash, but bash isn't reloaded when postgres is installed, so it looks for the socket at the wrong place.

Mavericks compatibility

Just a ticket to track the testing for Mavericks, currently DP3

First of all, i need to "chown root:staff /Applications", it set to the admin group and this does not work for some reason.

  • 1password.rb
  • 7zip.rb
  • acl.rb - linux only, could probably use an if
  • adium.rb
  • adobe_reader.rb
  • alfred.rb
  • apache.rb
  • bartender.rb - does something wonky with the default items in the menu bar
  • bash-completion.rb
  • bash4.rb - issues with the Terminal, fails with bash: detected source and destination buffer overlap
  • bettertouchtool.rb
  • charlesproxy.rb
  • chicken.rb
  • codekit.rb
  • composer.rb
  • cord.rb
  • coreutils.rb
  • crashplan.rb
  • create_var_chef_cache.rb
  • cyberduck.rb
  • default.rb
  • diffmerge.rb
  • dnsmasq.rb
  • dropbox.rb
  • drush.rb
  • espresso.rb
  • essentials.rb
  • evernote.rb
  • filezilla.rb
  • findutils.rb
  • firefox.rb
  • flash.rb
  • flux.rb
  • gcc42.rb
  • git-flow.rb
  • git.rb
  • github_for_mac.rb
  • gnu-tar.rb
  • google-chrome.rb
  • handbrake.rb
  • heroku.rb
  • hipchat.rb
  • hostbuddy.rb
  • htop.rb
  • hub.rb
  • iftop.rb
  • imagealpha.rb
  • imageoptim.rb
  • increase_shared_memory.rb
  • istatmenus4.rb
  • java.rb
  • kaleidoscope.rb
  • kdeploydeps-mavericks.rb
  • kdeploydeps.rb
  • keyboardcleantool.rb
  • lastpass.rb
  • locales.rb - linux only, could probably use an if
  • mod_jk.rb - Works only if your Xcode is Xcode.app
  • mou.rb
  • mysql.rb
  • mysql_python.rb
  • mysql_workbench.rb
  • newrelic.rb
  • nodejs.rb
  • nscd.rb
  • omnigraffle.rb
  • omniplan.rb
  • performance_scheduler.rb
  • php-fpm.rb
  • php54.rb - https://github.com/josegonzalez/homebrew-php/issues/591
  • php55.rb - https://github.com/josegonzalez/homebrew-php/issues/591
  • phpstorm.rb
  • pidgin.rb
  • postfix.rb
  • postgresql.rb - Homebrew/legacy-homebrew#21099
  • psycopg2.rb
  • pureftpd.rb
  • pv.rb
  • pwgen.rb
  • rsync.rb
  • rubymine.rb
  • rvm.rb
  • sass.rb
  • sequelpro.rb
  • server_tuning.rb
  • siege.rb
  • skype.rb
  • sourcetree.rb
  • spotify.rb
  • ssh_config.rb
  • sublime_text.rb
  • superduper.rb
  • svgo.rb
  • synergy.rb
  • things.rb
  • totalfinder.rb - does not seem to work, is it even needed in mavericks?
  • tower.rb
  • tunnelblick.rb
  • ubuntu-desktop.rb
  • vagrant.rb
  • varnish.rb
  • virtualbox.rb
  • viscosity.rb
  • vlc.rb
  • vmware_fusion.rb
  • watch.rb
  • wget.rb
  • wireshark.rb
  • xmlstarlet.rb
  • xquartz.rb
  • xvfb.rb

PHP55 is too specific

The PHP55 recipe includes a couple settings in the ini file that are specific to your company's setup. This isn't the only spot where that happens - the kstrano recipe, for example, installs your capistrano deploy scripts. I'm just wondering how we're supposed to handle some of these - is the intention that we fork and use our own chef-applications repo? Or what exactly?

Any guidance would be helpful, thanks!

Missing privileges on .vagrant.d directory

After installing vagrant via kitchenplan I encountered the following problem when trying to add new boxes.

vagrant box add precise32 http://files.vagrantup.com/precise32.box
Downloading box from URL: http://files.vagrantup.com/precise32.box
Download failed. Will try another box URL if there is one.-)
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

Failed writing body (0 != 869)

Some searching within the vagrant issues led me to this usefull hint which solved my issues for now. Would be awesome if someone fixes this. :-)

Timeout in MySQL

In /opt/kitchenplan/vendor/cookbooks/applications/recipes/mysql.rb

61: ruby_block "Checking that mysql is running" do
62: block do
63: Timeout::timeout(60) do
64: until File.exists?("/tmp/mysql.sock")
65: sleep 1
66: end
67: end
68: end
69: end

I try to install mysql using kitchenplan, but I always get a Timeout Error when it is checking the existence of /tmp/myqsl.sock. Anyone knows what happens here?

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.