github.com/spg/deis@v1.7.3/controller/templates/confd_settings.py (about)

     1  # security keys and auth tokens
     2  SECRET_KEY = '{{ getv "/deis/controller/secretKey" }}'
     3  BUILDER_KEY = '{{ getv "/deis/controller/builderKey" }}'
     4  
     5  # scheduler settings
     6  SCHEDULER_MODULE = 'scheduler.{{ if exists "/deis/controller/schedulerModule" }}{{ getv "/deis/controller/schedulerModule" }}{{ else }}fleet{{ end }}'
     7  SCHEDULER_TARGET = '{{ if exists "/deis/controller/schedulerTarget" }}{{ getv "/deis/controller/schedulerTarget" }}{{ else }}/var/run/fleet.sock{{ end }}'
     8  try:
     9      SCHEDULER_OPTIONS = dict('{{ if exists "/deis/controller/schedulerOptions" }}{{ getv "/deis/controller/schedulerOptions" }}{{ else }}{}{{ end }}')
    10  except:
    11      SCHEDULER_OPTIONS = {}
    12  
    13  # scheduler swarm manager host
    14  SWARM_HOST = '{{ if exists "/deis/scheduler/swarm/host" }}{{ getv "/deis/scheduler/swarm/host" }}{{ else }}127.0.0.1{{ end }}'
    15  
    16  # base64-encoded SSH private key to facilitate current version of "deis run"
    17  SSH_PRIVATE_KEY = """{{ if exists "/deis/platform/sshPrivateKey" }}{{ getv "/deis/platform/sshPrivateKey" }}{{ else }}""{{end}}"""
    18  
    19  # platform domain must be provided
    20  DEIS_DOMAIN = '{{ getv "/deis/platform/domain" }}'
    21  
    22  # use the private registry module
    23  REGISTRY_MODULE = 'registry.private'
    24  REGISTRY_URL = '{{ getv "/deis/registry/protocol" }}://{{ getv "/deis/registry/host" }}:{{ getv "/deis/registry/port" }}'  # noqa
    25  REGISTRY_HOST = '{{ getv "/deis/registry/host" }}'
    26  REGISTRY_PORT = '{{ getv "/deis/registry/port" }}'
    27  
    28  # default to sqlite3, but allow postgresql config through envvars
    29  DATABASES = {
    30      'default': {
    31          'ENGINE': 'django.db.backends.{{ getv "/deis/database/engine" }}',
    32          'NAME': '{{ getv "/deis/database/name" }}',
    33          'USER': '{{ getv "/deis/database/user" }}',
    34          'PASSWORD': '{{ getv "/deis/database/password" }}',
    35          'HOST': '{{ getv "/deis/database/host" }}',
    36          'PORT': '{{ getv "/deis/database/port" }}',
    37      }
    38  }
    39  
    40  # move log directory out of /app/deis
    41  DEIS_LOG_DIR = '/data/logs'
    42  
    43  {{ if exists "/deis/controller/registrationMode" }}
    44  REGISTRATION_MODE = '{{ getv "/deis/controller/registrationMode" }}'
    45  {{ end }}
    46  
    47  {{ if exists "/deis/controller/webEnabled" }}
    48  WEB_ENABLED = bool({{ getv "/deis/controller/webEnabled" }})
    49  {{ end }}
    50  UNIT_HOSTNAME = '{{ if exists "/deis/controller/unitHostname" }}{{ getv "/deis/controller/unitHostname" }}{{ else }}default{{ end }}'
    51  
    52  {{ if exists "/deis/controller/subdomain" }}
    53  DEIS_RESERVED_NAMES = ['{{ getv "/deis/controller/subdomain" }}']
    54  {{ end }}
    55  
    56  # AUTH
    57  # LDAP
    58  {{ if exists "/deis/controller/auth/ldap/endpoint" }}
    59  LDAP_ENDPOINT = '{{ if exists "/deis/controller/auth/ldap/endpoint" }}{{ getv "/deis/controller/auth/ldap/endpoint"}}{{ else }} {{ end }}'
    60  BIND_DN = '{{ if exists "/deis/controller/auth/ldap/bind/dn" }}{{ getv "/deis/controller/auth/ldap/bind/dn"}}{{ else }} {{ end }}'
    61  BIND_PASSWORD = '{{ if exists "/deis/controller/auth/ldap/bind/password" }}{{ getv "/deis/controller/auth/ldap/bind/password"}}{{ else }} {{ end }}'
    62  USER_BASEDN = '{{ if exists "/deis/controller/auth/ldap/user/basedn" }}{{ getv "/deis/controller/auth/ldap/user/basedn"}}{{ else }} {{ end }}'
    63  USER_FILTER = '{{ if exists "/deis/controller/auth/ldap/user/filter" }}{{ getv "/deis/controller/auth/ldap/user/filter"}}{{ else }} {{ end }}'
    64  GROUP_BASEDN = '{{ if exists "/deis/controller/auth/ldap/group/basedn" }}{{ getv "/deis/controller/auth/ldap/group/basedn"}}{{ else }} {{ end }}'
    65  GROUP_FILTER = '{{ if exists "/deis/controller/auth/ldap/group/filter" }}{{ getv "/deis/controller/auth/ldap/group/filter"}}{{ else }} {{ end }}'
    66  GROUP_TYPE = '{{ if exists "/deis/controller/auth/ldap/group/type" }}{{ getv "/deis/controller/auth/ldap/group/type"}}{{ else }} {{ end }}'
    67  {{ end }}