Only generate a private SSH key on Geo secondaries

This commit is contained in:
Nick Thomas 2017-09-07 15:17:38 +01:00
parent 1a3d2704d5
commit c2f2dcba80
1 changed files with 1 additions and 2 deletions

View File

@ -44,12 +44,11 @@ end
end
end
include_recipe 'gitlab-ee::ssh_keys'
# Geo secondary
if node['gitlab']['geo-postgresql']['enable']
include_recipe 'gitlab-ee::geo-secondary'
include_recipe 'gitlab-ee::geo_database_migrations'
include_recipe 'gitlab-ee::ssh_keys'
end
# pgbouncer_user and pgbouncer_user_password are settings for the account