Skip to content

Commit

Permalink
Remvoing config patch for old configs in upgrade and add/remove node (#…
Browse files Browse the repository at this point in the history
…8296)

* Remoing config patch for old configs in upgrade and add/remove node

Signed-off-by: Arvinth C <arvinth.chandrasekaran@progress.com>

* Trigger build

Signed-off-by: Arvinth C <arvinth.chandrasekaran@progress.com>

* Stash for save and sync config for upgrade flow

Signed-off-by: Arvinth C <arvinth.chandrasekaran@progress.com>

* Removing stash

Signed-off-by: Arvinth C <arvinth.chandrasekaran@progress.com>

---------

Signed-off-by: Arvinth C <arvinth.chandrasekaran@progress.com>
  • Loading branch information
ArvinthC3000 authored and anees-progress committed Nov 30, 2023
1 parent ad8b13d commit ecce4d7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 0 additions & 1 deletion components/automate-backend-deployment/habitat/plan.sh
Expand Up @@ -27,7 +27,6 @@ pkg_deps=(
chef/automate-ha-cluster-ctl
)


pkg_build_deps=(
core/gcc
)
Expand Down
3 changes: 3 additions & 0 deletions components/automate-cli/cmd/chef-automate/initConfigHaTmpl.go
Expand Up @@ -64,6 +64,8 @@ instance_count = ""
# automate_setup_type = "automate"
# teams_port = ""
# config_file will be deprecated
config_file = "configs/automate.toml"
# Set enable_custom_certs = true to provide custom certificates during deployment
Expand Down Expand Up @@ -396,6 +398,7 @@ instance_count = ""
## === ===
# teams_port = ""
# config_file will be deprecated
config_file = "configs/automate.toml"
# Set enable_custom_certs = true to provide custom certificates during deployment
Expand Down
Expand Up @@ -294,8 +294,10 @@ if [ -e "/hab/user/deployment-service/config/user.toml" ]; then

wait_for_upgrade

echo "Applying /etc/chef-automate/config.toml"
chef-automate config patch /etc/chef-automate/config.toml
# Below command is commented as patch is not required during upgrade and add/remove node
# Also when it is being applied, it was reverting patched configs (automate) to the older ones
# echo "Applying /etc/chef-automate/config.toml"
# chef-automate config patch /etc/chef-automate/config.toml

echo "MAINTENANCE MODE OFF"
chef-automate maintenance off
Expand Down

0 comments on commit ecce4d7

Please sign in to comment.