Skip to content

Commit

Permalink
Update docs for changed Pulp 3 Default Ports
Browse files Browse the repository at this point in the history
https://pulp.plan.io/issues/4594

Content: 8080 -> 24816
API: 8000 -> 24817

[noissue]
Required PR: pulp/pulpcore#75
  • Loading branch information
mikedep333 authored and Katharina committed Oct 5, 2020
1 parent eba7f12 commit 2e33e56
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
6 changes: 3 additions & 3 deletions docs/installation.rst
Expand Up @@ -40,7 +40,7 @@ From Source
source ~/pulpvenv/bin/activate
cd pulp_deb
pip install -e .
django-admin runserver
django-admin runserver 24817
Make and Run Migrations
-----------------------
Expand All @@ -56,8 +56,8 @@ Run Services

.. code-block:: bash
django-admin runserver
gunicorn pulpcore.content:server --bind 'localhost:8080' --worker-class 'aiohttp.GunicornWebWorker' -w 2
django-admin runserver 24817
gunicorn pulpcore.content:server --bind 'localhost:24816' --worker-class 'aiohttp.GunicornWebWorker' -w 2
sudo systemctl restart pulp-resource-manager
sudo systemctl restart pulp-worker@1
sudo systemctl restart pulp-worker@2
2 changes: 1 addition & 1 deletion docs/workflows/index.rst
Expand Up @@ -22,7 +22,7 @@ accordingly. If you prefer to specify the username and password with each reques
To make these workflows copy/pastable, we make use of environment variables. The first variable to
set is the hostname and port::

$ export BASE_ADDR=http://<hostname>:8000
$ export BASE_ADDR=http://<hostname>:24817


.. toctree::
Expand Down
6 changes: 3 additions & 3 deletions docs/workflows/publish.rst
Expand Up @@ -15,7 +15,7 @@ $ http POST $BASE_ADDR/pulp/api/v3/publishers/deb/default/ name=bar
Response::

{
"_href": "http://localhost:8000/pulp/api/v3/repositories/foo/publishers/deb/default/1/",
"_href": "http://localhost:24817/pulp/api/v3/repositories/foo/publishers/deb/default/1/",
...
}

Expand All @@ -35,7 +35,7 @@ Response::

[
{
"_href": "http://localhost:8000/pulp/api/v3/tasks/fd4cbecd-6c6a-4197-9cbe-4e45b0516309/",
"_href": "http://localhost:24817/pulp/api/v3/tasks/fd4cbecd-6c6a-4197-9cbe-4e45b0516309/",
"task_id": "fd4cbecd-6c6a-4197-9cbe-4e45b0516309"
}
]
Expand All @@ -51,7 +51,7 @@ $ http POST $BASE_ADDR/pulp/api/v3/distributions/ name='baz' base_path='foo' pub
Response::

{
"_href": "http://localhost:8000/pulp/api/v3/distributions/1/",
"_href": "http://localhost:24817/pulp/api/v3/distributions/1/",
...
}

18 changes: 9 additions & 9 deletions docs/workflows/sync.rst
Expand Up @@ -14,7 +14,7 @@ Start by creating a new repository named "foo"::
Response::

{
"_href": "http://localhost:8000/pulp/api/v3/repositories/1/",
"_href": "http://localhost:24817/pulp/api/v3/repositories/1/",
...
}

Expand All @@ -29,7 +29,7 @@ Creating a remote object informs Pulp about an external content source.
.. code:: json
{
"_href": "http://localhost:8000/pulp/pulp/api/v3/remotes/deb/apt/1/",
"_href": "http://localhost:24817/pulp/pulp/api/v3/remotes/deb/apt/1/",
...
}
Expand All @@ -40,12 +40,12 @@ Sync repository foo with remote
Use the remote object to kick off a synchronize task by specifying the repository to
sync with. You are telling pulp to fetch content from the remote and add to the repository::

$ http POST $BASE_ADDR/pulp/pulp/api/v3/remotes/deb/apt/1/sync/' repository=http://localhost:8000/pulp/api/v3/repositories/1/
$ http POST $BASE_ADDR/pulp/pulp/api/v3/remotes/deb/apt/1/sync/' repository=http://localhost:24817/pulp/api/v3/repositories/1/

Response::

