Last active
June 4, 2018 15:10
-
-
Save duritong/8003827 to your computer and use it in GitHub Desktop.
Creating a pulp upload user
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
$ pulp-admin auth user create --login jenkins --password xxx | |
$ pulp-admin auth permission grant --login=jenkins --resource="/v2/content/uploads/" -o read -o update -o create -o delete | |
$ pulp-admin auth permission grant --login=jenkins --resource="/v2/tasks/" -o read | |
$ pulp-admin auth permission grant --login=jenkins --resource="/v2/repositories/my-repo/actions/import_upload/" -o create -o execute -o read -o update | |
$ pulp-admin auth permission grant --login=jenkins --resource="/v2/repositories/my-repo/actions/publish/" -o execute | |
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
$ yum install pulp-admin-client pulp-rpm-admin-extensions | |
$ sed -i 's/host = .*/host = pulp/' /etc/pulp/admin/admin.conf | |
$ pulp-admin login -u jenkins --password xxxx | |
$ pulp-admin rpm repo uploads rpm --repo-id my-repo --file /tmp/my.rpm | |
$ pulp-admin rpm repo publish --repo-id my-repo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You also need to give READ on the repo endpoint, see my forked gist for details.
Excellent writeup however, helped me a lot :)
https://gist.github.com/vtsingaras/21f933a5c72fa84265bfe165b2bb3038#file-1-server-sh