Update ui forms, setup.py and confing file

Change-Id: I2fe17a7dcb58248ff1fb1d6a85c61b26e7394e76
This commit is contained in:
Ekaterina Fedorova
2013-10-24 16:28:49 +04:00
parent 2d01ea5d50
commit d7405d80cb
13 changed files with 70 additions and 53 deletions

View File

@@ -115,6 +115,7 @@ forms:
required: false required: false
- name: osImage - name: osImage
type: image type: image
imageType: windows
label: Instance image label: Instance image
description: >- description: >-
Select valid image for a service. Image should already be prepared and Select valid image for a service. Image should already be prepared and

View File

@@ -93,6 +93,7 @@ forms:
required: false required: false
- name: osImage - name: osImage
type: image type: image
imageType: windows
label: Instance image label: Instance image
description: >- description: >-
Select valid image for a service. Image should already be prepared and Select valid image for a service. Image should already be prepared and

View File

@@ -118,6 +118,7 @@ forms:
required: false required: false
- name: osImage - name: osImage
type: image type: image
imageType: windows
label: Instance image label: Instance image
description: >- description: >-
Select valid image for a service. Image should already be prepared and Select valid image for a service. Image should already be prepared and

View File

@@ -68,6 +68,7 @@ forms:
required: false required: false
- name: osImage - name: osImage
type: image type: image
imageType: cirros.demo
label: Instance image label: Instance image
description: >- description: >-
Select valid image for a service. Image should already be prepared and Select valid image for a service. Image should already be prepared and

View File

