Commit 1cad63aac429d9e4d21d4c68ec291d4d48ec1224

Authored by Paulo Tada
1 parent 647dc98a
Exists in master and in 1 other branch mezuro_spb

Putting the dev and prod conf into standard model

config/dev/config.yaml
  1 +# This is a sample of config.yaml file. Make the changes according to your
  2 +# environment.
  3 +
  4 +# Valid RPM repository and gpgkey links of SoftwarePublico packages
  5 +# Default: "https://copr-be.cloud.fedoraproject.org/results/softwarepublico/v5/epel-7-$basearch/"
  6 +# "https://copr-be.cloud.fedoraproject.org/results/softwarepublico/v5/pubkey.gpg"
  7 +#
1 rpm_repository: https://copr-be.cloud.fedoraproject.org/results/softwarepublico/v5/epel-7-$basearch/ 8 rpm_repository: https://copr-be.cloud.fedoraproject.org/results/softwarepublico/v5/epel-7-$basearch/
2 rpm_gpgkey: https://copr-be.cloud.fedoraproject.org/results/softwarepublico/v5/pubkey.gpg 9 rpm_gpgkey: https://copr-be.cloud.fedoraproject.org/results/softwarepublico/v5/pubkey.gpg
  10 +
  11 +# Users admins for the environment
3 admins: 12 admins:
4 - ["Paulo Meirelles", "paulo@softwarelivre.org"] 13 - ["Paulo Meirelles", "paulo@softwarelivre.org"]
  14 +
  15 +# External domain name for Softwarepublico
  16 +# Example:
  17 +# site_url: https://softwarepublico.gov.br
  18 +# external_hostname: softwarepublico.gov.br
5 site_url: https://dev.softwarepublico.gov.br 19 site_url: https://dev.softwarepublico.gov.br
6 external_hostname: dev.softwarepublico.gov.br 20 external_hostname: dev.softwarepublico.gov.br
  21 +
  22 +# External domain for monitoring server
  23 +# Default: "status.sofwarepublico"
  24 +#
  25 +# This is for a production environment. You don't really needs that for
  26 +# development or test environments.
  27 +#
7 monitor_external_hostname: status.dev.softwarepublico.gov.br 28 monitor_external_hostname: status.dev.softwarepublico.gov.br
  29 +
  30 +# Munin master private IP addr
  31 +#
  32 +# This also is used for production environment purposes
  33 +munin_master: 10.18.0.21
  34 +
  35 +# Raven dsn key for sentry
  36 +raven_dsn: https://a5e2f92a83774dfc9de66486e0fe970b:1a9229a4e1d2483582144d302fb53115@sentry.tracy.com.br/19
  37 +
  38 +# Alternatives hostname for Softwarepulico
  39 +#
8 alternative_hostnames: 40 alternative_hostnames:
9 - www.dev.softwarepublico.gov.br 41 - www.dev.softwarepublico.gov.br
  42 +
  43 +# The public IP address for the reverseproxy machine
  44 +# If the public IP is provided from other machine, just put the private IP of
  45 +# the reverseproxy machine
10 external_ip: 10.18.0.15 46 external_ip: 10.18.0.15
  47 +
  48 +# Alternative port for ssh access of reverseproxy machine
11 alt_ssh_port: 55555 49 alt_ssh_port: 55555
  50 +
  51 +# Configurations for the email reply.
  52 +#
  53 +# Example:
  54 +# colab_from_address: '"Softwarepublico" <noreply@softwarepublico.gov>'
  55 +# server_email: '"Softwarepublico" <noreply@softwarepublico.gov>'
  56 +# email_subject_prefix: '[spb]'
12 colab_from_address: '"Portal do Software Publico (dev)" <noreply@dev.softwarepublico.gov.br>' 57 colab_from_address: '"Portal do Software Publico (dev)" <noreply@dev.softwarepublico.gov.br>'
13 server_email: '"Portal do Software Publico (dev)" <noreply@dev.softwarepublico.gov.br>' 58 server_email: '"Portal do Software Publico (dev)" <noreply@dev.softwarepublico.gov.br>'
14 email_subject_prefix: '[spb|dev]' 59 email_subject_prefix: '[spb|dev]'
15 -lists_hostname: listas.dev.softwarepublico.gov.br 60 +
  61 +# Email list addresses
  62 +#
  63 +# Example:
  64 +# lists_admin: admin@admin.gov
  65 +# from_address: noreply@softwarepublico.gov
16 lists_admin: paulo@softwarelivre.org 66 lists_admin: paulo@softwarelivre.org
17 from_address: noreply@dev.softwarepublico.gov.br 67 from_address: noreply@dev.softwarepublico.gov.br
  68 +
  69 +# Email hostnames
  70 +#
  71 +# Example:
  72 +# lists_hostname: listas.softwarepublico.gov
  73 +# relay_hostname: relay.softwarepublico.gov
  74 +lists_hostname: listas.dev.softwarepublico.gov.br
