Coder Social home page Coder Social logo

chef-deploy's People

Contributors

jcrosby avatar smerritt avatar sr avatar zpinter 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar

chef-deploy's Issues

Release cleanup should be configurable and default to 5 (currently 6)

The cleanup action in chef-deploy should be configurable, like capistrano, to keep a configurable number of releases or disable the release cleanup. Also, capistrano's default is to keep the last 5 releases, but chef-deploy is cleaning up releases >= 5 instead of > 5 so it's keeping only 4 releases by default.

scm 'subversion' doesn't work

Here my deploy block:

deploy "/srv/#{appname}" do
repo "###"
svn_username "###"
svn_password "###"
scm 'subversion'
branch node[:rails_app_name][:branch]
user "root"
group "root"
migrate node[:rails_app_name][:migrate]
migration_command node[:rails_app_name][:migrate_command]
environment node[:rails_app_name][:environment]
revision node[:rails_app_name][:revision]
action node[:rails_app_name][:action].to_sym
restart_command "touch tmp/restart.txt"
action :deploy
end

I always get this error:
"/var/lib/gems/1.8/gems/chef-0.8.6/bin/../lib/chef/resource.rb:74:in method_missing': undefined methodscm' for Chef::Resource::Deploy (NoMethodError)"

Doesn't work with current version of Chef

Hope to save people some time here. This gem no longer works with the newer releases of Chef.

Using the given example I got this error:


    ArgumentError: wrong number of arguments (3 for 2)

This is caused by line 23 in /lib/chef-deploy.rb


    class Deploy < Chef::Resource

```
  def initialize(name, collection=nil, node=nil)
    super(name, collection, node)
```

The super method, defined in Chef itself, now expects different arguments.

Deploy doesn't seem to send notifications when updated

Having a line like this -- notifies :restart, resources(:service => 'delayed_job'), :delayed -- doesn't seem to work with chef-deploy. Even when the cached copy has been updated, my resource doesn't receive the notification.

Would obviously be handy to be able to use the notifies system.

When using svn as the scm

Generated at Thu Jan 26 09:25:06 -0500 2012
ArgumentError: wrong number of arguments (3 for 2)
/usr/lib/ruby/gems/1.8/gems/chef-deploy-0.2.5/lib/chef-deploy.rb:23:in initialize' /usr/lib/ruby/gems/1.8/gems/chef-deploy-0.2.5/lib/chef-deploy.rb:23:ininitialize'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/mixin/recipe_definition_dsl_core.rb:61:in new' /usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/mixin/recipe_definition_dsl_core.rb:61:inmethod_missing'
/tmp/chef-solo/cookbooks/sympleobjects/recipes/default.rb:31:in from_file' /usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/cookbook_version.rb:578:inload_recipe'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/mixin/language_include_recipe.rb:40:in include_recipe' /usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/mixin/language_include_recipe.rb:27:ineach'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/mixin/language_include_recipe.rb:27:in include_recipe' /usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/run_context.rb:72:inload'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/run_context.rb:69:in each' /usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/run_context.rb:69:inload'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/client.rb:195:in setup_run_context' /usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/client.rb:159:inrun'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/application/solo.rb:192:in run_application' /usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/application/solo.rb:183:inloop'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/application/solo.rb:183:in run_application' /usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/../lib/chef/application.rb:67:inrun'
/usr/lib/ruby/gems/1.8/gems/chef-0.10.6/bin/chef-solo:25
/usr/bin/chef-solo:19:in `load'
/usr/bin/chef-solo:19

Changing the repo in the deploy block doesn't get reflected in deployment

The simplest example is changing branches (with SVN). The URL of the repo changes but since the directory already exists on the server it just updates the cached-copy. Not sure if this is SVN-related only.

The basic fix would be to compare the cached-copy repo to the repository in the configuration. If they don't match, delete the cached copy and export.

Wanted to get it noted here so that it doesn't get lost (since I can't fix it right now)

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.