326c7994c2
Code was expecting a dictionary but instead got a list, throwing a ValueError. Change-Id: I24afcebc861396bfa1ca261e5fe32c7caa4e64b0
431 lines
12 KiB
YAML
431 lines
12 KiB
YAML
# General settings
|
|
SECRET_KEY: '+er!!4olta#17a=n%uotcazg2ncpl==yjog%1*o-(cr%zys-)!'
|
|
|
|
# SECURITY WARNING: don't run with debug turned on in production!
|
|
DEBUG: True
|
|
ALLOWED_HOSTS:
|
|
- "*"
|
|
|
|
ADDITIONAL_APPS:
|
|
- adjutant.api.v1
|
|
- adjutant.actions.v1
|
|
|
|
DATABASES:
|
|
default:
|
|
ENGINE: django.db.backends.sqlite3
|
|
NAME: db.sqlite3
|
|
|
|
LOGGING:
|
|
version: 1
|
|
disable_existing_loggers: False
|
|
handlers:
|
|
file:
|
|
level: INFO
|
|
class: logging.FileHandler
|
|
filename: reg_log.log
|
|
loggers:
|
|
adjutant:
|
|
handlers:
|
|
- file
|
|
level: INFO
|
|
propagate: False
|
|
django:
|
|
handlers:
|
|
- file
|
|
level: INFO
|
|
propagate: False
|
|
keystonemiddleware:
|
|
handlers:
|
|
- file
|
|
level: INFO
|
|
propagate: False
|
|
|
|
EMAIL_SETTINGS:
|
|
EMAIL_BACKEND: django.core.mail.backends.console.EmailBackend
|
|
|
|
# setting to control if user name and email are allowed
|
|
# to have different values.
|
|
USERNAME_IS_EMAIL: True
|
|
|
|
# Keystone config
|
|
KEYSTONE:
|
|
username: admin
|
|
password: openstack
|
|
project_name: admin
|
|
# MUST BE V3 API:
|
|
auth_url: http://localhost/identity/v3
|
|
domain_id: default
|
|
can_edit_users: True
|
|
|
|
HORIZON_URL: http://localhost:8080/
|
|
|
|
# time for the token to expire in hours
|
|
TOKEN_EXPIRE_TIME: 24
|
|
|
|
ACTIVE_TASKVIEWS:
|
|
- UserRoles
|
|
- UserDetail
|
|
- UserResetPassword
|
|
- UserSetPassword
|
|
- UserList
|
|
- RoleList
|
|
- SignUp
|
|
- UserUpdateEmail
|
|
- UpdateProjectQuotas
|
|
|
|
DEFAULT_TASK_SETTINGS:
|
|
emails:
|
|
initial:
|
|
subject: Initial Confirmation
|
|
reply: no-reply@example.com
|
|
from: bounce+%(task_uuid)s@example.com
|
|
template: initial.txt
|
|
# html_template: initial.txt
|
|
# If the related actions 'can' send a token,
|
|
# this field should here.
|
|
token:
|
|
subject: Your Token
|
|
reply: no-reply@example.com
|
|
from: bounce+%(task_uuid)s@example.com
|
|
template: token.txt
|
|
# html_template: token.txt
|
|
completed:
|
|
subject: Task completed
|
|
reply: no-reply@example.com
|
|
from: bounce+%(task_uuid)s@example.com
|
|
template: completed.txt
|
|
# html_template: completed.txt
|
|
notifications:
|
|
EmailNotification:
|
|
standard:
|
|
emails:
|
|
- example@example.com
|
|
reply: no-reply@example.com
|
|
from: bounce+%(task_uuid)s@example.com
|
|
template: notification.txt
|
|
# html_template: completed.txt
|
|
error:
|
|
emails:
|
|
- example@example.com
|
|
reply: no-reply@example.com
|
|
from: bounce+%(task_uuid)s@example.com
|
|
template: notification.txt
|
|
# html_template: completed.txt
|
|
|
|
# Default Action settings:
|
|
# These can be overridden at a per task level below in the
|
|
# task settings so that multiple tasks can use the same actions
|
|
# slightly differently.
|
|
#
|
|
# TASK_SETTINGS:
|
|
# <task_type>:
|
|
# <othersettings> ....
|
|
# ....
|
|
# action_settings:
|
|
# <action_class_name>:
|
|
# <action_settings_overrides> ....
|
|
DEFAULT_ACTION_SETTINGS:
|
|
NewProjectAction:
|
|
default_roles:
|
|
- project_admin
|
|
- project_mod
|
|
- heat_stack_owner
|
|
- _member_
|
|
NewProjectWithUserAction:
|
|
default_roles:
|
|
- project_admin
|
|
- project_mod
|
|
- heat_stack_owner
|
|
- _member_
|
|
NewUserAction:
|
|
allowed_roles:
|
|
- project_admin
|
|
- project_mod
|
|
- heat_stack_owner
|
|
- _member_
|
|
ResetUserPasswordAction:
|
|
blacklisted_roles:
|
|
- admin
|
|
NewDefaultNetworkAction:
|
|
RegionOne:
|
|
network_name: default_network
|
|
subnet_name: default_subnet
|
|
router_name: default_router
|
|
public_network: 3cb50d61-5bce-4c03-96e6-8e262e12bb35
|
|
DNS_NAMESERVERS:
|
|
- 193.168.1.2
|
|
- 193.168.1.3
|
|
SUBNET_CIDR: 192.168.1.0/24
|
|
NewProjectDefaultNetworkAction:
|
|
RegionOne:
|
|
network_name: default_network
|
|
subnet_name: default_subnet
|
|
router_name: default_router
|
|
public_network: 3cb50d61-5bce-4c03-96e6-8e262e12bb35
|
|
DNS_NAMESERVERS:
|
|
- 193.168.1.2
|
|
- 193.168.1.3
|
|
SUBNET_CIDR: 192.168.1.0/24
|
|
AddDefaultUsersToProjectAction:
|
|
default_users:
|
|
- admin
|
|
default_roles:
|
|
- admin
|
|
SetProjectQuotaAction:
|
|
regions:
|
|
RegionOne:
|
|
quota_size: small
|
|
UpdateProjectQuotasAction:
|
|
days_between_autoapprove: 30
|
|
SendAdditionalEmailAction:
|
|
initial:
|
|
email_current_user: False
|
|
reply: no-reply@example.com
|
|
from: bounce+%(task_uuid)s@example.com
|
|
subject: "Openstack Email Notification"
|
|
template: null
|
|
token:
|
|
email_current_user: False
|
|
reply: no-reply@example.com
|
|
from: bounce+%(task_uuid)s@example.com
|
|
subject: "Openstack Email Notification"
|
|
template: null
|
|
completed:
|
|
email_current_user: False
|
|
reply: no-reply@example.com
|
|
from: bounce+%(task_uuid)s@example.com
|
|
subject: "Openstack Email Notification"
|
|
template: null
|
|
# A null template will cause the email not to send
|
|
# Also emails to the given roles on the project
|
|
# email_roles:
|
|
# - project_admin
|
|
# Or sends to an email set in the task cache
|
|
# email_task_cache: True
|
|
# Or sends to an arbitrary admin email
|
|
# email_additional_addresses:
|
|
# - admin@example.org
|
|
|
|
# These are cascading overrides for the default settings:
|
|
TASK_SETTINGS:
|
|
signup:
|
|
# You can override 'default_actions' if needed for given taskviews
|
|
# The order of the actions is order of execution.
|
|
#
|
|
# default_actions:
|
|
# - NewProjectAction
|
|
#
|
|
# Additional actions for views
|
|
# These will run after the default actions, in the given order.
|
|
additional_actions:
|
|
- NewProjectDefaultNetworkAction
|
|
- SetProjectQuotaAction
|
|
emails:
|
|
initial:
|
|
subject: Your OpenStack signup has been received
|
|
template: signup_initial.txt
|
|
token:
|
|
subject: Your OpenStack signup has been approved
|
|
template: signup_token.txt
|
|
completed:
|
|
subject: Your OpenStack signup has been completed
|
|
template: signup_completed.txt
|
|
notifications:
|
|
EmailNotification:
|
|
standard:
|
|
emails:
|
|
- signups@example.com
|
|
error:
|
|
emails:
|
|
- signups@example.com
|
|
default_region: RegionOne
|
|
# If 'None' (null in yaml) will default to domain as parent.
|
|
# If domain isn't set explicity will service user domain (see KEYSTONE).
|
|
default_parent_id: null
|
|
invite_user:
|
|
duplicate_policy: cancel
|
|
emails:
|
|
# To not send this email set the value to null
|
|
initial: null
|
|
token:
|
|
subject: Invitation to an OpenStack project
|
|
template: invite_user_token.txt
|
|
completed:
|
|
subject: Invitation Completed
|
|
template: invite_user_completed.txt
|
|
errors:
|
|
SMTPException:
|
|
notification: acknowledge
|
|
engines: False
|
|
reset_password:
|
|
duplicate_policy: cancel
|
|
emails:
|
|
initial: null
|
|
token:
|
|
subject: Password Reset for OpenStack
|
|
template: password_reset_token.txt
|
|
completed:
|
|
subject: Password Reset Completed
|
|
template: password_reset_completed.txt
|
|
force_password:
|
|
duplicate_policy: cancel
|
|
emails:
|
|
initial: null
|
|
token:
|
|
subject: Set your OpenStack password
|
|
template: initial_password_token.txt
|
|
completed:
|
|
subject: Welcome to OpenStack!
|
|
template: initial_password_completed.txt
|
|
edit_user:
|
|
duplicate_policy: cancel
|
|
emails:
|
|
initial: null
|
|
token: null
|
|
role_blacklist:
|
|
- admin
|
|
edit_roles:
|
|
duplicate_policy: cancel
|
|
emails:
|
|
initial: null
|
|
token: null
|
|
update_email:
|
|
duplicate_policy: cancel
|
|
additional_actions:
|
|
- SendAdditionalEmailAction
|
|
emails:
|
|
initial: null
|
|
token:
|
|
subject: Confirm OpenStack Email Update
|
|
template: email_update_token.txt
|
|
completed:
|
|
subject: OpenStack Email Updated
|
|
template: email_update_completed.txt
|
|
action_settings:
|
|
SendAdditionalEmailAction:
|
|
initial:
|
|
subject: OpenStack Email Update Requested
|
|
template: email_update_started.txt
|
|
email_current_user: True
|
|
update_quota:
|
|
duplicate_policy: cancel
|
|
size_difference_threshold: 0.1
|
|
emails:
|
|
initial: null
|
|
token: null
|
|
completed:
|
|
subject: Openstack Quota updated
|
|
template: quota_completed.txt
|
|
|
|
# mapping between roles and managable roles
|
|
ROLES_MAPPING:
|
|
admin:
|
|
- project_admin
|
|
- project_mod
|
|
- heat_stack_owner
|
|
- _member_
|
|
project_admin:
|
|
- project_admin
|
|
- project_mod
|
|
- heat_stack_owner
|
|
- _member_
|
|
project_mod:
|
|
- project_mod
|
|
- heat_stack_owner
|
|
- _member_
|
|
|
|
PROJECT_QUOTA_SIZES:
|
|
small:
|
|
nova:
|
|
instances: 10
|
|
cores: 20
|
|
ram: 65536
|
|
floating_ips: 10
|
|
fixed_ips: 0
|
|
metadata_items: 128
|
|
injected_files: 5
|
|
injected_file_content_bytes: 10240
|
|
key_pairs: 50
|
|
security_groups: 20
|
|
security_group_rules: 100
|
|
cinder:
|
|
gigabytes: 5000
|
|
snapshots: 50
|
|
volumes: 20
|
|
neutron:
|
|
floatingip: 10
|
|
network: 3
|
|
port: 50
|
|
router: 3
|
|
security_group: 20
|
|
security_group_rule: 100
|
|
subnet: 3
|
|
medium:
|
|
cinder:
|
|
gigabytes: 10000
|
|
volumes: 100
|
|
snapshots: 300
|
|
nova:
|
|
metadata_items: 128
|
|
injected_file_content_bytes: 10240
|
|
ram: 327680
|
|
floating_ips: 25
|
|
key_pairs: 50
|
|
instances: 50
|
|
security_group_rules: 400
|
|
injected_files: 5
|
|
cores: 100
|
|
fixed_ips: 0
|
|
security_groups: 50
|
|
neutron:
|
|
security_group_rule: 400
|
|
subnet: 5
|
|
network: 5
|
|
floatingip: 25
|
|
security_group: 50
|
|
router: 5
|
|
port: 250
|
|
large:
|
|
cinder:
|
|
gigabytes: 50000
|
|
volumes: 200
|
|
snapshots: 600
|
|
nova:
|
|
metadata_items: 128
|
|
injected_file_content_bytes: 10240
|
|
ram: 655360
|
|
floating_ips: 50
|
|
key_pairs: 50
|
|
instances: 100
|
|
security_group_rules: 800
|
|
injected_files: 5
|
|
cores: 200
|
|
fixed_ips: 0
|
|
security_groups: 100
|
|
neutron:
|
|
security_group_rule: 800
|
|
subnet: 10
|
|
network: 10
|
|
floatingip: 50
|
|
security_group: 100
|
|
router: 10
|
|
port: 500
|
|
|
|
# Time in seconds to cache token from Keystone
|
|
TOKEN_CACHE_TIME: 600
|
|
|
|
# Ordered list of quota sizes from smallest to biggest
|
|
QUOTA_SIZES_ASC:
|
|
- small
|
|
- medium
|
|
- large
|
|
|
|
# Services to check through the quotas for
|
|
QUOTA_SERVICES:
|
|
"*":
|
|
- nova
|
|
- neutron
|
|
- cinder
|
|
# Additonal Quota Service
|
|
# - octavia
|