aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--catalog-be/src/main/resources/import/tosca/heat-types/overlayTunnel/overlayTunnel.yml5
-rw-r--r--catalog-be/src/main/resources/import/tosca/heat-types/overlayTunnel/overlayTunnel.zipbin1162 -> 1128 bytes
-rw-r--r--catalog-be/src/main/resources/import/tosca/heat-types/underlayVpn/underlayVpn.json32
-rw-r--r--catalog-be/src/main/resources/import/tosca/heat-types/underlayVpn/underlayVpn.yml4
-rw-r--r--catalog-be/src/main/resources/import/tosca/heat-types/underlayVpn/underlayVpn.zipbin1164 -> 1181 bytes
-rw-r--r--sdc-os-chef/pom.xml1
-rw-r--r--sdc-os-chef/scripts/clean_images_except_base.sh1
-rw-r--r--sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/03-createDoxKeyspace.rb44
-rw-r--r--sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/templates/default/create_dox_keyspace.sh.erb8
10 files changed, 57 insertions, 41 deletions
diff --git a/.gitignore b/.gitignore
index 3055c24b6b..8272b99ae9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -163,3 +163,6 @@ common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-cor
sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/files/default/testSuites/*
/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/attributes/default.rb
+
+
+/common/openecomp-common-configuration-management/openecomp-configuration-management-cli/dependency-reduced-pom.xml \ No newline at end of file
diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/overlayTunnel/overlayTunnel.yml b/catalog-be/src/main/resources/import/tosca/heat-types/overlayTunnel/overlayTunnel.yml
index eb6dfae372..958806a097 100644
--- a/catalog-be/src/main/resources/import/tosca/heat-types/overlayTunnel/overlayTunnel.yml
+++ b/catalog-be/src/main/resources/import/tosca/heat-types/overlayTunnel/overlayTunnel.yml
@@ -6,7 +6,7 @@ description: overlay L3 vpn type definitions
# *****************************************************************************
metadata:
- id: : overlayTunnelDefinition
+ id: overlayTunnelDefinition
version: 0.1
vendor: ONAP
template_author: ONAP
@@ -23,8 +23,7 @@ node_types:
org.openecomp.resource.vl.overlaytunnel:
derived_from: tosca.nodes.Root
- description: >-
- This entity represents abstract overlay tunnel end point.
+ description: This entity represents abstract overlay tunnel end point.
properties:
id:
type: string
diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/overlayTunnel/overlayTunnel.zip b/catalog-be/src/main/resources/import/tosca/heat-types/overlayTunnel/overlayTunnel.zip
index 99ddf491eb..e60fcbc0a6 100644
--- a/catalog-be/src/main/resources/import/tosca/heat-types/overlayTunnel/overlayTunnel.zip
+++ b/catalog-be/src/main/resources/import/tosca/heat-types/overlayTunnel/overlayTunnel.zip
Binary files differ
diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/underlayVpn/underlayVpn.json b/catalog-be/src/main/resources/import/tosca/heat-types/underlayVpn/underlayVpn.json
index 10e2d4c155..6107261dd9 100644
--- a/catalog-be/src/main/resources/import/tosca/heat-types/underlayVpn/underlayVpn.json
+++ b/catalog-be/src/main/resources/import/tosca/heat-types/underlayVpn/underlayVpn.json
@@ -1,15 +1,21 @@
{
- "payloadName": "underlayVpn.yml",
- "contactId": "jh0003",
- "name": "VL UNDERLAYVPN",
- "description": "The node represents a underlay vpn entity",
- "resourceIconPath": "network",
- "resourceType": "VL",
- "categories": [{
- "name": "Generic",
- "subcategories": [{
- "name": "Virtual Links"
- }]
- }],
- "tags": ["VL UNDERLAYVPN"]
+ "payloadName": "underlayVpn.yml",
+ "contactId": "jh0003",
+ "name": "VL UNDERLAYVPN",
+ "description": "The node represents a underlay vpn entity",
+ "resourceIconPath": "network",
+ "resourceType": "VL",
+ "categories": [
+ {
+ "name": "Generic",
+ "subcategories": [
+ {
+ "name": "Virtual Links"
+ }
+ ]
+ }
+ ],
+ "tags": [
+ "VL UNDERLAYVPN"
+ ]
}
diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/underlayVpn/underlayVpn.yml b/catalog-be/src/main/resources/import/tosca/heat-types/underlayVpn/underlayVpn.yml
index 639e1e5d91..1e22852c75 100644
--- a/catalog-be/src/main/resources/import/tosca/heat-types/underlayVpn/underlayVpn.yml
+++ b/catalog-be/src/main/resources/import/tosca/heat-types/underlayVpn/underlayVpn.yml
@@ -1,9 +1,11 @@
tosca_definitions_version: tosca_simple_yaml_1_0
+description: underlay L3 vpn type definitions
# *****************************************************************************
# underlay vpn type definitions
# *****************************************************************************
metadata:
+ id: underlayVpnDefinition
version: 0.1
vendor: ONAP
template_author: ONAP
@@ -19,7 +21,7 @@ node_types:
# *****************************************************************************
org.openecomp.resource.vl.underlayvpn:
derived_from: tosca.nodes.Root
- description: undelay vpn type definitions
+ description: undelay vpn type definitions
properties:
id:
type: string
diff --git a/catalog-be/src/main/resources/import/tosca/heat-types/underlayVpn/underlayVpn.zip b/catalog-be/src/main/resources/import/tosca/heat-types/underlayVpn/underlayVpn.zip
index 0a4f88bd32..4a0bce00f7 100644
--- a/catalog-be/src/main/resources/import/tosca/heat-types/underlayVpn/underlayVpn.zip
+++ b/catalog-be/src/main/resources/import/tosca/heat-types/underlayVpn/underlayVpn.zip
Binary files differ
diff --git a/sdc-os-chef/pom.xml b/sdc-os-chef/pom.xml
index 76046feb42..41372d5801 100644
--- a/sdc-os-chef/pom.xml
+++ b/sdc-os-chef/pom.xml
@@ -236,6 +236,7 @@
<configuration>
<verbose>true</verbose>
<apiVersion>1.23</apiVersion>
+ <registry>nexus3.onap.org:10003</registry>
<images>
diff --git a/sdc-os-chef/scripts/clean_images_except_base.sh b/sdc-os-chef/scripts/clean_images_except_base.sh
new file mode 100644
index 0000000000..77e143a01e
--- /dev/null
+++ b/sdc-os-chef/scripts/clean_images_except_base.sh
@@ -0,0 +1 @@
+docker rmi -f `docker images | grep -v base | awk '{print $3}'`
diff --git a/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/03-createDoxKeyspace.rb b/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/03-createDoxKeyspace.rb
index e54932d1c4..68c1870832 100644
--- a/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/03-createDoxKeyspace.rb
+++ b/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/recipes/03-createDoxKeyspace.rb
@@ -1,32 +1,36 @@
template "/tmp/create_dox_keyspace.sh" do
- source "create_dox_keyspace.sh.erb"
- sensitive true
- mode 0755
- variables({
- :cassandra_ip => "HOSTIP",
- :DC_NAME => node['cassandra'][:cluster_name]+node.chef_environment
- })
+ source "create_dox_keyspace.sh.erb"
+ sensitive true
+ mode 0755
+ variables({
+ :cassandra_ip => "HOSTIP",
+ :DC_NAME => node['cassandra'][:cluster_name]+node.chef_environment
+ })
end
-cookbook_file "/tmp/create_dox_db.cql" do
- sensitive true
- source "create_dox_db.cql"
- mode 0755
-end
-
-cookbook_file "/tmp/alter_dox_db.cql" do
- sensitive true
- source "alter_dox_db.cql"
- mode 0755
+remote_directory '/tmp/tools' do
+ source 'tools'
+ mode '0755'
+ files_mode '0755'
+ action :create
end
+bash "onboard-db-schema-creation" do
+ ignore_failure true
+ code <<-EOH
+ cd /tmp/tools/build/scripts
+ chmod +x onboard-db-schema-creation.sh
+ /tmp/tools/build/scripts/onboard-db-schema-creation.sh
+ EOH
+end
+
bash "create-DOX-schema" do
- ignore_failure true
- code <<-EOH
+ ignore_failure true
+ code <<-EOH
cd /tmp
chmod +x /tmp/create_dox_keyspace.sh
/tmp/create_dox_keyspace.sh
- EOH
+ EOH
end
diff --git a/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/templates/default/create_dox_keyspace.sh.erb b/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/templates/default/create_dox_keyspace.sh.erb
index f65bb945f3..37b785970c 100644
--- a/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/templates/default/create_dox_keyspace.sh.erb
+++ b/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/templates/default/create_dox_keyspace.sh.erb
@@ -23,12 +23,12 @@ fi
echo "run create_dox_db.cql"
-chmod 755 /tmp/create_dox_db.cql
-cqlsh -u $CASSANDRA_USER -p $CASSANDRA_PASS -f /tmp/create_dox_db.cql > /dev/null 2>&1
+chmod 755 /tmp/tools/build/scripts/create_dox_db.cql
+cqlsh -u $CASSANDRA_USER -p $CASSANDRA_PASS -f /tmp/tools/build/scripts/create_dox_db.cql > /dev/null 2>&1
sleep 10
echo "run alter_dox_db.cql"
-chmod 755 /tmp/alter_dox_db.cql
-cqlsh -u $CASSANDRA_USER -p $CASSANDRA_PASS -f /tmp/alter_dox_db.cql > /dev/null 2>&1
+chmod 755 /tmp/tools/build/scripts/alter_dox_db.cql
+cqlsh -u $CASSANDRA_USER -p $CASSANDRA_PASS -f /tmp/tools/build/scripts/alter_dox_db.cql > /dev/null 2>&1