diff options
author | Venkata Harish K Kajur <vk250x@att.com> | 2017-05-19 12:29:43 -0400 |
---|---|---|
committer | Venkata Harish K Kajur <vk250x@att.com> | 2017-05-19 12:40:51 -0400 |
commit | 0cd55fc1d50f066720bbe0ce591d9cbc59ecddf4 (patch) | |
tree | c01e51a84caa6baac7511352451281c3759097e0 /cookbooks/ajsc-aai-config/recipes/createConfigDirectories.rb | |
parent | b160c3cc1e58e85502ccaa7358cd38ff210ed34a (diff) |
Add the chef config changes for the new repos
Change-Id: If1fc90402ca70449cd181fab9f469eded4831638
Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
Diffstat (limited to 'cookbooks/ajsc-aai-config/recipes/createConfigDirectories.rb')
-rw-r--r-- | cookbooks/ajsc-aai-config/recipes/createConfigDirectories.rb | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/cookbooks/ajsc-aai-config/recipes/createConfigDirectories.rb b/cookbooks/ajsc-aai-config/recipes/createConfigDirectories.rb deleted file mode 100644 index eac5cd1..0000000 --- a/cookbooks/ajsc-aai-config/recipes/createConfigDirectories.rb +++ /dev/null @@ -1,60 +0,0 @@ -# Create or update the needed directories/links. -# If the directory already exists, it is updated to match -# -# LOGROOT should already be created by the SWM installation script -# It needs to run as root - -execute "mv logs logs.bak" do - only_if { ::File.directory?("#{node['aai-app-config']['PROJECT_HOME']}/logs") } - user 'aaiadmin' - group 'aaiadmin' - cwd "#{node['aai-app-config']['PROJECT_HOME']}" -end - -[ - "#{node['aai-app-config']['LOGROOT']}/AAI", - "#{node['aai-app-config']['LOGROOT']}/AAI/data", - "#{node['aai-app-config']['LOGROOT']}/AAI/misc", - "#{node['aai-app-config']['LOGROOT']}/AAI/ajsc-jetty" ].each do |path| - directory path do - owner 'aaiadmin' - group 'aaiadmin' - mode '0755' - recursive=true - action :create - end -end - -[ "#{node['aai-app-config']['PROJECT_HOME']}/bundleconfig/etc/auth" ].each do |path| - directory path do - owner 'aaiadmin' - group 'aaiadmin' - mode '0777' - recursive=true - action :create - end -end -#Application logs -link "#{node['aai-app-config']['PROJECT_HOME']}/logs" do - to "#{node['aai-app-config']['LOGROOT']}/AAI" - owner 'aaiadmin' - group 'aaiadmin' - mode '0755' -end - -#Make a link from /opt/app/aai/scripts to /opt/app/aai/bin -link "#{node['aai-app-config']['PROJECT_HOME']}/scripts" do - to "#{node['aai-app-config']['PROJECT_HOME']}/bin" - owner 'aaiadmin' - group 'aaiadmin' - mode '0755' -end - -#Process logs?? -#ln -s ${LOGROOT}/aai/servers/${server}/logs ${TRUE_PROJECT_HOME}/servers/${server}/logs -#link "#{node['aai-app-config']['PROJECT_HOME']}/servers/aai/logs" do -# to "#{node['aai-app-config']['LOGROOT']}/aai/servers/aai/logs" -# owner 'aaiadmin' -# group 'aaiadmin' -# mode '0755' -#end |