18 relay_hostname: relay.dev.softwarepublico.gov.br 75 relay_hostname: relay.dev.softwarepublico.gov.br
  76 +
  77 +# Relay external IP address. Used to send reply emails.
19 relay_ip: 189.9.151.44 78 relay_ip: 189.9.151.44
20 external_outgoing_mail_relay: 189.9.150.53 79 external_outgoing_mail_relay: 189.9.150.53
21 external_outgoing_mail_domain: serpro.gov.br 80 external_outgoing_mail_domain: serpro.gov.br
22 -raven_dsn: https://a5e2f92a83774dfc9de66486e0fe970b:1a9229a4e1d2483582144d302fb53115@sentry.tracy.com.br/19 81 +
  82 +# Google Analytics ID. Check out the google documentation for more information
  83 +# about the ID: https://support.google.com/analytics/answer/1032385?hl=pt-BR
23 google_analytics_id: 'UA-64206731-2' 84 google_analytics_id: 'UA-64206731-2'
24 -munin_master: 10.18.0.21 85 +
  86 +# Numbers of workes for colab.
  87 +# Default: numbers of cpu * 2 + 1
  88 +#
  89 +# Make sure that you have enough resources for the amount of workers
  90 +#colab_http_workers: <NUMBER OF WORKERS>
  91 +
  92 +# Backup frequence,
  93 +# True if you want to the frequency to be monthly
  94 +# False if you want to the frequency to be hourly, daily, weekly and monthly
  95 +# Default: False
25 dev_backup_frequency: true 96 dev_backup_frequency: true
  97 +
  98 +# Disabling send email
  99 +# True the emails to be sent will be write on file
  100 +# False the emails will be sent normally
  101 +# Default: False
26 disable_send_emails: true 102 disable_send_emails: true
config/dev/ips.yaml
  1 +# This file contains the IP of all the machines on the environment.
  2 +# All of them must be the private IP.
1 reverseproxy: 10.18.0.15 3 reverseproxy: 10.18.0.15
2 database: 10.18.0.16 4 database: 10.18.0.16
3 social: 10.18.0.17 5 social: 10.18.0.17
config/prod/config.yaml
  1 +# This is a sample of config.yaml file. Make the changes according to your
  2 +# environment.
  3 +
  4 +# Valid RPM repository and gpgkey links of SoftwarePublico packages
  5 +# Default: "https://copr-be.cloud.fedoraproject.org/results/softwarepublico/v5/epel-7-$basearch/"
  6 +# "https://copr-be.cloud.fedoraproject.org/results/softwarepublico/v5/pubkey.gpg"
  7 +#
1 rpm_repository: https://copr-be.cloud.fedoraproject.org/results/softwarepublico/v5/epel-7-$basearch/ 8 rpm_repository: https://copr-be.cloud.fedoraproject.org/results/softwarepublico/v5/epel-7-$basearch/
2 rpm_gpgkey: https://copr-be.cloud.fedoraproject.org/results/softwarepublico/v5/pubkey.gpg 9 rpm_gpgkey: https://copr-be.cloud.fedoraproject.org/results/softwarepublico/v5/pubkey.gpg
  10 +
  11 +# Users admins for the environment
3 admins: 12 admins:
4 - ["Nayanne Araújo", "nayanne.bonifacio@planejamento.gov.br"] 13 - ["Nayanne Araújo", "nayanne.bonifacio@planejamento.gov.br"]
5 - ["Marisa Souza dos Santos", "marisa.santos@planejamento.gov.br"] 14 - ["Marisa Souza dos Santos", "marisa.santos@planejamento.gov.br"]
  15 +
  16 +# External domain name for Softwarepublico
  17 +# Example:
  18 +# site_url: https://softwarepublico.gov.br
  19 +# external_hostname: softwarepublico.gov.br
6 site_url: https://softwarepublico.gov.br 20 site_url: https://softwarepublico.gov.br
7 external_hostname: softwarepublico.gov.br 21 external_hostname: softwarepublico.gov.br
  22 +
  23 +# External domain for monitoring server
  24 +# Default: "status.sofwarepublico"
  25 +#
  26 +# This is for a production environment. You don't really needs that for
  27 +# development or test environments.
  28 +#
8 monitor_external_hostname: status.softwarepublico.gov.br 29 monitor_external_hostname: status.softwarepublico.gov.br
  30 +
  31 +# Munin master private IP addr
  32 +#
  33 +# This also is used for production environment purposes
  34 +munin_master: 10.21.0.10
  35 +
  36 +# Raven dsn key for sentry
  37 +raven_dsn: https://4418146896924efe9b73d557f803f047:8a59f39b5f584ff589ecf3dd47faaead@sentry.tracy.com.br/13
  38 +
  39 +# Alternatives hostname for Softwarepulico
  40 +#
9 alternative_hostnames: 41 alternative_hostnames:
10 - www.softwarepublico.gov.br 42 - www.softwarepublico.gov.br
11 - portal.softwarepublico.gov.br 43 - portal.softwarepublico.gov.br
12 - beta.softwarepublico.gov.br 44 - beta.softwarepublico.gov.br
  45 +
  46 +# The public IP address for the reverseproxy machine
  47 +# If the public IP is provided from other machine, just put the private IP of
  48 +# the reverseproxy machine
