Skip to content

Instantly share code, notes, and snippets.

@thomasv314
Created May 6, 2017 19:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasv314/ea45ee13b9df0911863c89eb9ed75d84 to your computer and use it in GitHub Desktop.
Save thomasv314/ea45ee13b9df0911863c89eb9ed75d84 to your computer and use it in GitHub Desktop.
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