pillar.example 3.26 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
discourse:
  hostname: 'forum.example.net'
  developer_emails: 'me@example.net'
  smtp:
    address: 'smtp.example.net'
    port: '25'
    user_name: 'me@example.net'
    start_tls: true
    # the following must be set in pillar
    # smtp_password: ~
  letsencrypt:
    enabled: true
    account_email: 'me@example.net'
17
  settings:
18 19
    # configure settings
    # https://github.com/discourse/discourse/blob/master/config/site_settings.yml
20 21 22 23 24 25 26
    default_locale: fr
    title: This is a sample Discourse
    site_description: This is a web forum based on Discourse
    short_site_description: Web forum
    contact_email: william.shakespears@example.net
    contact_url: https://shakespears.example.net
    default_trust_level: '1'
27 28
    # Disable local logins for OAuth2
    enable_local_logins: 'false'
29
  oauth2:
30 31
    # set settings without the `oauth2_` prefix
    # https://github.com/discourse/discourse-oauth2-basic/blob/master/config/settings.yml
32
    enabled: true
33 34 35 36 37 38 39 40 41 42 43 44 45 46
    client_id: sso
    client_secret: ThisIsVerySecret
    authorize_url: https://auth.example.net/auth/realms/example/protocol/openid-connect/auth
    token_url: https://auth.example.net/auth/realms/example/protocol/openid-connect/token/
    callback_user_info_paths: ~
    user_json_url: https://auth.example.net/auth/realms/apps/protocol/openid-connect/userinfo
    json_user_id_path: sub
    json_username_path: preferred_username
    json_name_path: name
    json_email_path: email
    json_email_verified_path: email_verified
    debug_auth: 'true'
    button_title: OAuth Example
    full_screen_login: 'true'
47 48 49 50 51 52 53 54 55 56 57 58 59
  themes:
    matomo:
      theme_name:
        # See https://github.com/discourse/discourse/blob/master/lib/tasks/themes.rake
        url: https://github.com/discourse/discourse-matomo-analytics.git
      settings:
        # For future: this will be used to configure automatically the theme
        # see https://github.com/discourse/discourse-matomo-analytics/blob/master/settings.yml
        host_url: ~
        website_id: ~
        exclude_groups: ~
        user_id_tracking: ~
        subdomain_tracking: ~
60 61 62 63 64 65
  users:
    william:
      # Password reset mail is sent by default
      email: 'william.shakespears@example.net'
      enabled: true
      admin: true
66 67 68 69
  docker:
    repo:
      # do not use the distribution package
      use_vendor_repo: True
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97

  tofs:
    # The files_switch key serves as a selector for alternative
    # directories under the formula files directory. See TOFS pattern
    # doc for more info.
    # Note: Any value not evaluated by `config.get` will be used literally.
    # This can be used to set custom paths, as many levels deep as required.
    files_switch:
      - any/path/can/be/used/here
      - id
      - roles
      - osfinger
      - os
      - os_family

    # All aspects of path/file resolution are customisable using the options below.
    # This is unnecessary in most cases; there are sensible defaults.
    # Default path: salt://< path_prefix >/< dirs.files >/< dirs.default >
    #         I.e.: salt://template/files/default
    # path_prefix: template_alt
    # dirs:
    #   files: files_alt
    #   default: default_alt

    # The entries under `source_files` are prepended to the default source files
    # given for the state
    source_files:
...