Skip to content

Instantly share code, notes, and snippets.

@JacobCallahan
Created December 20, 2017 19:49
Show Gist options
  • Save JacobCallahan/3776356297c8a0f180f369ae4a4a1069 to your computer and use it in GitHub Desktop.
Save JacobCallahan/3776356297c8a0f180f369ae4a4a1069 to your computer and use it in GitHub Desktop.
create stuff and do the things
#!/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