github.com/chasestarr/deis@v1.13.5-0.20170519182049-1d9e59fbdbfc/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.fleet'
     7  SCHEDULER_TARGET = '/var/run/fleet.sock'
     8  try:
     9      SCHEDULER_OPTIONS = dict('{{ if exists "/deis/controller/schedulerOptions" }}{{ getv "/deis/controller/schedulerOptions" }}{{ else }}{}{{ end }}')
    10  except:
    11      SCHEDULER_OPTIONS = {}
    12  
    13  # base64-encoded SSH private key to facilitate current version of "deis run"
    14  SSH_PRIVATE_KEY = """{{ if exists "/deis/platform/sshPrivateKey" }}{{ getv "/deis/platform/sshPrivateKey" }}{{ else }}""{{end}}"""
    15  
    16  # platform domain must be provided
    17  DEIS_DOMAIN = '{{ getv "/deis/platform/domain" }}'
    18  
    19  ENABLE_PLACEMENT_OPTIONS = """{{ if exists "/deis/platform/enablePlacementOptions" }}{{ getv "/deis/platform/enablePlacementOptions" }}{{ else }}false{{end}}"""
    20  
    21  # use the private registry module
    22  REGISTRY_URL = '{{ getv "/deis/registry/protocol" }}://{{ getv "/deis/registry/host" }}:{{ getv "/deis/registry/port" }}'  # noqa
    23  REGISTRY_HOST = '{{ getv "/deis/registry/host" }}'
    24  REGISTRY_PORT = '{{ getv "/deis/registry/port" }}'
    25  
    26  # default to sqlite3, but allow postgresql config through envvars
    27  DATABASES = {
    28      'default': {
    29          'ENGINE': 'django.db.backends.{{ getv "/deis/database/engine" }}',
    30          'NAME': '{{ getv "/deis/database/name" }}',
    31          'USER': '{{ getv "/deis/database/user" }}',
    32          'PASSWORD': '{{ getv "/deis/database/password" }}',
    33          'HOST': '{{ getv "/deis/database/host" }}',
    34          'PORT': '{{ getv "/deis/database/port" }}',
    35      }
    36  }
    37  
    38  LOGGER_HOST = '{{ getv "/deis/logs/host"}}'
    39  
    40  {{ if exists "/deis/controller/registrationMode" }}
    41  REGISTRATION_MODE = '{{ getv "/deis/controller/registrationMode" }}'
    42  {{ end }}
    43  
    44  {{ if exists "/deis/controller/webEnabled" }}
    45  WEB_ENABLED = bool({{ getv "/deis/controller/webEnabled" }})
    46  {{ end }}
    47  UNIT_HOSTNAME = '{{ if exists "/deis/controller/unitHostname" }}{{ getv "/deis/controller/unitHostname" }}{{ else }}default{{ end }}'
    48  
    49  {{ if exists "/deis/controller/subdomain" }}
    50  DEIS_RESERVED_NAMES = ['{{ getv "/deis/controller/subdomain" }}']
    51  {{ end }}
    52  
    53  # AUTH
    54  # LDAP
    55  {{ if exists "/deis/controller/auth/ldap/endpoint" }}
    56  LDAP_ENDPOINT = '{{ if exists "/deis/controller/auth/ldap/endpoint" }}{{ getv "/deis/controller/auth/ldap/endpoint"}}{{ else }} {{ end }}'
    57  BIND_DN = '{{ if exists "/deis/controller/auth/ldap/bind/dn" }}{{ getv "/deis/controller/auth/ldap/bind/dn"}}{{ else }} {{ end }}'
    58  BIND_PASSWORD = '{{ if exists "/deis/controller/auth/ldap/bind/password" }}{{ getv "/deis/controller/auth/ldap/bind/password"}}{{ else }} {{ end }}'
    59  USER_BASEDN = '{{ if exists "/deis/controller/auth/ldap/user/basedn" }}{{ getv "/deis/controller/auth/ldap/user/basedn"}}{{ else }} {{ end }}'
    60  USER_FILTER = '{{ if exists "/deis/controller/auth/ldap/user/filter" }}{{ getv "/deis/controller/auth/ldap/user/filter"}}{{ else }} {{ end }}'
    61  GROUP_BASEDN = '{{ if exists "/deis/controller/auth/ldap/group/basedn" }}{{ getv "/deis/controller/auth/ldap/group/basedn"}}{{ else }} {{ end }}'
    62  GROUP_FILTER = '{{ if exists "/deis/controller/auth/ldap/group/filter" }}{{ getv "/deis/controller/auth/ldap/group/filter"}}{{ else }} {{ end }}'
    63  GROUP_TYPE = '{{ if exists "/deis/controller/auth/ldap/group/type" }}{{ getv "/deis/controller/auth/ldap/group/type"}}{{ else }} {{ end }}'
    64  {{ end }}