デザインたした

This commit is contained in:
sada 2015-09-10 21:30:42 +09:00
parent 656af4e4ae
commit 5702a2e8c8

877
design/Petclinic.json Normal file
View file

@ -0,0 +1,877 @@
{
"@self" : "/csa/api/topology-model/topology/f78a358e-28d0-4690-95ee-644697765bcb",
"@type" : "urn:x-hp:2013:software:cloud:topology_model:topology",
"groupId" : "com.hp.csa",
"artifactId" : "ff8081814e95c8f0014e95d0e1611538",
"version" : "1.50.00",
"displayName" : "PetClinic Application on Existing Servers",
"description" : "A two-tier PetClinic Application with Database component installed on MySQL and Application component on Tomcat Server. These components are deployed on Existing Servers.",
"resources" : [ {
"id" : "ad53c4fb-fcbb-6422-af6e-432d27ecddc1",
"name" : "Existing Server",
"component" : {
"@self" : "/csa/api/topology-model/component-type/9fe842bb-515f-41e9-be9b-71f5f872a412",
"groupId" : "com.hp.csa.type",
"artifactId" : "Existing_Server_b9ce5335_9ba9_46b6_9591_ca18b73cabb6_e4595de7583849f29037184578e03cb8",
"version" : "1"
},
"properties" : [ {
"propertyKey" : "PASSWORD",
"propertyValue" : {
"value" : "ENC(Izf+mSvGi2hNePGJ6ssUeg==)",
"type" : "string_encrypted"
}
}, {
"propertyKey" : "_enable_modify_during_lifecycle_properties",
"propertyValue" : {
"value" : "",
"type" : "string"
}
}, {
"propertyKey" : "response",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "HOST-FQDN",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "IPADDRESS",
"propertyValue" : {
"value" : "192.168.192.191",
"type" : "string"
}
}, {
"propertyKey" : "_modifiable_properties",
"propertyValue" : {
"value" : "",
"type" : "string"
}
}, {
"propertyKey" : "USERNAME",
"propertyValue" : {
"value" : "administrator",
"type" : "string"
}
}, {
"propertyKey" : "INSTANCE-ID",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "SSHPORT",
"propertyValue" : {
"value" : "22",
"type" : "string"
}
}, {
"propertyKey" : "PRIVATEKEY",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "TIMEOUT",
"propertyValue" : {
"value" : "90000",
"type" : "string"
}
}, {
"propertyKey" : "Result",
"propertyValue" : {
"value" : null,
"type" : "string"
}
} ],
"outgoingRelations" : [ ],
"annotations" : {
"uniqueName" : "ExistingServer0001",
"displayName" : "Existing Server",
"x" : "707",
"description" : "Existing Server Component",
"y" : "375"
},
"capabilityChars" : [ ],
"requirements" : [ ]
}, {
"id" : "e293d1f8-46e5-4e2a-258d-c61772360db3",
"name" : "Tomcat Application Server",
"component" : {
"@self" : "/csa/api/topology-model/component-type/1648af89-1380-4ef7-abeb-16f365b47d23",
"groupId" : "com.hp.csa.type",
"artifactId" : "Tomcat_Server_c2bc9714_19c3_488b_bdd0_37ee9544a21f_aade4fa90c4a4c8397d9a9bf4d141949",
"version" : "1"
},
"properties" : [ {
"propertyKey" : "configurationUrl",
"propertyValue" : {
"value" : "http://core.sd.hpsw.local/petclinic/scripts/install_tomcat.sh",
"type" : "string"
}
}, {
"propertyKey" : "sshPort",
"propertyValue" : {
"value" : "22",
"type" : "string"
}
}, {
"propertyKey" : "installPath",
"propertyValue" : {
"value" : "/usr/local/tomcat",
"type" : "string"
}
}, {
"propertyKey" : "appProtocol",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "appPort",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "_modifiable_properties",
"propertyValue" : {
"value" : "",
"type" : "string"
}
}, {
"propertyKey" : "remoteFilePath",
"propertyValue" : {
"value" : "/tmp/",
"type" : "string"
}
}, {
"propertyKey" : "Result",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "hostname",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "password",
"propertyValue" : {
"value" : null,
"type" : "string_encrypted"
}
}, {
"propertyKey" : "serviceCommand",
"propertyValue" : {
"value" : "sh /tmp/install_tomcat.sh",
"type" : "string"
}
}, {
"propertyKey" : "_enable_modify_during_lifecycle_properties",
"propertyValue" : {
"value" : "",
"type" : "string"
}
}, {
"propertyKey" : "port",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "response",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "artifactPassword",
"propertyValue" : {
"value" : null,
"type" : "string_encrypted"
}
}, {
"propertyKey" : "artifactUrl",
"propertyValue" : {
"value" : "http://core.sd.hpsw.local/petclinic/Software/apache-tomcat-7.0.64.tar.gz",
"type" : "string"
}
}, {
"propertyKey" : "privatekeyPath",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "artifactUsername",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "username",
"propertyValue" : {
"value" : null,
"type" : "string"
}
} ],
"outgoingRelations" : [ {
"relationType" : "association",
"id" : "92a9a41a-19be-9cb0-ffaa-9cb7f0d138eb",
"properties" : [ {
"propertyKey" : "_enable_modify_during_lifecycle_properties",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "_modifiable_properties",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "_relation_type",
"propertyValue" : {
"value" : {
"first" : "Association",
"second" : "ASSOCIATION"
},
"type" : "pair"
}
} ],
"relationDescriptorName" : "installsOn_Tomcat_Server_c2bc9714_19c3_488b_bdd0_37ee9544a21f_aade4fa90c4a4c8397d9a9bf4d141949",
"resourceReference" : {
"name" : "Existing Server"
}
} ],
"annotations" : {
"uniqueName" : "TomcatApplicatio0001",
"displayName" : "Tomcat Application Server",
"x" : "704",
"description" : "Apache Tomcat Application Server",
"y" : "234"
},
"capabilityChars" : [ ],
"requirements" : [ ]
}, {
"id" : "01a77e8e-3578-ec61-2663-d192034b25e2",
"name" : "PetClinic DB Conf",
"component" : {
"@self" : "/csa/api/topology-model/component-type/b183f792-136a-4d14-ad0f-4545033008a0",
"groupId" : "com.hp.csa.type",
"artifactId" : "New_PetDB_855ff95b_fde7_432e_b4dd_b7f7e8c2ba67_e6b6ca0914a34eec93438670d70e55e4",
"version" : "1"
},
"properties" : [ {
"propertyKey" : "configurationurl",
"propertyValue" : {
"value" : "http://core.sd.hpsw.local/petclinic/scripts/mysqldb_conf.sh",
"type" : "string"
}
}, {
"propertyKey" : "mysqlusername",
"propertyValue" : {
"value" : "petdb",
"type" : "string"
}
}, {
"propertyKey" : "_modifiable_properties",
"propertyValue" : {
"value" : "",
"type" : "string"
}
}, {
"propertyKey" : "mysqlpassword",
"propertyValue" : {
"value" : "ENC(nF11ayPv4RO3VUuj6jmnaQ==)",
"type" : "string_encrypted"
}
}, {
"propertyKey" : "artifactusername",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "hostname",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "password",
"propertyValue" : {
"value" : null,
"type" : "string_encrypted"
}
}, {
"propertyKey" : "artifactpassword",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "_enable_modify_during_lifecycle_properties",
"propertyValue" : {
"value" : "",
"type" : "string"
}
}, {
"propertyKey" : "port",
"propertyValue" : {
"value" : "22",
"type" : "string"
}
}, {
"propertyKey" : "response",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "privatekeyPath",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "remotefilepath",
"propertyValue" : {
"value" : "/tmp/",
"type" : "string"
}
}, {
"propertyKey" : "servicecommand",
"propertyValue" : {
"value" : "sh /tmp/mysqldb_conf.sh",
"type" : "string"
}
}, {
"propertyKey" : "username",
"propertyValue" : {
"value" : null,
"type" : "string"
}
} ],
"outgoingRelations" : [ {
"relationType" : "association",
"id" : "41c13ceb-8111-2c10-7262-fe3b7ed1e9bf",
"properties" : [ {
"propertyKey" : "_enable_modify_during_lifecycle_properties",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "_modifiable_properties",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "_relation_type",
"propertyValue" : {
"value" : {
"first" : "Association",
"second" : "ASSOCIATION"
},
"type" : "pair"
}
} ],
"relationDescriptorName" : "configuresDb_New_PetDB_855ff95b_fde7_432e_b4dd_b7f7e8c2ba67_e6b6ca0914a34eec93438670d70e55e4",
"resourceReference" : {
"name" : "MySQL Database"
}
} ],
"annotations" : {
"uniqueName" : "PetClinicDBConf0001",
"displayName" : "PetClinic DB Conf",
"x" : "431",
"description" : "Creates Pet Clinic Database on the database server",
"y" : "73"
},
"capabilityChars" : [ ],
"requirements" : [ ]
}, {
"id" : "f4bc9e42-4fb0-892a-81f8-ce4c9069fbdf",
"name" : "MySQL Database",
"component" : {
"@self" : "/csa/api/topology-model/component-type/fc473c57-dbcb-4dd8-85a6-d3522ca0b6d1",
"groupId" : "com.hp.csa.type",
"artifactId" : "MySQL_Database_20509e36_558f_4502_ba03_f76f5d879afb_f21f3034d7ea4431981b737d81ce6299",
"version" : "1"
},
"properties" : [ {
"propertyKey" : "configurationUrl",
"propertyValue" : {
"value" : "http://core.sd.hpsw.local/petclinic/scripts/install_mysql.sh",
"type" : "string"
}
}, {
"propertyKey" : "sshPort",
"propertyValue" : {
"value" : "22",
"type" : "string"
}
}, {
"propertyKey" : "installPath",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "_modifiable_properties",
"propertyValue" : {
"value" : "",
"type" : "string"
}
}, {
"propertyKey" : "type",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "remoteFilePath",
"propertyValue" : {
"value" : "/tmp/",
"type" : "string"
}
}, {
"propertyKey" : "Result",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "hostname",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "password",
"propertyValue" : {
"value" : null,
"type" : "string_encrypted"
}
}, {
"propertyKey" : "serviceCommand",
"propertyValue" : {
"value" : "sh /tmp/install_mysql.sh",
"type" : "string"
}
}, {
"propertyKey" : "_enable_modify_during_lifecycle_properties",
"propertyValue" : {
"value" : "",
"type" : "string"
}
}, {
"propertyKey" : "port",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "response",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "artifactPassword",
"propertyValue" : {
"value" : null,
"type" : "string_encrypted"
}
}, {
"propertyKey" : "artifactUrl",
"propertyValue" : {
"value" : "http://core.sd.hpsw.local/petclinic/Software/mysql-server_5.6.26-1ubuntu14.04_amd64.deb-bundle.tar",
"type" : "string"
}
}, {
"propertyKey" : "privatekeyPath",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "artifactUsername",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "username",
"propertyValue" : {
"value" : null,
"type" : "string"
}
} ],
"outgoingRelations" : [ {
"relationType" : "association",
"id" : "2682cf5e-b1a1-3062-c557-fb29a1c5e414",
"properties" : [ {
"propertyKey" : "_enable_modify_during_lifecycle_properties",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "_modifiable_properties",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "_relation_type",
"propertyValue" : {
"value" : {
"first" : "Association",
"second" : "ASSOCIATION"
},
"type" : "pair"
}
} ],
"relationDescriptorName" : "installsOn_MySQL_Database_20509e36_558f_4502_ba03_f76f5d879afb_f21f3034d7ea4431981b737d81ce6299",
"resourceReference" : {
"name" : "Existing Server"
}
} ],
"annotations" : {
"uniqueName" : "MySQLDatabase0001",
"displayName" : "MySQL Database",
"x" : "430",
"description" : "MySQL Database Server",
"y" : "233"
},
"capabilityChars" : [ ],
"requirements" : [ ]
}, {
"id" : "dd6f1ef1-c545-74be-6145-7aed94809039",
"name" : "Existing Server",
"component" : {
"@self" : "/csa/api/topology-model/component-type/9fe842bb-515f-41e9-be9b-71f5f872a412",
"groupId" : "com.hp.csa.type",
"artifactId" : "Existing_Server_b9ce5335_9ba9_46b6_9591_ca18b73cabb6_e4595de7583849f29037184578e03cb8",
"version" : "1"
},
"properties" : [ {
"propertyKey" : "PASSWORD",
"propertyValue" : {
"value" : "ENC(dbYYSr8mcjyzNo+/ed4sIw==)",
"type" : "string_encrypted"
}
}, {
"propertyKey" : "_enable_modify_during_lifecycle_properties",
"propertyValue" : {
"value" : "",
"type" : "string"
}
}, {
"propertyKey" : "response",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "HOST-FQDN",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "IPADDRESS",
"propertyValue" : {
"value" : "192.168.192.191",
"type" : "string"
}
}, {
"propertyKey" : "_modifiable_properties",
"propertyValue" : {
"value" : "",
"type" : "string"
}
}, {
"propertyKey" : "USERNAME",
"propertyValue" : {
"value" : "administrator",
"type" : "string"
}
}, {
"propertyKey" : "INSTANCE-ID",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "SSHPORT",
"propertyValue" : {
"value" : "22",
"type" : "string"
}
}, {
"propertyKey" : "PRIVATEKEY",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "TIMEOUT",
"propertyValue" : {
"value" : "90000",
"type" : "string"
}
}, {
"propertyKey" : "Result",
"propertyValue" : {
"value" : null,
"type" : "string"
}
} ],
"outgoingRelations" : [ ],
"annotations" : {
"uniqueName" : "ExistingServer0002",
"displayName" : "Existing Server",
"x" : "430",
"description" : "Existing Server Component",
"y" : "380"
},
"capabilityChars" : [ ],
"requirements" : [ ]
}, {
"id" : "8f17d95d-fb53-eb76-b5d8-739726e98deb",
"name" : "PetClinic Application",
"component" : {
"@self" : "/csa/api/topology-model/component-type/71b645da-5c0f-4ef5-a52a-80246fa4f023",
"groupId" : "com.hp.csa.type",
"artifactId" : "PetClinicApplicationType",
"version" : "1.50.0000"
},
"properties" : [ {
"propertyKey" : "configurationurl",
"propertyValue" : {
"value" : "http://core.sd.hpsw.local/petclinic/scripts/petclinic_jdbc_conf.sh",
"type" : "string"
}
}, {
"propertyKey" : "hostusername",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "mysqlusername",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "_modifiable_properties",
"propertyValue" : {
"value" : "",
"type" : "string"
}
}, {
"propertyKey" : "localfilepath",
"propertyValue" : {
"value" : "petclinic.war",
"type" : "string"
}
}, {
"propertyKey" : "mysqlpassword",
"propertyValue" : {
"value" : null,
"type" : "string_encrypted"
}
}, {
"propertyKey" : "apphostname",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "result",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "artifactusername",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "artifactpassword",
"propertyValue" : {
"value" : null,
"type" : "string_encrypted"
}
}, {
"propertyKey" : "_enable_modify_during_lifecycle_properties",
"propertyValue" : {
"value" : "",
"type" : "string"
}
}, {
"propertyKey" : "dbhostname",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "dbpassword",
"propertyValue" : {
"value" : null,
"type" : "string_encrypted"
}
}, {
"propertyKey" : "port",
"propertyValue" : {
"value" : "22",
"type" : "string"
}
}, {
"propertyKey" : "tomcathome",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "response",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "artifacturl",
"propertyValue" : {
"value" : "http://core.sd.hpsw.local/petclinic/scripts/petclinic.war",
"type" : "string"
}
}, {
"propertyKey" : "dbusername",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "privatekeyPath",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "remotefilepath",
"propertyValue" : {
"value" : "/tmp/",
"type" : "string"
}
}, {
"propertyKey" : "servicecommand",
"propertyValue" : {
"value" : "sh /tmp/petclinic_jdbc_conf.sh",
"type" : "string"
}
}, {
"propertyKey" : "hostpassword",
"propertyValue" : {
"value" : null,
"type" : "string_encrypted"
}
} ],
"outgoingRelations" : [ {
"relationType" : "association",
"id" : "89aae530-c07f-af9f-2547-9ed3faeb3eab",
"properties" : [ {
"propertyKey" : "_enable_modify_during_lifecycle_properties",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "_modifiable_properties",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "_relation_type",
"propertyValue" : {
"value" : {
"first" : "Association",
"second" : "ASSOCIATION"
},
"type" : "pair"
}
} ],
"relationDescriptorName" : "hostedOn_PetClinicApplicationType__VERSION__1^50^0000__GROUPID__com^hp^csa^type",
"resourceReference" : {
"name" : "Tomcat Application Server"
}
}, {
"relationType" : "association",
"id" : "d76a8f07-9a45-4eff-d603-dd0591063162",
"properties" : [ {
"propertyKey" : "_enable_modify_during_lifecycle_properties",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "_modifiable_properties",
"propertyValue" : {
"value" : null,
"type" : "string"
}
}, {
"propertyKey" : "_relation_type",
"propertyValue" : {
"value" : {
"first" : "Association",
"second" : "ASSOCIATION"
},
"type" : "pair"
}
} ],
"relationDescriptorName" : "dbDetails_PetClinicApplicationType__VERSION__1^50^0000__GROUPID__com^hp^csa^type",
"resourceReference" : {
"name" : "PetClinic DB Conf"
}
} ],
"annotations" : {
"uniqueName" : "PetClinicApplica0001",
"displayName" : "PetClinic Application",
"x" : "714",
"description" : "PetClinic Application",
"y" : "70"
},
"capabilityChars" : [ ],
"requirements" : [ ]
} ],
"revision" : 175,
"properties" : [ ],
"iconUrl" : "/csa/images/library/pets.png",
"tagIds" : [ {
"@self" : "/csa/api/tag/8a818cf8ara15bc772b0145cb6efjhg99"
} ],
"state" : "UNLOCKED",
"partial" : false,
"hidden" : false,
"profiles" : [ ],
"annotations" : {
"serviceBlueprintId" : "ff8081814e95c8f0014e95d0e1b3153d",
"providerType" : "independent"
}
}