JsonUtil.json2Object(zipFileManifest, ManifestContent.class);
for (FileData fileData : manifestContent.getData()) {
if ((fileData.getFile()).contains("dummy_ignore.yaml")) {
- String filePath = new File("").getAbsolutePath();
+ String filePath = new File("").getAbsolutePath() + "/resources";
File envFilePath = new File(filePath + "/base_template.env");
File baseFilePath = new File(filePath + "/base_template.yaml");
try (
dataEnvList.add(dummyEnv);
dummyHeat.setData(dataEnvList);
newfiledata.add(dummyHeat);
- String filePath = new File("").getAbsolutePath();
+ String filePath = new File("").getAbsolutePath() + "/resources";
File envFilePath = new File(filePath + "/base_template.env");
File baseFilePath = new File(filePath + "/base_template.yaml");
try (
for (FileData fileData : manifestContent.getData()) {
if (Objects.nonNull(fileData.getType()) &&
fileData.getType().equals(FileData.Type.HELM) && fileData.getBase()) {
- String filePath = new File("").getAbsolutePath();
+ String filePath = new File("").getAbsolutePath() + "/resources";
File envFilePath = new File(filePath + "/base_template.env");
File baseFilePath = new File(filePath + "/base_template.yaml");
try (
--- /dev/null
+parameters:
+ vnf_name: demo_vnf_ignore
+ vnf_id: demo_app
+ vf_module_id: demo_module_id
\ No newline at end of file
--- /dev/null
+
+
+heat_template_version: 2013-05-23
+
+description: Dummy base heat template
+
+##############
+# #
+# PARAMETERS #
+# #
+##############
+
+parameters:
+ vnf_name:
+ type: string
+ description: VNF_NAME
+ vnf_id:
+ type: string
+ label: VNF ID
+ description: The VNF ID is provided by ONAP
+ vf_module_id:
+ type: string
+ label: VF Module ID
+ description: The VF Module ID is provided by ONAP
+
+#############
+# #
+# RESOURCES #
+# #
+#############
+
+resources:
+ dummy:
+ type: OS::Heat::None
+ properties:
+ vnf_name:
+ get_param: vnf_name
+ vnf_id:
+ get_param: vnf_id
+ vf_module_id:
+ get_param: vf_module_id
+
+ #SDC won't allow too dummy resource as it has to find 'topology_template' TOSCA equivalent in heat templates
+ dummy_base:
+ type: OS::Nova::Server
+ properties:
+ name: test
+ image: test
+ flavor: test
\ No newline at end of file
--- /dev/null
+cookbook_file "#{ENV['JETTY_BASE']}/resources/base_template.yaml" do
+ source "base_template.yaml"
+ mode 0644
+ owner "jetty"
+ group "jetty"
+end
+
+cookbook_file "#{ENV['JETTY_BASE']}/resources/base_template.env" do
+ source "base_template.env"
+ mode 0644
+ owner "jetty"
+ group "jetty"
+end
+
"recipe[sdc-onboard-backend::ON_3_logback]",
"recipe[sdc-onboard-backend::ON_4_setup_jetty_modules]",
"recipe[sdc-onboard-backend::ON_5_setup_configuration]",
- "recipe[sdc-onboard-backend::ON_6_prepareProbeFile]"
+ "recipe[sdc-onboard-backend::ON_6_prepareProbeFile]",
+ "recipe[sdc-onboard-backend::ON_7_setup_base_template]"
],
"env_run_lists": {
}