@@ -2,7 +2,7 @@ name: MS SQL Server Cluster
type: msSqlClusterServer type: msSqlClusterServer
description: >- description: >-
<strong> The MS SQL Failover Cluster </strong> installs <strong> The MS SQL Failover Cluster </strong> installs
Microsoft SQL Failover Cluster Server Microsoft SQL Failover Cluster Server
unitTemplates: unitTemplates:
@@ -25,14 +25,11 @@ forms:
hidden: true hidden: true
attributeNames: false attributeNames: false
description: MS SQL Failover Cluster description: MS SQL Failover Cluster
# temporaryHack
widgetMedia:
js: [muranodashboard/js/mixed-mode.js, muranodashboard/js/external-ad.js]
- name: name - name: name
type: string type: string
label: Service Name label: Service Name
description: >- description: >-
Enter a desired name for a service. Just A-Z, a-z, 0-9, dash and Enter a desired name for a service. Just A-Z, a-z, 0-9, dash and
underline are allowed. underline are allowed.
minLength: 2 minLength: 2
maxLength: 64 maxLength: 64
@@ -46,14 +43,18 @@ forms:
descriptionTitle: Passwords descriptionTitle: Passwords
description: >- description: >-
Windows requires strong password for service administration. Windows requires strong password for service administration.
Your password should have at least one letter in each Your password should have at least one letter in each
register, a number and a special character. Password length should be register, a number and a special character. Password length should be
a minimum of 7 characters. a minimum of 7 characters.
- name: externalAD - name: externalAD
type: boolean type: boolean
label: Active Directory is configured by the System Administrator label: Active Directory is configured by the System Administrator
widgetAttrs: # temporary hack widgetAttrs: # temporary hack
class: external-ad class: external-ad
# temporaryHack
widgetMedia:
js: [muranodashboard/js/external-ad.js]
css: {all: [muranodashboard/css/checkbox.css]}
required: false required: false
- name: domainAdminUserName - name: domainAdminUserName
type: string type: string
@@ -71,7 +72,7 @@ forms:
label: Domain label: Domain
enabled: {YAQL: not $.serviceConfiguration.externalAD} enabled: {YAQL: not $.serviceConfiguration.externalAD}
description: >- description: >-
Service can be joined to the Active Directory domain. If you want to Service can be joined to the Active Directory domain. If you want to
create an AD domain create the AD Service first. create an AD domain create the AD Service first.
helpText: Optional field for a domain to which service can be joined helpText: Optional field for a domain to which service can be joined
- name: mixedModeAuth - name: mixedModeAuth
@@ -84,6 +85,10 @@ forms:
credentials but supplements them with local SQL Server user credentials but supplements them with local SQL Server user
accounts that the administrator may create and maintain within accounts that the administrator may create and maintain within
SQL Server. If this mode is on SA password is required SQL Server. If this mode is on SA password is required
# temporaryHack
widgetMedia:
js: [muranodashboard/js/mixed-mode.js]
css: {all: [muranodashboard/css/checkbox.css]}
- name: saPassword - name: saPassword
type: password type: password
label: SA Password label: SA Password
@@ -92,7 +97,7 @@ forms:
enabled: {YAQL: $.serviceConfiguration.mixedModeAuth} enabled: {YAQL: $.serviceConfiguration.mixedModeAuth}
- clusterConfiguration: - clusterConfiguration:
fields: fields:
- name: clusterIP - name: clusterIp
type: clusterip type: clusterip
label: Cluster Static IP label: Cluster Static IP
description: Specify a valid IPv4 fixed IP. description: Specify a valid IPv4 fixed IP.
@@ -147,8 +152,8 @@ forms:
label: Hostname template label: Hostname template
description: >- description: >-
For your convenience all instance hostnames can be named For your convenience all instance hostnames can be named
in the same way. Enter a name and use # character for incrementation. in the same way. Enter a name and use # character for incrementation.
For example, host# turns into host1, host2, etc. Please follow Windows For example, host# turns into host1, host2, etc. Please follow Windows
hostname restrictions. hostname restrictions.
required: false required: false
regexpValidator: '^(([a-zA-Z0-9#][a-zA-Z0-9-#]*[a-zA-Z0-9#])\.)*([A-Za-z0-9#]|[A-Za-z0-9#][A-Za-z0-9-#]*[A-Za-z0-9#])$' regexpValidator: '^(([a-zA-Z0-9#][a-zA-Z0-9-#]*[a-zA-Z0-9#])\.)*([A-Za-z0-9#]|[A-Za-z0-9#][A-Za-z0-9-#]*[A-Za-z0-9#])$'
@@ -214,14 +219,15 @@ forms:
type: flavor type: flavor
label: Instance flavor label: Instance flavor
description: >- description: >-
Select registered in Openstack flavor. Consider that service performance Select registered in Openstack flavor. Consider that service performance
depends on this parameter. depends on this parameter.
required: false required: false
- name: osImage - name: osImage
type: image type: image
imageType: windows
label: Instance image label: Instance image
description: >- description: >-
Select valid image for a service. Image should already be prepared and Select valid image for a service. Image should already be prepared and
registered in glance. registered in glance.
- name: availabilityZone - name: availabilityZone
type: azone type: azone

View File