13 external_ip: 10.21.0.4 49 external_ip: 10.21.0.4
  50 +
  51 +# Alternative port for ssh access of reverseproxy machine
14 alt_ssh_port: 55555 52 alt_ssh_port: 55555
  53 +
  54 +# Configurations for the email reply.
  55 +#
  56 +# Example:
  57 +# colab_from_address: '"Softwarepublico" <noreply@softwarepublico.gov>'
  58 +# server_email: '"Softwarepublico" <noreply@softwarepublico.gov>'
  59 +# email_subject_prefix: '[spb]'
15 colab_from_address: '"Portal do Software Publico" <noreply@portal.softwarepublico.gov.br>' 60 colab_from_address: '"Portal do Software Publico" <noreply@portal.softwarepublico.gov.br>'
16 server_email: '"Portal do Software Publico" <noreply@portal.softwarepublico.gov.br>' 61 server_email: '"Portal do Software Publico" <noreply@portal.softwarepublico.gov.br>'
17 email_subject_prefix: '[spb]' 62 email_subject_prefix: '[spb]'
18 -lists_hostname: listas.softwarepublico.gov.br 63 +
  64 +# Email list addresses
  65 +#
  66 +# Example:
  67 +# lists_admin: admin@admin.gov
  68 +# from_address: noreply@softwarepublico.gov
19 lists_admin: nayanne.bonifacio@planejamento.gov.br 69 lists_admin: nayanne.bonifacio@planejamento.gov.br
20 from_address: noreply@softwarepublico.gov.br 70 from_address: noreply@softwarepublico.gov.br
  71 +
  72 +# Email hostnames
  73 +#
  74 +# Example:
  75 +# lists_hostname: listas.softwarepublico.gov
  76 +# relay_hostname: relay.softwarepublico.gov
  77 +lists_hostname: listas.softwarepublico.gov.br
21 relay_hostname: relay.softwarepublico.gov.br 78 relay_hostname: relay.softwarepublico.gov.br
  79 +
  80 +# Relay external IP address. Used to send reply emails.
22 relay_ip: 189.9.151.68 81 relay_ip: 189.9.151.68
23 external_outgoing_mail_relay: 189.9.150.53 82 external_outgoing_mail_relay: 189.9.150.53
24 external_outgoing_mail_domain: serpro.gov.br 83 external_outgoing_mail_domain: serpro.gov.br
25 -raven_dsn: https://4418146896924efe9b73d557f803f047:8a59f39b5f584ff589ecf3dd47faaead@sentry.tracy.com.br/13 84 +
  85 +# Google Analytics ID. Check out the google documentation for more information
  86 +# about the ID: https://support.google.com/analytics/answer/1032385?hl=pt-BR
26 google_analytics_id: 'UA-64206731-1' 87 google_analytics_id: 'UA-64206731-1'
27 -munin_master: 10.21.0.10 88 +
  89 +# Numbers of workes for colab.
  90 +# Default: numbers of cpu * 2 + 1
  91 +#
  92 +# Make sure that you have enough resources for the amount of workers
28 colab_http_workers: 32 93 colab_http_workers: 32
  94 +
  95 +# Backup frequence,
  96 +# True if you want to the frequency to be monthly
  97 +# False if you want to the frequency to be hourly, daily, weekly and monthly
  98 +# Default: False
  99 +#dev_backup_frequency: false
  100 +
  101 +# Disabling send email
  102 +# True the emails to be sent will be write on file
  103 +# False the emails will be sent normally
  104 +# Default: False
  105 +#disable_send_emails: true
config/prod/ips.yaml
  1 +# This file contains the IP of all the machines on the environment.
  2 +# All of them must be the private IP.
1 reverseproxy: 10.21.0.4 3 reverseproxy: 10.21.0.4
2 database: 10.21.0.6 4 database: 10.21.0.6
3 social: 10.21.0.5 5 social: 10.21.0.5
config/sample/config.yaml
@@ -88,3 +88,15 @@ google_analytics_id: &#39;&lt;ID&gt;&#39; @@ -88,3 +88,15 @@ google_analytics_id: &#39;&lt;ID&gt;&#39;
88 # 88 #
89 # Make sure that you have enough resources for the amount of workers 89 # Make sure that you have enough resources for the amount of workers
90 #colab_http_workers: <NUMBER OF WORKERS> 90 #colab_http_workers: <NUMBER OF WORKERS>
  91 +
  92 +# Backup frequence,
  93 +# True if you want to the frequency to be monthly
  94 +# False if you want to the frequency to be hourly, daily, weekly and monthly
  95 +# Default: False
  96 +#dev_backup_frequency: false
  97 +
  98 +# Disabling send email
  99 +# True the emails to be sent will be write on file
  100 +# False the emails will be sent normally
  101 +# Default: False
  102 +#disable_send_emails: true