Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- template:
- templateName: Oracle-JCS-Simple-Create
- templateDisplayName: Simple Java Web App
- templateCategory: QUICKSTART
- templateVersion: 1.0.7
- templateDescription: A simple Java EE application stack with Oracle Database Cloud Service. Typical dev, test or departmental production app stack.
- learnMoreUrl: "http://www.oracle.com/pls/topic/lookup?ctx=cloud&id=JSCUG-GUID-DCAFF58E-7130-4228-A0D8-F6A6E313F488&embed=1"
- templateIncludes:
- - "Single Node Oracle WebLogic Server 12.2, Standard Edition"
- - "25 GB Database and 150 GB Block Storage using Oracle Database 12.2, Standard Edition; expandable"
- - "Total 2 OCPUs"
- parameters:
- wlVersion:
- label: JCS Version
- description: "Select a JCS Version"
- type: String
- default: 12cRelease212
- mandatory: true
- allowedValues: {"11gR1": "Oracle WebLogic Server 11g, 11.1.1.7", "12cR3": "Oracle WebLogic Server 12c, 12.1.3.0", "12cRelease212": "Oracle WebLogic Server 12c, 12.2.1.2"}
- wlComputeShape:
- label: Compute Shape
- description: Select a Compute Shape for this service.
- type: ComputeShape
- default: oc3
- mandatory: true
- allowedValues: [ oc3, oc4, oc5, oc6, oc1m, oc2m, oc3m, oc4m ]
- publicKeyText:
- label: SSH Public Key
- description: Click Edit to generate a new key pair, enter an existing public keys value or upload a new public key.
- type: ssh
- mandatory: true
- sensitive: true
- autoGenValue: {"Fn::GenerateCred" : "SSH" }
- wlAdminUser:
- label: Administrator Username
- description: "Your choice of name for the JCS administration user. Must be between 8 and 128 ASCII characters and cannot contain a tab, brackets, parentheses or the characters , < > & # | ?"
- type: String
- minLength: 8
- maxLength: 128
- default: "jcsAdmin"
- mandatory: true
- allowedPattern: "[\\p{Print}&&[^',<>#&|\\?\\(\\)\\{\\}\t ]]++"
- constraintDescription: "JCS administration username must be between 8 and 128 ASCII characters and cannot contain a tab, brackets, parentheses or the characters , < > & # | ?"
- autoGenValue: "jcsAdmin"
- dbSid:
- label: DB Name (SID)
- description: "Database name of your choice, up to 8 characters; must begin with a letter and can contain only letters and numbers."
- type: String
- minLength: 1
- maxLength: 8
- default: ORCL
- mandatory: true
- allowedPattern: "^[a-zA-Z][a-zA-Z0-9]*$"
- constraintDescription: "Database name can contain up to 8 characters; must begin with a letter and can contain only letters and numbers. "
- dbVersion:
- label: DBCS Version
- description: "Select a DBCS Version"
- type: String
- default: 12.2.0.1
- mandatory: true
- allowedValues: {"11.2.0.4": "Oracle Database 11g Release 2", "12.1.0.2": "Oracle Database 12c Release 1", "12.2.0.1": "Oracle Database 12c Release 2" }
- commonPwd:
- label: Password (to access JCS and DBCS)
- description: "Password to access JCS and DBCS. Password must be between 8 and 30 characters with at least one lower case letter, one upper case letter, one number and one special character (_,#). For example, Ach1z0#d"
- type: Password
- minLength: 8
- maxLength: 30
- allowedPattern: "^(?=.*?[A-Z])(?=.*?[a-z])(?=.*[0-9])[a-zA-Z]([a-zA-Z0-9_#])+$"
- mandatory: true
- sensitive: true
- constraintDescription: "Password must be between 8 and 30 characters with at least one lower case letter, one upper case letter, one number and one special character (_,#). For example, Ach1z0#d"
- autoGenValue: { "Fn::Join": ["", ["X", {"Fn::GetRandom" : [8, ALPHANUMERIC] }, "_"]] }
- dbComputeShape:
- label: Compute Shape
- description: Select a Compute Shape for this service.
- type: ComputeShape
- default: oc3
- mandatory: true
- allowedValues: [ oc3, oc4, oc5, oc6, oc1m, oc2m, oc3m, oc4m ]
- dbStorage:
- label: Usable Database Storage (GB)
- description: "Enter the value for usable Database Storage in GB. The number must be between 15 and 1200."
- type: Number
- default: 25
- mandatory: true
- targetServiceName:
- label: Service Name
- description: "Unique service name for this instance."
- type: String
- mandatory: true
- parameterGroups:
- - label: Java Cloud
- parameters: [ wlVersion, wlComputeShape, wlAdminUser ]
- - label: Access
- parameters: [ commonPwd, publicKeyText ]
- - label: Database Cloud
- parameters: [ dbSid, dbVersion, dbComputeShape, dbStorage ]
- resources:
- jcs:
- type: jaas
- parameters:
- serviceName: { "Fn::GetParam": targetServiceName }
- backupDestination: NONE
- serviceVersion: { "Fn::GetParam": wlVersion }
- subscriptionType: HOURLY
- edition: SE
- vmPublicKeyText: { "Fn::GetParam": publicKeyText }
- components:
- WLS:
- adminUserName: { "Fn::GetParam": wlAdminUser }
- adminPassword: { "Fn::GetParam": commonPwd }
- dbServiceName: { "Fn::GetAtt": [dbcs, serviceName] }
- dbaName: sys
- dbaPassword: { "Fn::GetParam": commonPwd }
- shape: { "Fn::GetParam": wlComputeShape }
- sampleAppDeploymentRequested : true
- dbcs:
- type: dbaas
- parameters:
- serviceName: { "Fn::Join": ["", ["Fn::GetParam": targetServiceName, DBCS]] }
- version: { "Fn::GetParam": dbVersion }
- level: PAAS
- edition: SE
- shape: { "Fn::GetParam": dbComputeShape }
- vmPublicKeyText: { "Fn::GetParam": publicKeyText }
- parameters:
- -
- type: db
- adminPassword: { "Fn::GetParam": commonPwd }
- sid: { "Fn::GetParam": dbSid }
- failoverDatabase: no
- timezone: UTC
- charset: AL32UTF8
- ncharset: AL16UTF16
- backupDestination: NONE
- usableStorage: { "Fn::GetParam": dbStorage }
- attributes:
- OraConnectString:
- value: { "Fn::GetAtt": [dbcs, components.DB_1.attributes.CONNECT_DESCRIPTOR] }
- description: DBCS connect descriptor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement