Commit fa680b6

mo khan <mo@mokhan.ca>
2015-12-24 18:44:10
add aws env variables for s3 sync.
1 parent ac71307
Changed files (1)
recipes/postgres.rb
@@ -67,9 +67,10 @@ cron 'pg_backups' do
   action :create
   command "#{backups_dir}/pg_backup_rotated.sh -c /etc/postgresql/pg_backup.config"
   environment({
+    "AWS_ACCESS_KEY_ID" => node['stronglifters']['aws']['profiles']['default']['aws_access_key_id'],
+    "AWS_SECRET_ACCESS_KEY" => node['stronglifters']['aws']['profiles']['default']['aws_secret_access_key'],
     "PGPASSFILE" => "/var/lib/postgresql/.pgpass",
     "PGPASSWORD" => node["postgresql"]["password"]["postgres"],
-    "AWS_KEY" => "",
   })
   hour '1'
   minute '0'