Skip to content

Instantly share code, notes, and snippets.

This is in my attributes file.
case fqdn
when "goofy.hosted.exlibrisgroup.com"
set[:monitoring][:services] = "goofy_service"
when "ldaptest1.hosted.exlibrisgroup.com"
set[:monitoring][:services] = "ldaptest1_service"
else
set[:monitoring][:services] = "other_service"
end
this is the error I get.
/srv/chef/cookbooks/system/libraries/add_env_var.rb:1:in `system': wrong number of arguments (ArgumentError)
Module system
def add_env_var(variable, path)
envfile = "/etc/profile.d/99generic.sh"
foundvar = false
arr = IO.readlines( envfile ) if File::exists?( envfile )
/usr/lib/ruby/1.8/net/http.rb:2097:in `error!': 500 "Internal Server Error" (Net::HTTPFatalError)
from /usr/lib/ruby/1.8/chef/rest.rb:233:in `run_request'
from /usr/lib/ruby/1.8/chef/rest.rb:95:in `post_rest'
from /usr/lib/ruby/1.8/chef/client.rb:243:in `authenticate'
from /usr/lib/ruby/1.8/chef/client.rb:79:in `run'
from /usr/lib/ruby/1.8/chef/application/client.rb:186:in `run_application'
from /usr/lib/ruby/1.8/chef/application/client.rb:178:in `loop'
from /usr/lib/ruby/1.8/chef/application/client.rb:178:in `run_application'
from /usr/lib/ruby/1.8/chef/application.rb:57:in `run'
from /usr/bin/chef-client:25
merb : worker (port 4000) ~ Started request handling: Fri Nov 20 02:19:58 +0000 2009
merb : worker (port 4000) ~ Routed to: {"format"=>nil, "action"=>"show", "id"=>"domU-12-31-39-03-49-96_compute-1_internal", "controller"=>"chef_server_slice/openid_register"}
merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"show", "id"=>"domU-12-31-39-03-49-96_compute-1_internal", "controller"=>"chef_server_slice/openid_register"}
~ Sending HTTP Request via GET to /chef/openid_registration_domU-12-31-39-03-49-96_compute-1_internal
~ #<Chef::OpenIDRegistration:0xb6c44d3c @couchdb=#<Chef::CouchDB:0xb6c44b5c @rest=#<Chef::REST:0xb6c44ae4 @cookies={}, @url="http://localhost:5984">>, @password="cae674779a1c68175364de2fc09061bb7fc3fee1", @couchdb_rev="1-2614451b4e40c9ce8a5e4379212ef3e4", @salt="Thu Nov 19 23:56:51 +0000 2009jQFGf3qvoz4pW4fKX6mjw7D2YRSRq5", @admin=false, @name="domU-12-31-39-03-49-96_compute-1_internal", @validated=false>
merb : worker (port 4000) ~ {:before_filters_time=>5.9e-05, :action_time=>0.004
execute "update-ubuntu" do
command "apt-get update -y;apt-get upgrade -y"
action :nothing
end
remote_file "/etc/apt/sources.list" do
source "sources.list"
mode "0755"
owner "root"
group "root"
execute "postfix-aliases" do
command "/usr/bin/newaliases"
creates "/etc/mail/aliases.db"
action :nothing
end
remote_file "/etc/mail/aliases" do
source "aliases"
mode "0644"
notifies :run, resources(:execute => "postfix-aliases"), :immediately
namespace(:branch) do
desc("show status of each branch")
task(:status_all) do
puts "Updating remote"
`git remote update`
x = `git br -a | grep -v remotes | tr -d ' ' | tr -d '*'`
y = x.split
goodbranchcount = 0
badbranchcount = 0
y.each do |thisbranch|
[Tue, 29 Dec 2009 15:59:13 GMT] [error] [<0.488.0>] {error_report,<0.22.0>,
{<0.488.0>,crash_report,
[[{pid,<0.488.0>},
{registered_name,[]},
{error_info,
{error,badarg,
[{re,split,[undefined,"(?<=})\\s*,\\s*(?={)",[{return,list}]]},
{couch_httpd,make_arity_1_fun_list,1},
{couch_httpd,handle_request,5},
{mochiweb_http,headers,5},

Keybase proof

I hereby claim:

  • I am albertsj1 on github.
  • I am jalberts (https://keybase.io/jalberts) on keybase.
  • I have a public key whose fingerprint is 0F81 58AC 123C 9118 E40B 1DCB 1DEF 3839 17D7 4AA3

To claim this, I am signing this object:

@albertsj1
albertsj1 / gist:af22659753599dffe367
Created July 11, 2014 17:49
libffi net::ftp error
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Failed to fetch source from #source_uri (NameError: uninitialized constant Net::FTP)
Fetcher params:
source URI: ftp://sourceware.org/pub/libffi/libffi-3.0.13.tar.gz
checksum: 45f3b6dbc9ee7c7dfbbbc5feba571529
local location: /Users/j.alberts/sharedhome/home/Covestic/src/omnibus-shaker/local/cache/libffi-3.0.13.tar.gz
Exception:
NameError: uninitialized constant Net::FTP
/Users/j.alberts/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/bundler/gems/omnibus-ruby-85c6ed8a8248/lib/omnibus/fetchers/net_fetcher.rb:151:in `download'
/Users/j.alberts/.rbenv/versions/1.9.3-p448/lib/ruby/gems/1.9.1/bundler/gems/omnibus-ruby-85c6ed8a8248/lib/omnibus/fetchers/net_fetcher.rb:75:in `fetch'