This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder