Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Rename pulpcore-content-app to pulpcore-content
Browse files Browse the repository at this point in the history
  • Loading branch information
goosemania committed Oct 3, 2019
1 parent c69124a commit 42e08bb
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion roles/pulp-content/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Variables:

* `pulp_content_bind`: Interface and Port where Pulp Content `gunicorn` service will listen.

This variable is the value used to render the `pulpcore-content-app.service.j2` template passing
This variable is the value used to render the `pulpcore-content.service.j2` template passing
to the `--bind` parameter of the gunicorn service.

Defaults to `127.0.0.1:24816`
Expand Down
2 changes: 1 addition & 1 deletion roles/pulp-content/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
- name: Reload systemd and restart pulp content app
systemd:
daemon_reload: true
name: pulpcore-content-app.service
name: pulpcore-content.service
state: restarted
become: true
8 changes: 4 additions & 4 deletions roles/pulp-content/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
- block:
- name: Install pulpcore-content-app service file
- name: Install pulpcore-content service file
template:
src: pulpcore-content-app.service.j2
dest: /lib/systemd/system/pulpcore-content-app.service
src: pulpcore-content.service.j2
dest: /lib/systemd/system/pulpcore-content.service
owner: root
group: root
mode: 0644
Expand All @@ -12,7 +12,7 @@
- name: Set state of pulp content app
systemd:
daemon_reload: true
name: pulpcore-content-app.service
name: pulpcore-content.service
state: started
enabled: true
become: true
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Wants=network-online.target
Environment="DJANGO_SETTINGS_MODULE=pulpcore.app.settings"
Environment="PATH={{ pulp_install_dir }}/bin:{{ default_bin_path }}"
User={{ pulp_user }}
WorkingDirectory=/var/run/pulpcore-content-app/
RuntimeDirectory=pulpcore-content-app
WorkingDirectory=/var/run/pulpcore-content/
RuntimeDirectory=pulpcore-content
ExecStart={{ pulp_install_dir }}/bin/gunicorn pulpcore.content:server \
--bind '{{ pulp_content_bind }}' \
--worker-class 'aiohttp.GunicornWebWorker' \
Expand Down
2 changes: 1 addition & 1 deletion roles/pulp-devel/files/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"content": {
"port": 24816,
"scheme": "http",
"service": "pulpcore-content-app",
"service": "pulpcore-content",
"verify": false
},
"pulp resource manager": {},
Expand Down
2 changes: 1 addition & 1 deletion roles/pulp-devel/templates/alias.bashrc.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# If adding new functions to this file, note that you can add help text to the function
# by defining a variable with name _<function>_help containing the help text

SERVICES=("pulpcore-content-app pulpcore-worker@1 pulpcore-worker@2 pulpcore-resource-manager pulpcore-api")
SERVICES=("pulpcore-content pulpcore-worker@1 pulpcore-worker@2 pulpcore-resource-manager pulpcore-api")

_paction() {
echo systemctl $@ ${SERVICES}
Expand Down
2 changes: 1 addition & 1 deletion roles/pulp-webserver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pulp-webserver
Install, configure, start, and enable a web server.

Currently, Nginx and Apache are supported. They are configured as a reverse proxy to the pulpcore-api
and pulpcore-content-app Gunicorn processes.
and pulpcore-content Gunicorn processes.


Variables:
Expand Down
2 changes: 1 addition & 1 deletion roles/pulp-webserver/templates/nginx.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ http {
proxy_redirect off;
proxy_pass http://pulp;

# This routes to both the pulpcore-content-app and the pulpcore-api
# This routes to both the pulpcore-content and the pulpcore-api
# as if they are one service because both services allow for
# plugin writers to configure arbitrary url handlers.
proxy_next_upstream http_404; # Try the other service upon 404
Expand Down

0 comments on commit 42e08bb

Please sign in to comment.