GithubHelp home page GithubHelp logo

chef-hostname's Introduction

chef-hostname's People

Contributors

fnichol avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

chef-hostname's Issues

Crashes in chef 10.14.2

Upgraded to new chef the other day, this recipe fails liks so:

2012-09-21T01:02:16+00:00] INFO: Processing ruby_block[restart_chef] action create (hostname::default line 23)
[2012-09-21T01:02:16+00:00] INFO: Restarting chef...

================================================================================
Error executing action `create` on resource 'ruby_block[restart_chef]'
================================================================================

SystemExit
----------
exit

Cookbook Trace:
---------------
config/chef/cookbooks/hostname/recipes/default.rb:28:in `exit'
config/chef/cookbooks/hostname/recipes/default.rb:28:in `block (2 levels) in from_file'

Resource Declaration:
---------------------
# In config/chef/cookbooks/hostname/recipes/default.rb

 22: 
 23: ruby_block "restart_chef" do
 24:   block do
 25:     if fork
 26:       # i am the parent
 27:       Chef::Log.info "Restarting chef..."
 28:       exit 0
 29:     else
 30:       # i am the child
 31:       sleep 0.1 until(Process.ppid() == 1)
 32:       quoted_args = "'" << $*.join("' '") << "'" unless $*.empty?
 33:       exec %Q{'#{$0}' #{quoted_args}}
 34:     end
 35:   end
 36:   action :nothing

Compiled Resource:
------------------
# Declared in config/chef/cookbooks/hostname/recipes/default.rb:23:in `from_file'

ruby_block("restart_chef") do
  action [:nothing]
  retries 0
  retry_delay 2
  cookbook_name :hostname
  recipe_name "default"
  block #<Proc:0x00000002ae3d30@config/chef/cookbooks/hostname/recipes/default.rb:24>
end

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.