Created
May 6, 2017 19:48
-
-
Save thomasv314/ea45ee13b9df0911863c89eb9ed75d84 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
dbag = search('aws_opsworks_app').first | |
environment_string = dbag['environment'].map do |key, val| | |
"export #{key}=#{val}" | |
end.join("\n") | |
file '/etc/environment' do | |
content dbag['environment'].map { |k, v| "export #{k}=#{v}" }.join("\n") | |
owner 'root' | |
group 'root' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment