Support the infra server's /version
endpoint in the automate-deployed infra server
#3313
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🔩 Description: What code changed, and why?
Supporting the infra server's
/version
endpoint enables usingknife ec backup
to backup the data from an infra server installed from an omnibus package and usingknife ec restore
to restore the data to an automate-deployed infra server.Fixes #3301
⛓️ Related Resources
👍 Definition of Done
👟 How to Build and Test the Change
Deploy an infra server and take a backup
automate/components/automate-deployment
, runvagrant up
to bring up a minimal vagrant box. Usevagrant ssh
to login, and go to the `/a2/ directory.dpkg -i chefdk_4.7.113-1_amd64.deb
) and the knife-ec-backup plugin (apt-get install ruby-dev g++ libpq-dev; chef gem install knife-ec-backup
).knife fetch ssl
to make the infra server's SSL certs available to knife.mkdir ./tmp; knife ec backup --server-url https://automate-deployment.test --key <admin-key> ./tmp
. The backup will land inautomate/components/automate-deployment/tmp
.vagrant destroy -f
to stop and remove it.Deploy the infra server using Automate and restore the data from the first infra serveer
build components/automate-load-balancer
.automate/components/automate-deployment
, runvagrant up
to bring up a minimal vagrant environment./a2
directory and, as root, install automate and infra server using the package built in the first step, e.g../components/automate-deployment/bin/linux/chef-automate deploy --product automate --product chef-server --hartifacts ./results --override-origin <your-origin>
dpkg -i chefdk_4.7.113-1_amd64.deb
) and the knife-ec-backup plugin (apt-get install ruby-dev g++ libpq-dev; chef gem install knife-ec-backup
).knife ssl fetch
to make Automate's SSL certs available to knife.components/automate-deployment/tmp
, which contains the infra server backup, and restore the data to the infra server:✅ Checklist
📷 Screenshots, if applicable