Created
December 20, 2017 19:49
-
-
Save JacobCallahan/3776356297c8a0f180f369ae4a4a1069 to your computer and use it in GitHub Desktop.
create stuff and do the things
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# Create and populate a repository. | |
set -euo pipefail | |
# hammer auth login -u admin -p changeme | |
hammer -u admin -p changeme product create --name repotest --organization-id 1 | |
hammer -u admin -p changeme repository create \ | |
--content-type 'yum' \ | |
--url 'https://repos.fedorapeople.org/pulp/pulp/fixtures/rpm-signed/' \ | |
--download-policy 'on_demand' \ | |
--name 'repotest1' \ | |
--product 'repotest' \ | |
--organization-id 1 | |
hammer -u admin -p changeme repository synchronize \ | |
--name repotest1 --product repotest --organization-id 1 | |
hammer -u admin -p changeme product delete --name repotest --organization-id 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment