Include cloudify-rest.conf file during a snapshot creation

Description

As the title suggests, the cloudify-rest.conf could get corrupted or be edited (whether by accident or on purpose) after a snapshot has been created.
Today, the snapshot restore operation relies on the existing cloudify-rest.conf file, whether it exists or not.
A snapshot of the system should be completely idempotent.

Steps to Reproduce

Environment:
OS (CLI), HA cluster, cloud provider
------------------------------------

Steps to reproduce:
------------------
1. Create an environment with an external DB
2. Take a snapshot
3. Edit the 'postgresql_host' parameter in the '/opt/manager/cloudify-rest.conf' file to a bad value or completely remove the file.
4. Restore the snapshot

Expected result:
---------------

Actual result:
-------------

Why Propose Close?

None

Assignee

Unassigned

Reporter

Ohad Baruch

Labels

Severity

Critical

Target Version

4.5.5

Premium Only

no

Found In Version

4.5

QA Owner

None

Bug Type

legacy bug

Customer Encountered

No

Customer Name

None

Release Notes

yes

Priority

None

Epic Link

Priority

Unprioritized
Configure