diff --git a/infra-library/1/index.yaml b/infra-library/1/index.yaml new file mode 100644 index 00000000..542e4175 --- /dev/null +++ b/infra-library/1/index.yaml @@ -0,0 +1,15 @@ +infra_templates: + - /infra/templates/opstest-tmpl-a3a7721c.yaml +classifications: + imports: + DEV-opstest-class-a3a7721c: /infra/classifications/dev-opstest-class-a3a7721c.yaml + PROD-opstest-class-a3a7721c: /infra/classifications/prod-opstest-class-a3a7721c.yaml + STAGE-opstest-class-a3a7721c: /infra/classifications/stage-opstest-class-a3a7721c.yaml + promotion: + DEV-opstest-class-a3a7721c: + - STAGE-opstest-class-a3a7721c + STAGE-opstest-class-a3a7721c: + - PROD-opstest-class-a3a7721c +dependencies: + opstest_dep_a3a7721c: + - import: /infra/dependencies/opstest_dep_a3a7721c_opstest-comp-a3a7721c.yaml \ No newline at end of file diff --git a/infra-library/1/infra/classifications/dev-opstest-class-a3a7721c.yaml b/infra-library/1/infra/classifications/dev-opstest-class-a3a7721c.yaml new file mode 100644 index 00000000..1a579368 --- /dev/null +++ b/infra-library/1/infra/classifications/dev-opstest-class-a3a7721c.yaml @@ -0,0 +1,13 @@ +name: DEV-opstest-class-a3a7721c +description: DEV opstest-class-a3a7721c-description +variables: + - name: string_value + value: petmal-opstest + type: 2 + - name: int_value + value: "42" + type: 2 + - name: float_value + value: "3.14159" + type: 2 +policy_set_id: 8ea52707-af59-46e7-b16c-14f2e86d9e5d \ No newline at end of file diff --git a/infra-library/1/infra/classifications/prod-opstest-class-a3a7721c.yaml b/infra-library/1/infra/classifications/prod-opstest-class-a3a7721c.yaml new file mode 100644 index 00000000..94b42003 --- /dev/null +++ b/infra-library/1/infra/classifications/prod-opstest-class-a3a7721c.yaml @@ -0,0 +1,13 @@ +name: PROD-opstest-class-a3a7721c +description: PROD opstest-class-a3a7721c-description +variables: + - name: string_value + value: petmal-opstest + type: 2 + - name: int_value + value: "42" + type: 2 + - name: float_value + value: "3.14159" + type: 2 +policy_set_id: 8ea52707-af59-46e7-b16c-14f2e86d9e5d \ No newline at end of file diff --git a/infra-library/1/infra/classifications/stage-opstest-class-a3a7721c.yaml b/infra-library/1/infra/classifications/stage-opstest-class-a3a7721c.yaml new file mode 100644 index 00000000..71e3e0f6 --- /dev/null +++ b/infra-library/1/infra/classifications/stage-opstest-class-a3a7721c.yaml @@ -0,0 +1,13 @@ +name: STAGE-opstest-class-a3a7721c +description: STAGE opstest-class-a3a7721c-description +variables: + - name: string_value + value: petmal-opstest + type: 2 + - name: int_value + value: "42" + type: 2 + - name: float_value + value: "3.14159" + type: 2 +policy_set_id: 8ea52707-af59-46e7-b16c-14f2e86d9e5d \ No newline at end of file diff --git a/infra-library/1/infra/components/opstest-comp-a3a7721c.yaml b/infra-library/1/infra/components/opstest-comp-a3a7721c.yaml new file mode 100644 index 00000000..9e3ff2e7 --- /dev/null +++ b/infra-library/1/infra/components/opstest-comp-a3a7721c.yaml @@ -0,0 +1,12 @@ +title: opstest-comp-a3a7721c +module_id: + namespace: vancluever + name: module + provider: "null" + version: 2.0.2 +variables: + - name: trigger + value: two +outputs: + - name: null_resource_id + description: The `id` of the `null_resource` resource in this module. \ No newline at end of file diff --git a/infra-library/1/infra/dependencies/opstest_dep_a3a7721c_opstest-comp-a3a7721c.yaml b/infra-library/1/infra/dependencies/opstest_dep_a3a7721c_opstest-comp-a3a7721c.yaml new file mode 100644 index 00000000..9c61f53d --- /dev/null +++ b/infra-library/1/infra/dependencies/opstest_dep_a3a7721c_opstest-comp-a3a7721c.yaml @@ -0,0 +1,9 @@ +interface: /share/opstest_dep_a3a7721c.yaml +provider: + kind: 1 + import: /infra/components/opstest-comp-a3a7721c.yaml +resolver: + input_map: + trigger: trigger + output_map: + resource_id: null_resource_id \ No newline at end of file diff --git a/infra-library/1/infra/templates/opstest-tmpl-a3a7721c.yaml b/infra-library/1/infra/templates/opstest-tmpl-a3a7721c.yaml new file mode 100644 index 00000000..458059fa --- /dev/null +++ b/infra-library/1/infra/templates/opstest-tmpl-a3a7721c.yaml @@ -0,0 +1,8 @@ +name: opstest-tmpl-a3a7721c +description: opstest-tmpl-a3a7721c description +base_infra_git: + type: 1 + identifier: master + repo: https://github.com/cldcvr/vanguard-demo + dir: opstest/gcp + driver: 1 \ No newline at end of file diff --git a/infra-library/1/response.json b/infra-library/1/response.json new file mode 100644 index 00000000..1a7dd026 --- /dev/null +++ b/infra-library/1/response.json @@ -0,0 +1 @@ +{"contents":"{\"infra_templates\":[{\"Path\":\"/infra/templates/opstest-tmpl-a3a7721c.yaml\",\"Object\":{\"name\":\"opstest-tmpl-a3a7721c\",\"description\":\"opstest-tmpl-a3a7721c description\",\"base_infra_git\":{\"type\":1,\"identifier\":\"master\",\"repo\":\"https://github.com/cldcvr/vanguard-demo\",\"dir\":\"opstest/gcp\",\"driver\":1}}}],\"classifications\":{\"imports\":{\"DEV-opstest-class-a3a7721c\":{\"Path\":\"/infra/classifications/dev-opstest-class-a3a7721c.yaml\",\"Object\":{\"name\":\"DEV-opstest-class-a3a7721c\",\"description\":\"DEV opstest-class-a3a7721c-description\",\"variables\":[{\"name\":\"string_value\",\"value\":\"petmal-opstest\",\"type\":2},{\"name\":\"int_value\",\"value\":\"42\",\"type\":2},{\"name\":\"float_value\",\"value\":\"3.14159\",\"type\":2}],\"policy_set_id\":\"8ea52707-af59-46e7-b16c-14f2e86d9e5d\"}},\"PROD-opstest-class-a3a7721c\":{\"Path\":\"/infra/classifications/prod-opstest-class-a3a7721c.yaml\",\"Object\":{\"name\":\"PROD-opstest-class-a3a7721c\",\"description\":\"PROD opstest-class-a3a7721c-description\",\"variables\":[{\"name\":\"string_value\",\"value\":\"petmal-opstest\",\"type\":2},{\"name\":\"int_value\",\"value\":\"42\",\"type\":2},{\"name\":\"float_value\",\"value\":\"3.14159\",\"type\":2}],\"policy_set_id\":\"8ea52707-af59-46e7-b16c-14f2e86d9e5d\"}},\"STAGE-opstest-class-a3a7721c\":{\"Path\":\"/infra/classifications/stage-opstest-class-a3a7721c.yaml\",\"Object\":{\"name\":\"STAGE-opstest-class-a3a7721c\",\"description\":\"STAGE opstest-class-a3a7721c-description\",\"variables\":[{\"name\":\"string_value\",\"value\":\"petmal-opstest\",\"type\":2},{\"name\":\"int_value\",\"value\":\"42\",\"type\":2},{\"name\":\"float_value\",\"value\":\"3.14159\",\"type\":2}],\"policy_set_id\":\"8ea52707-af59-46e7-b16c-14f2e86d9e5d\"}}},\"promotion\":{\"DEV-opstest-class-a3a7721c\":[\"STAGE-opstest-class-a3a7721c\"],\"STAGE-opstest-class-a3a7721c\":[\"PROD-opstest-class-a3a7721c\"]}},\"dependencies\":{\"opstest_dep_a3a7721c\":[{\"import\":{\"Path\":\"/infra/dependencies/opstest_dep_a3a7721c_opstest-comp-a3a7721c.yaml\",\"Object\":{\"interface\":{\"Path\":\"/share/opstest_dep_a3a7721c.yaml\",\"Object\":{\"name\":\"opstest_dep_a3a7721c\",\"description\":\"opstest_dep_a3a7721c description\",\"inputs\":{\"trigger\":\"trigger value\"},\"outputs\":{\"resource_id\":\"The null resource ID\"}}},\"provider\":{\"kind\":1,\"import\":{\"Path\":\"/infra/components/opstest-comp-a3a7721c.yaml\",\"Object\":{\"title\":\"opstest-comp-a3a7721c\",\"module_id\":{\"namespace\":\"vancluever\",\"name\":\"module\",\"provider\":\"null\",\"version\":\"2.0.2\"},\"variables\":[{\"name\":\"trigger\",\"value\":\"two\"}],\"outputs\":[{\"name\":\"null_resource_id\",\"description\":\"The `id` of the `null_resource` resource in this module.\"}]}}},\"resolver\":{\"input_map\":{\"trigger\":\"trigger\"},\"output_map\":{\"resource_id\":\"null_resource_id\"}}}}}]}}", "type":"application/json"} \ No newline at end of file diff --git a/infra-library/1/share/opstest_dep_a3a7721c.yaml b/infra-library/1/share/opstest_dep_a3a7721c.yaml new file mode 100644 index 00000000..a26042a9 --- /dev/null +++ b/infra-library/1/share/opstest_dep_a3a7721c.yaml @@ -0,0 +1,6 @@ +name: opstest_dep_a3a7721c +description: opstest_dep_a3a7721c description +inputs: + trigger: trigger value +outputs: + resource_id: The null resource ID \ No newline at end of file diff --git a/infra-library/2/index.yaml b/infra-library/2/index.yaml new file mode 100644 index 00000000..7be5687c --- /dev/null +++ b/infra-library/2/index.yaml @@ -0,0 +1,15 @@ +infra_templates: + - infra/templates/opstest-tmpl-a3a7721c.yaml +classifications: + imports: + DEV-opstest-class-a3a7721c: infra/classifications/dev-opstest-class-a3a7721c.yaml + PROD-opstest-class-a3a7721c: /infra/classifications/prod-opstest-class-a3a7721c.yaml + STAGE-opstest-class-a3a7721c: infra/classifications/stage-opstest-class-a3a7721c.yaml + promotion: + DEV-opstest-class-a3a7721c: + - STAGE-opstest-class-a3a7721c + STAGE-opstest-class-a3a7721c: + - PROD-opstest-class-a3a7721c +dependencies: + opstest_dep_a3a7721c: + - import: infra/dependencies/opstest_dep_a3a7721c_opstest-comp-a3a7721c.yaml \ No newline at end of file diff --git a/infra-library/2/infra/classifications/dev-opstest-class-a3a7721c.yaml b/infra-library/2/infra/classifications/dev-opstest-class-a3a7721c.yaml new file mode 100644 index 00000000..1a579368 --- /dev/null +++ b/infra-library/2/infra/classifications/dev-opstest-class-a3a7721c.yaml @@ -0,0 +1,13 @@ +name: DEV-opstest-class-a3a7721c +description: DEV opstest-class-a3a7721c-description +variables: + - name: string_value + value: petmal-opstest + type: 2 + - name: int_value + value: "42" + type: 2 + - name: float_value + value: "3.14159" + type: 2 +policy_set_id: 8ea52707-af59-46e7-b16c-14f2e86d9e5d \ No newline at end of file diff --git a/infra-library/2/infra/classifications/prod-opstest-class-a3a7721c.yaml b/infra-library/2/infra/classifications/prod-opstest-class-a3a7721c.yaml new file mode 100644 index 00000000..94b42003 --- /dev/null +++ b/infra-library/2/infra/classifications/prod-opstest-class-a3a7721c.yaml @@ -0,0 +1,13 @@ +name: PROD-opstest-class-a3a7721c +description: PROD opstest-class-a3a7721c-description +variables: + - name: string_value + value: petmal-opstest + type: 2 + - name: int_value + value: "42" + type: 2 + - name: float_value + value: "3.14159" + type: 2 +policy_set_id: 8ea52707-af59-46e7-b16c-14f2e86d9e5d \ No newline at end of file diff --git a/infra-library/2/infra/classifications/stage-opstest-class-a3a7721c.yaml b/infra-library/2/infra/classifications/stage-opstest-class-a3a7721c.yaml new file mode 100644 index 00000000..71e3e0f6 --- /dev/null +++ b/infra-library/2/infra/classifications/stage-opstest-class-a3a7721c.yaml @@ -0,0 +1,13 @@ +name: STAGE-opstest-class-a3a7721c +description: STAGE opstest-class-a3a7721c-description +variables: + - name: string_value + value: petmal-opstest + type: 2 + - name: int_value + value: "42" + type: 2 + - name: float_value + value: "3.14159" + type: 2 +policy_set_id: 8ea52707-af59-46e7-b16c-14f2e86d9e5d \ No newline at end of file diff --git a/infra-library/2/infra/components/opstest-comp-a3a7721c.yaml b/infra-library/2/infra/components/opstest-comp-a3a7721c.yaml new file mode 100644 index 00000000..9e3ff2e7 --- /dev/null +++ b/infra-library/2/infra/components/opstest-comp-a3a7721c.yaml @@ -0,0 +1,12 @@ +title: opstest-comp-a3a7721c +module_id: + namespace: vancluever + name: module + provider: "null" + version: 2.0.2 +variables: + - name: trigger + value: two +outputs: + - name: null_resource_id + description: The `id` of the `null_resource` resource in this module. \ No newline at end of file diff --git a/infra-library/2/infra/dependencies/opstest_dep_a3a7721c_opstest-comp-a3a7721c.yaml b/infra-library/2/infra/dependencies/opstest_dep_a3a7721c_opstest-comp-a3a7721c.yaml new file mode 100644 index 00000000..9c61f53d --- /dev/null +++ b/infra-library/2/infra/dependencies/opstest_dep_a3a7721c_opstest-comp-a3a7721c.yaml @@ -0,0 +1,9 @@ +interface: /share/opstest_dep_a3a7721c.yaml +provider: + kind: 1 + import: /infra/components/opstest-comp-a3a7721c.yaml +resolver: + input_map: + trigger: trigger + output_map: + resource_id: null_resource_id \ No newline at end of file diff --git a/infra-library/2/infra/templates/opstest-tmpl-a3a7721c.yaml b/infra-library/2/infra/templates/opstest-tmpl-a3a7721c.yaml new file mode 100644 index 00000000..458059fa --- /dev/null +++ b/infra-library/2/infra/templates/opstest-tmpl-a3a7721c.yaml @@ -0,0 +1,8 @@ +name: opstest-tmpl-a3a7721c +description: opstest-tmpl-a3a7721c description +base_infra_git: + type: 1 + identifier: master + repo: https://github.com/cldcvr/vanguard-demo + dir: opstest/gcp + driver: 1 \ No newline at end of file diff --git a/infra-library/2/response.json b/infra-library/2/response.json new file mode 100644 index 00000000..1a7dd026 --- /dev/null +++ b/infra-library/2/response.json @@ -0,0 +1 @@ +{"contents":"{\"infra_templates\":[{\"Path\":\"/infra/templates/opstest-tmpl-a3a7721c.yaml\",\"Object\":{\"name\":\"opstest-tmpl-a3a7721c\",\"description\":\"opstest-tmpl-a3a7721c description\",\"base_infra_git\":{\"type\":1,\"identifier\":\"master\",\"repo\":\"https://github.com/cldcvr/vanguard-demo\",\"dir\":\"opstest/gcp\",\"driver\":1}}}],\"classifications\":{\"imports\":{\"DEV-opstest-class-a3a7721c\":{\"Path\":\"/infra/classifications/dev-opstest-class-a3a7721c.yaml\",\"Object\":{\"name\":\"DEV-opstest-class-a3a7721c\",\"description\":\"DEV opstest-class-a3a7721c-description\",\"variables\":[{\"name\":\"string_value\",\"value\":\"petmal-opstest\",\"type\":2},{\"name\":\"int_value\",\"value\":\"42\",\"type\":2},{\"name\":\"float_value\",\"value\":\"3.14159\",\"type\":2}],\"policy_set_id\":\"8ea52707-af59-46e7-b16c-14f2e86d9e5d\"}},\"PROD-opstest-class-a3a7721c\":{\"Path\":\"/infra/classifications/prod-opstest-class-a3a7721c.yaml\",\"Object\":{\"name\":\"PROD-opstest-class-a3a7721c\",\"description\":\"PROD opstest-class-a3a7721c-description\",\"variables\":[{\"name\":\"string_value\",\"value\":\"petmal-opstest\",\"type\":2},{\"name\":\"int_value\",\"value\":\"42\",\"type\":2},{\"name\":\"float_value\",\"value\":\"3.14159\",\"type\":2}],\"policy_set_id\":\"8ea52707-af59-46e7-b16c-14f2e86d9e5d\"}},\"STAGE-opstest-class-a3a7721c\":{\"Path\":\"/infra/classifications/stage-opstest-class-a3a7721c.yaml\",\"Object\":{\"name\":\"STAGE-opstest-class-a3a7721c\",\"description\":\"STAGE opstest-class-a3a7721c-description\",\"variables\":[{\"name\":\"string_value\",\"value\":\"petmal-opstest\",\"type\":2},{\"name\":\"int_value\",\"value\":\"42\",\"type\":2},{\"name\":\"float_value\",\"value\":\"3.14159\",\"type\":2}],\"policy_set_id\":\"8ea52707-af59-46e7-b16c-14f2e86d9e5d\"}}},\"promotion\":{\"DEV-opstest-class-a3a7721c\":[\"STAGE-opstest-class-a3a7721c\"],\"STAGE-opstest-class-a3a7721c\":[\"PROD-opstest-class-a3a7721c\"]}},\"dependencies\":{\"opstest_dep_a3a7721c\":[{\"import\":{\"Path\":\"/infra/dependencies/opstest_dep_a3a7721c_opstest-comp-a3a7721c.yaml\",\"Object\":{\"interface\":{\"Path\":\"/share/opstest_dep_a3a7721c.yaml\",\"Object\":{\"name\":\"opstest_dep_a3a7721c\",\"description\":\"opstest_dep_a3a7721c description\",\"inputs\":{\"trigger\":\"trigger value\"},\"outputs\":{\"resource_id\":\"The null resource ID\"}}},\"provider\":{\"kind\":1,\"import\":{\"Path\":\"/infra/components/opstest-comp-a3a7721c.yaml\",\"Object\":{\"title\":\"opstest-comp-a3a7721c\",\"module_id\":{\"namespace\":\"vancluever\",\"name\":\"module\",\"provider\":\"null\",\"version\":\"2.0.2\"},\"variables\":[{\"name\":\"trigger\",\"value\":\"two\"}],\"outputs\":[{\"name\":\"null_resource_id\",\"description\":\"The `id` of the `null_resource` resource in this module.\"}]}}},\"resolver\":{\"input_map\":{\"trigger\":\"trigger\"},\"output_map\":{\"resource_id\":\"null_resource_id\"}}}}}]}}", "type":"application/json"} \ No newline at end of file diff --git a/infra-library/2/share/opstest_dep_a3a7721c.yaml b/infra-library/2/share/opstest_dep_a3a7721c.yaml new file mode 100644 index 00000000..a26042a9 --- /dev/null +++ b/infra-library/2/share/opstest_dep_a3a7721c.yaml @@ -0,0 +1,6 @@ +name: opstest_dep_a3a7721c +description: opstest_dep_a3a7721c description +inputs: + trigger: trigger value +outputs: + resource_id: The null resource ID \ No newline at end of file