Support setting SDC-BE configuration at deployment time 25/108425/2
authorvasraz <vasyl.razinkov@est.tech>
Thu, 28 May 2020 10:44:09 +0000 (11:44 +0100)
committerOfir Sonsino <ofir.sonsino@intl.att.com>
Wed, 10 Jun 2020 08:22:21 +0000 (08:22 +0000)
Change-Id: I4b384bc911630d6041a0c5c235d3aaf3ac148090
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Issue-ID: SDC-3076

catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_2_setup_configuration.rb
catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_7_logback.rb
catalog-be/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/recipes/BE_8_errors_config.rb

index ab63712..2e66e2d 100644 (file)
@@ -19,7 +19,8 @@ template "janusgraph.properties" do
   source "BE-janusgraph.properties.erb"
   owner "jetty"
   group "jetty"
-  mode "0755"
+  mode "0644"
+  action :create_if_missing
   variables({
                 :cassandra_ip => node['Nodes']['CS'].join(",").gsub(/[|]/, ''),
                 :cassandra_cql_port => node['cassandra'][:cassandra_port],
@@ -39,7 +40,7 @@ template "catalog-be-config" do
   source "BE-configuration.yaml.erb"
   owner "jetty"
   group "jetty"
-  mode "0755"
+  mode "0644"
   action :create_if_missing
   variables({
                 :catalog_ip => node['Nodes']['BE'],
@@ -67,5 +68,6 @@ template "distribution-engine-configuration" do
   source "BE-distribution-engine-configuration.yaml.erb"
   owner "jetty"
   group "jetty"
-  mode "0755"
+  mode "0644"
+  action :create_if_missing
 end
index f5bf617..7d95d74 100644 (file)
@@ -1,7 +1,8 @@
 cookbook_file "#{ENV['JETTY_BASE']}/config/catalog-be/logback.xml" do
   source "logback.xml"
-  mode 0755
+  mode 0644
   owner "jetty"
   group "jetty"
+  action :create_if_missing
 end
  
index 49cf3c3..b100356 100644 (file)
@@ -1,14 +1,16 @@
 cookbook_file "#{ENV['JETTY_BASE']}/config/catalog-be/ecomp-error-configuration.yaml" do
   source "ecomp-error-configuration.yaml"
-  mode 0755
+  mode 0644
   owner "jetty"
   group "jetty"
+  action :create_if_missing
 end
  
 cookbook_file "#{ENV['JETTY_BASE']}/config/catalog-be/error-configuration.yaml" do
   source "error-configuration.yaml"
-  mode 0755
+  mode 0644
   owner "jetty"
   group "jetty"
+  action :create_if_missing
 end