Skip to content

Instantly share code, notes, and snippets.

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 )
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