Skip to content

bmbouter/pulp_ansible

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 1164 commits behind pulp:main.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Pulp Ansible

This is the pulp_ansible repository which provides Pulp with the ability to manage Ansible content e.g. Roles.

All REST API examples below use httpie to perform the requests.

Install pulpcore

Follow the installation instructions provided with pulpcore.

Install plugin

Define installation steps here.

From source

Define installation steps here.

Install from PyPI

Define installation steps here.

Create a repository foo

$ http POST http://localhost:8000/api/v3/repositories/ name=foo

Add an Importer to repository foo

Add important details about your Importer and provide examples.

$ http POST http://localhost:8000/api/v3/repositories/foo/importers/ansible-importer/

{
    "_href": "http://localhost:8000/api/v3/repositories/foo/importers/ansible-importer/bar/",
    ...
}

Add a Publisher to repository foo

$ http POST http://localhost:8000/api/v3/repositories/foo/publishers/ansible-publisher/ name=bar

{
    "_href": "http://localhost:8000/api/v3/repositories/foo/publishers/ansible-publisher/bar/",
    ...
}

Add a Distribution to Publisher bar

$ http POST http://localhost:8000/api/v3/repositories/foo/publishers/ansible-publisher/bar/distributions/ some=params

Sync repository foo using Importer bar

Use plugin-template Importer:

http POST http://localhost:8000/api/v3/repositories/foo/importers/ansible-importer/bar/sync/

Add content to repository foo

$ http POST http://localhost:8000/api/v3/repositorycontents/ repository='http://localhost:8000/api/v3/repositories/foo/' content='http://localhost:8000/api/v3/content/ansible-publisher/a9578a5f-c59f-4920-9497-8d1699c112ff/'

Create a Publication using Publisher bar

Dispatch the Publish task

$ http POST http://localhost:8000/api/v3/repositories/foo/publishers/ansible-publisher/bar/publish/

[
    {
        "_href": "http://localhost:8000/api/v3/tasks/fd4cbecd-6c6a-4197-9cbe-4e45b0516309/",
        "task_id": "fd4cbecd-6c6a-4197-9cbe-4e45b0516309"
    }
]

Check status of a task

$ http GET http://localhost:8000/api/v3/tasks/82e64412-47f8-4dd4-aa55-9de89a6c549b/

Download foo.tar.gz from Pulp

$ http GET http://localhost:8000/content/foo/foo.tar.gz

About

A Pulp plugin that manages Ansible content, i.e. roles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%