@@ -2,7 +2,7 @@ name: MS SQL Server
type: msSqlServer type: msSqlServer
description: >- description: >-
<strong> The MS SQL Service </strong> installs an instance of <strong> The MS SQL Service </strong> installs an instance of
Microsoft SQL Server Microsoft SQL Server
unitTemplates: unitTemplates:
@@ -17,14 +17,11 @@ forms:
hidden: true hidden: true
attributeNames: false attributeNames: false
description: MS SQL Server description: MS SQL Server
# temporaryHack
widgetMedia:
js: [muranodashboard/js/mixed-mode.js]
- name: name - name: name
type: string type: string
label: Service Name label: Service Name
description: >- description: >-
Enter a desired name for a service. Just A-Z, a-z, 0-9, dash and Enter a desired name for a service. Just A-Z, a-z, 0-9, dash and
underline are allowed. underline are allowed.
minLength: 2 minLength: 2
maxLength: 64 maxLength: 64
@@ -43,15 +40,15 @@ forms:
descriptionTitle: Passwords descriptionTitle: Passwords
description: >- description: >-
Windows requires strong password for service administration. Windows requires strong password for service administration.
Your password should have at least one letter in each Your password should have at least one letter in each
register, a number and a special character. Password length should be register, a number and a special character. Password length should be
a minimum of 7 characters. a minimum of 7 characters.
- name: domain - name: domain
type: domain type: domain
label: Domain label: Domain
required: false required: false
description: >- description: >-
Service can be joined to the Active Directory domain. If you want to Service can be joined to the Active Directory domain. If you want to
create an AD domain create the AD Service first. create an AD domain create the AD Service first.
helpText: Optional field for a domain to which service can be joined helpText: Optional field for a domain to which service can be joined
- name: mixedModeAuth - name: mixedModeAuth
@@ -64,6 +61,10 @@ forms:
credentials but supplements them with local SQL Server user credentials but supplements them with local SQL Server user
accounts that the administrator may create and maintain within accounts that the administrator may create and maintain within
SQL Server. If this mode is on SA password is required SQL Server. If this mode is on SA password is required
# temporaryHack
widgetMedia:
js: [muranodashboard/js/mixed-mode.js]
css: {all: [muranodashboard/css/checkbox.css]}
- name: saPassword - name: saPassword
type: password type: password
label: SA Password label: SA Password
@@ -75,8 +76,8 @@ forms:
label: Hostname template label: Hostname template
description: >- description: >-
For your convenience all instance hostnames can be named For your convenience all instance hostnames can be named
in the same way. Enter a name and use # character for incrementation. in the same way. Enter a name and use # character for incrementation.
For example, host# turns into host1, host2, etc. Please follow Windows For example, host# turns into host1, host2, etc. Please follow Windows
hostname restrictions. hostname restrictions.
required: false required: false
regexpValidator: '^(([a-zA-Z0-9#][a-zA-Z0-9-#]*[a-zA-Z0-9#])\.)*([A-Za-z0-9#]|[A-Za-z0-9#][A-Za-z0-9-#]*[A-Za-z0-9#])$' regexpValidator: '^(([a-zA-Z0-9#][a-zA-Z0-9-#]*[a-zA-Z0-9#])\.)*([A-Za-z0-9#]|[A-Za-z0-9#][A-Za-z0-9-#]*[A-Za-z0-9#])$'
@@ -98,14 +99,15 @@ forms:
type: flavor type: flavor
label: Instance flavor label: Instance flavor
description: >- description: >-
Select registered in Openstack flavor. Consider that service performance Select registered in Openstack flavor. Consider that service performance
depends on this parameter. depends on this parameter.
required: false required: false
- name: osImage - name: osImage
type: image type: image
imageType: windows
label: Instance image label: Instance image
description: >- description: >-
Select valid image for a service. Image should already be prepared and Select valid image for a service. Image should already be prepared and
registered in glance. registered in glance.
- name: availabilityZone - name: availabilityZone
type: azone type: azone

View File

@@ -84,6 +84,7 @@ forms:
required: false required: false
- name: osImage - name: osImage
type: image type: image
imageType: windows
label: Instance image label: Instance image
description: >- description: >-
Select valid image for a service. Image should already be prepared and Select valid image for a service. Image should already be prepared and

View File

@@ -105,6 +105,7 @@ forms:
required: false required: false
- name: osImage - name: osImage
type: image type: image
imageType: windows
label: Instance image label: Instance image
description: >- description: >-
Select valid image for a service. Image should already be prepared and Select valid image for a service. Image should already be prepared and

View File

@@ -1,19 +1,12 @@
[DEFAULT] [DEFAULT]
# Address to bind the server to # Address to bind the server to
host = localhost host = 0.0.0.0
# Port the bind the server to # Port the bind the server to
port = 5000 port = 8084
# Keystone related stuff
auth_host = 172.18.124.202
auth_port = 5000
auth_protocol = http
admin_user = admin
admin_password = swordfish
admin_tenant_name = admin
# Provide information about data types # Provide information about data types
# absolute or relative path to manifest location(root directory) # absolute or relative path to manifest location(root directory)
# where absolute path starts with '/', # where absolute path starts with / and relative to the repository folder
# while relative hasn't leading '/' and is prepended to the repository folder # while relative hasn't leading '/' and is prepended to the repository folder
manifests = Services manifests = Services
@@ -32,4 +25,15 @@ ui = service_forms
workflows = workflows workflows = workflows
heat = templates/cf heat = templates/cf
agent = templates/agent agent = templates/agent
scripts = templates/agent/script scripts = templates/agent/scripts
#Configure keystone location.
#For more information see Auth-Token Middleware with Username and Password
#http://docs.openstack.org/developer/keystone/configuringservices.html
[keystone]
auth_host = 127.0.0.1
auth_port = 5000
auth_protocol = http
admin_user = admin
admin_password = swordfish
admin_tenant_name = admin

