Commit 2923fd3cc077cadbdce59a6cafaff3a5939fd2b8

Authored by Sergio Oliveira
Committed by Athos
1 parent 16a49e0f

Settings gitlab host and email_from using our yaml

config/development/config.yaml
... ... @@ -10,4 +10,4 @@ email_subject_prefix: '[spb|dev]'
10 10 lists_hostname: listas.dev.softwarepublico.gov.br
11 11 lists_admin: paulo@softwarelivre.org
12 12 relay_hostname: relay.dev.softwarepublico.gov.br
13   -
  13 +from_address: noreply@dev.softwarepublico.gov.br
... ...
config/local/config.yaml
... ... @@ -11,3 +11,4 @@ lists_hostname: listas.softwarepublico.dev
11 11 lists_admin: paulo@softwarelivre.org
12 12 relay_hostname: relay.softwarepublico.dev
13 13 alt_ssh_port: 5555
  14 +from_address: noreply@softwarepublico.dev
... ...
cookbooks/gitlab/templates/gitlab.yml.erb
1 1 production: &base
2 2 gitlab:
3   - host: softwarepublico.dev
  3 + host: <%= node['config']['external_hostname'] %>
4 4 relative_url_root: /gitlab
5 5 port: 80 # Set to 443 if using HTTPS
6 6 https: false # Set to true if using HTTPS
7   - email_from: example@example.com
  7 + email_from: <%= node['config']['from_address'] %>
8 8 default_projects_limit: 10
9 9 default_projects_features:
10 10 issues: true
... ...