Command to create the organisations in chef server #6534
Merged
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?
Command to add the sample data of organisations in chef server using web ui key
⛓️ Related Resources
#6532
👍 Definition of Done
I have added changes to load the sample data of organisations in chef server
Using command we can add the sample organisations in server on chef server side using web ui key.
For script, added an API to create the organisations on chef server.
API reads the web ui key of given chef server and make request to create an organisations.
👟 How to Build and Test the Change
Command to add the orgs in server
You need to enter the hab studio then check the services are running.
To start the services you can use
start_infra_proxy_service
orstart_all_services
Then run
infra_service_load_sample_orgs
Options:
-N: Number of records, default 50
-S: Chef infra server id, which should be available on chef server and added in automate
-O: Chef organization's name prefix, default: chef-org
Example:
infra_service_load_sample_orgs -N 50 -S local-dev -O chef-org
API to create an orgs in chef server
Steps to build:
Steps to test:
start_chef_server
Request
Response
{}
✅ Checklist
All PRs must tick these:
With occasional exceptions, all PRs from Progress employees must tick these:
make spell
in any component directory)All PRs from Progress employees should tick these if appropriate:
Please add a note next to any checkbox above if you are NOT ticking it.
📷 Screenshots, if applicable