Initial commit of PassiveTest
Change-Id: Idcd9a0c72df5eae6b4eedc544e473ebc9763ccdb
(cherry picked from commit 9062322cffd03d2c56b66d040ad13bc562bb6544)
diff --git a/pod-passivetest.yaml b/pod-passivetest.yaml
new file mode 100644
index 0000000..0c1bc07
--- /dev/null
+++ b/pod-passivetest.yaml
@@ -0,0 +1,75 @@
+tosca_definitions_version: tosca_simple_yaml_1_0
+
+description: Setup the PassiveTest on the pod
+
+imports:
+ - custom_types/xos.yaml
+ - custom_types/PassiveTest.yaml
+
+topology_template:
+ node_templates:
+
+ m1.large:
+ type: tosca.nodes.Flavor
+
+ mcord_taa:
+ type: tosca.nodes.Image
+
+ Private:
+ type: tosca.nodes.NetworkTemplate
+
+ mysite:
+ type: tosca.nodes.Site
+
+ management:
+ type: tosca.nodes.network.Network.XOS
+ properties:
+ no-create: true
+ no-delete: true
+ no-update: true
+
+
+ mysite_passivetest_slice:
+ description: This slice holds the PassiveTest service
+ type: tosca.nodes.Slice
+ requirements:
+ - site:
+ node: mysite
+ relationship: tosca.relationships.MemberOfSite
+ - management:
+ node: management
+ relationship: tosca.relationships.ConnectsToNetwork
+ - owner:
+ node: service_passivetest
+ relationship: tosca.relationships.MemberOfService
+ - image:
+ node: mcord_taa
+ relationship: tosca.relationships.DefaultImage
+ - default_flavor:
+ node: m1.large
+ relationship: tosca.relationships.DefaultFlavor
+
+ service_passivetest:
+ type: tosca.nodes.PassiveTest
+ requirements:
+ - management:
+ node: management
+ relationship: tosca.relationships.UsesNetwork
+ properties:
+ view_url: /admin/passivetest/passivetestservice/$id$/
+ kind: PassiveTest
+ public_key: { get_artifact: [ SELF, pubkey, LOCAL_FILE] }
+ private_key_fn: /opt/xos/services/passivetest/keys/passivetest_rsa
+ artifacts:
+ pubkey: /opt/xos/services/passivetest/keys/passivetest_rsa.pub
+
+ tenant#passivetesttenant1:
+ type: tosca.nodes.PassiveTestTenant
+ requirements:
+ - tenant:
+ node: service_passivetest
+ relationship: tosca.relationships.TenantOfService
+ - dependency:
+ node: mysite_passivetest_slice
+ relationship: tosca.relationships.DependsOn
+