View File

@@ -52,12 +52,12 @@ def main():
log.setup('muranorepository') log.setup('muranorepository')
app = server.make_app({ app = server.make_app({
'auth_host': cfg.CONF.auth_host, 'auth_host': cfg.CONF.keystone.auth_host,
'auth_port': cfg.CONF.auth_port, 'auth_port': cfg.CONF.keystone.auth_port,
'auth_protocol': cfg.CONF.auth_protocol, 'auth_protocol': cfg.CONF.keystone.auth_protocol,
'admin_user': cfg.CONF.admin_user, 'admin_user': cfg.CONF.keystone.admin_user,
'admin_password': cfg.CONF.admin_password, 'admin_password': cfg.CONF.keystone.admin_password,
'admin_tenant_name': cfg.CONF.admin_tenant_name 'admin_tenant_name': cfg.CONF.keystone.admin_tenant_name
}) })
if not os.path.isabs(config.CONF.manifests): if not os.path.isabs(config.CONF.manifests):
config.CONF.manifests = os.path.join(possible_topdir, config.CONF.manifests = os.path.join(possible_topdir,

View File

@@ -18,17 +18,19 @@ from muranorepository.consts import *
server_opts = [ server_opts = [
cfg.StrOpt('host', default='127.0.0.1'), cfg.StrOpt('host', default='127.0.0.1'),
cfg.IntOpt('port', default=5000), cfg.IntOpt('port', default=5000)]
cfg.StrOpt('auth_host', default=None),
keystone_opts = [
cfg.StrOpt('auth_host', default='localhost'),
cfg.IntOpt('auth_port', default=5000), cfg.IntOpt('auth_port', default=5000),
cfg.StrOpt('auth_protocol', default='http'), cfg.StrOpt('auth_protocol', default='http'),
cfg.StrOpt('admin_user', default='admin'), cfg.StrOpt('admin_user', default='admin'),
cfg.StrOpt('admin_password', default=None), cfg.StrOpt('admin_password', default=None),
cfg.StrOpt('admin_tenant_name', default='admin') cfg.StrOpt('admin_tenant_name', default='admin')]
]
type_dirs_opts = [cfg.StrOpt(x) for x in DATA_TYPES] type_dirs_opts = [cfg.StrOpt(x) for x in DATA_TYPES]
cfg.set_defaults(log.log_opts, cfg.set_defaults(log.log_opts,
default_log_levels=['qpid.messaging=INFO', default_log_levels=['qpid.messaging=INFO',
'keystoneclient=INFO', 'keystoneclient=INFO',
@@ -37,6 +39,8 @@ CONF = cfg.CONF
CONF.register_cli_opts(server_opts) CONF.register_cli_opts(server_opts)
CONF.register_opts(type_dirs_opts) CONF.register_opts(type_dirs_opts)
CONF.register_opts(type_dirs_opts, group='output') CONF.register_opts(type_dirs_opts, group='output')
CONF.register_opts(keystone_opts, group='keystone')
ARGV = [] ARGV = []

View File

@@ -1,4 +1,3 @@
d2to1>=0.2.10,<0.3
pbr>=0.5.21,<1.0 pbr>=0.5.21,<1.0
eventlet>=0.13.0 eventlet>=0.13.0
Flask>=0.10,<1.0 Flask>=0.10,<1.0

View File

@@ -17,9 +17,5 @@
import setuptools import setuptools
setuptools.setup( setuptools.setup(
setup_requires=[ setup_requires=['pbr'],
'd2to1>=0.2.10,<0.3', pbr=True)
'pbr>=0.5,<0.6'
],
d2to1=True,
)