Skip to content

Commit

Permalink
Add missing PA configuration files to TAR/Docker
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
  • Loading branch information
peterzhuamazon committed Jan 9, 2023
1 parent f8badd4 commit 85e294a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
14 changes: 14 additions & 0 deletions scripts/components/performance-analyzer/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,17 @@ fi

## Setup Performance Analyzer Agent
mv $OUTPUT/plugins/opensearch-performance-analyzer/performance-analyzer-rca $OUTPUT/

## Setup necessary configurations
# Create data directory by default
# Do nothing if the directory already exists
if [ -d "$OUTPUT/data" ]; then
mkdir -p $OUTPUT/data
fi

# Performance Analyzer Configs
echo 'true' > $OUTPUT/data/rca_enabled.conf
echo 'true' > $OUTPUT/config/performance_analyzer_enabled.conf
echo 'true' > $OUTPUT/config/rca_enabled.conf


Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ fi
# Reload other configs
systemd-tmpfiles --create %{name}.conf
# Messages
echo "### NOT starting on installation, please execute the following statements to configure opensearch service to start automatically using systemd"
echo "### NOT starting on installation, please execute the following statements to configure opensearch-dashboards service to start automatically using systemd"
echo " sudo systemctl daemon-reload"
echo " sudo systemctl enable opensearch-dashboards.service"
echo "### You can start opensearch-dashboards service by executing"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ mkdir -p %{buildroot}%{product_dir}/performance-analyzer-rca
# Symlinks (do not symlink config dir as security demo installer has dependency, if no presense it will switch to rpm/deb mode)
ln -s %{data_dir} %{buildroot}%{product_dir}/data
ln -s %{log_dir} %{buildroot}%{product_dir}/logs
# Performance Analyzer Settings
echo 'true' > %{buildroot}%{data_dir}/rca_enabled.conf
echo 'true' > %{buildroot}%{config_dir}/performance_analyzer_enabled.conf
echo 'true' > %{buildroot}%{config_dir}/rca_enabled.conf
# Change Permissions
chmod -Rf a+rX,u+w,g-w,o-w %{buildroot}/*
exit 0
Expand Down

0 comments on commit 85e294a

Please sign in to comment.