Skip to content

Commit

Permalink
customize password for aox
Browse files Browse the repository at this point in the history
  • Loading branch information
phunehehe committed Jan 3, 2015
1 parent f8821cf commit 38ec786
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion aox/recipes/default.rb
Expand Up @@ -46,5 +46,14 @@
provider node[:fpm][:provider]
end


execute '/usr/local/archiveopteryx/lib/installer -s /var/run/postgresql/.s.PGSQL.5432'


postgresql_user 'aox' do
password node[:aox][:db][:password]
end

template '/usr/local/archiveopteryx/archiveopteryx.conf' do
mode '600'
user 'aox'
end
2 changes: 1 addition & 1 deletion aox/templates/default/archiveopteryx.conf.erb
Expand Up @@ -6,7 +6,7 @@ db-address = 127.0.0.1
db-port = 5432
db-name = archiveopteryx
db-user = aox
db-password = '(database user password here)'
db-password = '<%= node[:aox][:db][:password] %>'

# Uncomment the next line to log more (or set it to debug for even more).
# log-level = info
Expand Down

0 comments on commit 38ec786

Please sign in to comment.