{
"_href": "http://localhost:8000/pulp/api/v3/tasks/3896447a-2799-4818-a3e5-df8552aeb903/",
"_href": "http://localhost:24817/pulp/api/v3/tasks/3896447a-2799-4818-a3e5-df8552aeb903/",
"task_id": "3896447a-2799-4818-a3e5-df8552aeb903"
}

Expand All @@ -57,10 +57,10 @@ synchroinze task completes, it creates a new version, which is specified in ``cr
Response::

{
"_href": "http://localhost:8000/pulp/api/v3/tasks/3896447a-2799-4818-a3e5-df8552aeb903/",
"_href": "http://localhost:24817/pulp/api/v3/tasks/3896447a-2799-4818-a3e5-df8552aeb903/",
"_created": "2018-05-01T17:17:46.558997Z",
"created_resources": [
"http://localhost:8000/pulp/api/v3/repositories/593e2fa9-af64-4d4b-aa7b-7078c96f2443/versions/6/"
"http://localhost:24817/pulp/api/v3/repositories/593e2fa9-af64-4d4b-aa7b-7078c96f2443/versions/6/"
],
"error": null,
"finished_at": "2018-05-01T17:17:47.149123Z",
Expand All @@ -72,20 +72,20 @@ Response::
"message": "Add Content",
"state": "completed",
"suffix": "",
"task": "http://localhost:8000/pulp/api/v3/tasks/3896447a-2799-4818-a3e5-df8552aeb903/",
"task": "http://localhost:24817/pulp/api/v3/tasks/3896447a-2799-4818-a3e5-df8552aeb903/",
"total": 0
},
{
"done": 0,
"message": "Remove Content",
"state": "completed",
"suffix": "",
"task": "http://localhost:8000/pulp/api/v3/tasks/3896447a-2799-4818-a3e5-df8552aeb903/",
"task": "http://localhost:24817/pulp/api/v3/tasks/3896447a-2799-4818-a3e5-df8552aeb903/",
"total": 0
}
],
"spawned_tasks": [],
"started_at": "2018-05-01T17:17:46.644801Z",
"state": "completed",
"worker": "http://localhost:8000/pulp/api/v3/workers/eaffe1be-111a-421d-a127-0b8fa7077cf7/"
"worker": "http://localhost:24817/pulp/api/v3/workers/eaffe1be-111a-421d-a127-0b8fa7077cf7/"
}
12 changes: 6 additions & 6 deletions docs/workflows/upload.rst
Expand Up @@ -11,7 +11,7 @@ If you don't already have a repository, create one::
Response::

{
"_href": "http://localhost:8000/pulp/api/v3/repositories/1/",
"_href": "http://localhost:24817/pulp/api/v3/repositories/1/",
...
}

Expand All @@ -26,7 +26,7 @@ Each artifact in Pulp represents a file. They can be created during sync or crea
Response::

{
"_href": "http://localhost:8000/pulp/api/v3/artifacts/1/",
"_href": "http://localhost:24817/pulp/api/v3/artifacts/1/",
...
}

Expand All @@ -36,13 +36,13 @@ Create content from an artifact

Now that Pulp has the content, its time to make it into a unit of content.

$ http POST $BASE_ADDR/pulp/api/v3/content/deb/packages/ _artifact=http://localhost:8000/pulp/api/v3/artifacts/1/ filename=my_content
$ http POST $BASE_ADDR/pulp/api/v3/content/deb/packages/ _artifact=http://localhost:24817/pulp/api/v3/artifacts/1/ filename=my_content

Response::

{
"_href": "http://localhost:8000/pulp/api/v3/content/deb/packages/1/",
"artifact": "http://localhost:8000/pulp/api/v3/artifacts/1/",
"_href": "http://localhost:24817/pulp/api/v3/content/deb/packages/1/",
"artifact": "http://localhost:24817/pulp/api/v3/artifacts/1/",
"digest": "b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c",
"filename": "my-content",
"_type": "deb.packages"
Expand All @@ -53,4 +53,4 @@ Add content to a repository

Once there is a content unit, it can be added and removed and from to repositories::

$ http POST $REPO_HREF/pulp/api/v3/repositories/1/versions/ add_content_units:="[\"http://localhost:8000/pulp/api/v3/content/deb/packages/1/\"]"
$ http POST $REPO_HREF/pulp/api/v3/repositories/1/versions/ add_content_units:="[\"http://localhost:24817/pulp/api/v3/content/deb/packages/1/\"]"

0 comments on commit 2e33e56

Please sign in to comment.