Revision 3796f345 snf-cyclades-app/synnefo/app_settings/default/ui.py

b/snf-cyclades-app/synnefo/app_settings/default/ui.py
92 92
# vms. {0} gets replaced by the image OS value
93 93
VM_CREATE_NAME_TPL = "My {0} server"
94 94

  
95
# Template to use to build vm hostname
96
UI_VM_HOSTNAME_FORMAT = 'snf-%(id)s.vm.okeanos.grnet.gr'
97

  
95 98
# Name/description metadata for the available flavor disk templates
96 99
# Dict key is the disk_template value as stored in database
97 100
UI_FLAVORS_DISK_TEMPLATES_INFO = {
......
99 102
             'description': 'DRBD storage.'},
100 103
}
101 104

  
105
# Override default connect prompt messages. The setting gets appended to the
106
# ui default values so you only need to modify parameters you need to alter.
107
#
108
# Indicative format:
109
# {
110
#    '<browser os1>': {
111
#        '<vm os family1>': ['top message....', 'bottom message'],
112
#        '<vm os family 2>': ['top message....', 'bottom message'],
113
#        'ssh_message': 'ssh %(user)s@%(hostname)s'
114
# }
115
#
116
# you may use the following parameters to format ssh_message:
117
#
118
# * server_id: the database pk of the vm
119
# * ip_address: the ipv4 address of the public vm nic
120
# * hostname: vm hostname
121
# * user: vm username
122
#
123
# you may assign a callable python object to the ssh_message, if so the above
124
# parameters get passed as arguments to the provided object.
125
UI_CONNECT_PROMPT_MESSAGES = {}
126

  
127
# extend rdp file content. May be a string with format parameters similar to
128
# those used in UI_CONNECT_PROMPT_MESSAGES `ssh_message` or a callable object.
129
UI_EXTRA_RDP_CONTENT = None
130

  
102 131

  
103 132
#######################
104 133
# UI BEHAVIOUR SETTINGS

Also available in: Unified diff