Skip to content

Commit

Permalink
Start evmserverd after cli config
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Apr 12, 2024
1 parent c1001f8 commit d66e8f8
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions lib/manageiq/appliance_console/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,14 @@ def run
saml_unconfig if saml_unconfig?
oidc_config if oidc_config?
oidc_unconfig if oidc_unconfig?
set_server_state if set_server_state?
openscap if openscap?
message_server_config if message_server_config?
message_server_unconfig if message_server_unconfig?
message_client_config if message_client_config?
message_client_unconfig if message_client_unconfig?
# set_server_state must be after set_db and message_*_config so that a user
# can configure database, messaging, and start the server in one command
set_server_state if set_server_state?
rescue CliError => e
say(e.message)
say("")
Expand Down Expand Up @@ -322,9 +324,6 @@ def set_internal_db
# start pg, create user, create db update the rails configuration,
# verify, set up the database with region. activate does it all!
raise CliError, "Failed to configure internal database" unless config.activate

# enable/start related services
config.post_activation
rescue RuntimeError => e
raise CliError, "Failed to configure internal database #{e.message}"
end
Expand All @@ -343,9 +342,6 @@ def set_external_db

# call create_or_join_region (depends on region value)
raise CliError, "Failed to configure external database" unless config.activate

# enable/start related services
config.post_activation
end

def set_replication
Expand Down

0 comments on commit d66e8f8

Please sign in to comment.