Advertisement
Guest User

ui.yaml

a guest
Nov 23rd, 2015
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 5.40 KB | None | 0 0
  1.  
  2. Version: 2.2
  3.  
  4. Templates:
  5.   customJoinNet:
  6.     - ?:
  7.         type: io.murano.resources.ExistingNeutronNetwork
  8.       internalNetworkName: $.instanceConfiguration.network[0]
  9.       internalSubnetworkName: $.instanceConfiguration.network[1]
  10.  
  11. Application:
  12.   ?:
  13.     type: io.murano.apps.Openvpn
  14.   tapDhcpBegin: $.appConfiguration.tapDhcpBegin
  15.   tapDhcpEnd: $.appConfiguration.tapDhcpEnd
  16.   netmask: $.appConfiguration.netmask
  17.   gceUserName: $.clientConfiguration.gceUserName
  18.   gcePassword: $.clientConfiguration.gcePassword
  19.   gceNodesIp: $.clientConfiguration.gceNodesIp
  20.   publicServerPort: $.appConfiguration.publicServerPort
  21.   publicServerIp: $.appConfiguration.publicServerIp
  22.   instance:
  23.     ?:
  24.       type: io.murano.resources.LinuxMuranoInstance
  25.     name: generateHostname($.instanceConfiguration.unitNamingPattern, 1)
  26.     flavor: $.instanceConfiguration.flavor
  27.     image: $.instanceConfiguration.osImage
  28.     keyname: $.instanceConfiguration.keyPair
  29.     availabilityZone: $.instanceConfiguration.availabilityZone
  30.     assignFloatingIp: $.appConfiguration.assignFloatingIP
  31.     networks:
  32.       useEnvironmentNetwork: $.instanceConfiguration.network[0]=null
  33.       useFlatNetwork: false
  34.       customNetworks: switch($.instanceConfiguration.network[0], $=null=>list(), $!=null=>$customJoinNet)
  35.  
  36. Forms:
  37.   - appConfiguration:
  38.       fields:
  39.         - name: tapDhcpBegin
  40.           type: string
  41.           label: Tap DHCP Begin
  42.           required: True
  43.           description: Provide starting IP address for Tap DHCP range.
  44.         - name: tapDhcpEnd
  45.           type: string
  46.           label: Tap DHCP End
  47.           required: True
  48.           description: Provide ending IP address for Tap DHCP range.
  49.         - name: netmask
  50.           type: string
  51.           label: Netmask
  52.           required: True
  53.           description: Provide a netmask for Tap DHCP range.
  54.         - name: publicServerPort
  55.           type: string
  56.           label: Gateway Server Port
  57.           required: True
  58.           description: Provide Gateway Server Port.
  59.         - name: publicServerIp
  60.           type: string
  61.           label: Gateway Server IP
  62.           required: True
  63.           description: Provide Gateway Server IP.
  64.         - name: assignFloatingIP
  65.           type: boolean
  66.           label: Assign Floating IP
  67.           initial: True
  68.           required: false
  69.  
  70.   - cloudConfiguration:
  71.       fields:
  72.         - name: title
  73.           type: string
  74.           required: false
  75.           hidden: true
  76.           description: Select a cloud compute service
  77.         - name: isGCE
  78.           type: boolean
  79.           label: GCE
  80.           initial: true
  81.           required: false
  82.         - name: isAWS
  83.           type: boolean
  84.           label: AWS
  85.           initial: false
  86.           required: false
  87.         - name: isAzure
  88.           type: boolean
  89.           label: Azure
  90.           initial: false
  91.           required: false
  92.  
  93.   - clientConfiguration:
  94.       fields:
  95.         - name: gceUserName
  96.           type: string
  97.           label: GCE Username
  98.           required: true
  99.           description: Provide GCE Username.
  100.         - name: gcePassword
  101.           type: string
  102.           label: GCE Password
  103.           required: true
  104.           description: Provide GCE Password.
  105.         - name: gceNodesIp
  106.           type: string
  107.           label: GCE Nodes IP
  108.           required: true
  109.           description: Provide GCE Nodes IP.
  110.  
  111.   - instanceConfiguration:
  112.       fields:
  113.         - name: title
  114.           type: string
  115.           required: false
  116.           hidden: true
  117.           description: Specify some instance parameters on which the application would be created
  118.         - name: flavor
  119.           type: flavor
  120.           label: Instance flavor
  121.           description: >-
  122.             Select registered in Openstack flavor. Consider that application performance
  123.             depends on this parameter.
  124.           required: false
  125.         - name: osImage
  126.           type: image
  127.           imageType: linux
  128.           label: Instance image
  129.           description: >-
  130.             Select valid image for the application. Image should already be prepared and
  131.             registered in glance.
  132.         - name: keyPair
  133.           type: keypair
  134.           label: Key Pair
  135.           description: >-
  136.             Select the Key Pair to control access to instances. You can login to
  137.             instances using this KeyPair after the deployment of application.
  138.           required: false
  139.         - name: availabilityZone
  140.           type: azone
  141.           label: Availability zone
  142.           description: Select availability zone where application would be installed.
  143.           required: false
  144.         - name: network
  145.           type: network
  146.           label: Network
  147.           description: Select a network to join. 'Auto' corresponds to a default environment's network.
  148.           required: false
  149.           murano_networks: translate
  150.         - name: unitNamingPattern
  151.           type: string
  152.           label: Instance Naming Pattern
  153.           required: false
  154.           maxLength: 64
  155.           regexpValidator: '^[a-zA-z][-_\w]*$'
  156.           errorMessages:
  157.             invalid: Just letters, numbers, underscores and hyphens are allowed.
  158.           helpText: Just letters, numbers, underscores and hyphens are allowed.
  159.           description: >-
  160.             Specify a string, that will be used in instance hostname.
  161.             Just A-Z, a-z, 0-9, dash and underline are allowed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement