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

Adds pulp-content role for the pulp_content_app #64

Merged
merged 2 commits into from
Jan 24, 2019

Conversation

dkliban
Copy link
Member

@dkliban dkliban commented Jan 16, 2019

@dkliban dkliban force-pushed the content-app branch 2 times, most recently from 8afa0a4 to 05eb509 Compare January 16, 2019 23:10
Copy link
Contributor

@asmacdo asmacdo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition to the comments, could you please also add this to the user-sandbox.yml playbook?

Looks great thanks!


* `ansible_python_interpreter`: **Required**. Path to the Python interpreter.

This role **is not tightly coupled** with the `pulp3-postgresql` role, but it does
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/pulp3-postgresql/pulp3/


[Service]
EnvironmentFile=-/etc/default/pulp_workers
EnvironmentFile=-/etc/default/pulp_workers_%i
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be sharing environment files with the workers?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so. That is supposed to source this file's contents but that doesn't even make sense anymore for pulp3 anyway and should be removed (I think). Does this make sense to you?

systemd:
daemon_reload: true
name: pulp_content_app.service
state: started
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably use the state from the pulp_content_app.started.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

group: root
mode: 0644
notify: Reload systemd and restart pulp content app
become: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

both of these tasks should move into a block with become: true since they need to be run as the same user in all cases.

platforms:
- name: Fedora
versions:
- 28
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since our tests use f27 and centos, I think we should include them too.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realize that you probably did it this way to mirror the workers role, which is also missing those platforms. Would you mind changing that as well while we are thinking about it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fedora 27 is end of life, IMO we should disinclude it both here and with the tests, and use F28+

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

=============

Install, configure, and set the state of pulp content app.

Copy link
Contributor

@asmacdo asmacdo Jan 17, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should also document the pulp_content_app variable even though it has a default.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of using and documenting the variable, I removed it

@@ -5,3 +5,4 @@
- pulp3-workers
- pulp3-resource-manager
- pulp3-webserver
- pulp3-content
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A+

@bmbouter
Copy link
Member

@asmacdo I don't think we'll get any of these changes for several weeks from @dkliban, but we need it before then. One option is to push to content-app on dkliban/ansible-pulp3 which would include these additions in this PR. Or merge and make a followon PR? Or file issues?

@asmacdo
Copy link
Contributor

asmacdo commented Jan 17, 2019

@bmbouter sounds good. I'll take this issue as assigned and make the changes.

Copy link
Contributor

@CodeHeeler CodeHeeler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, makes sense--assuming latest round of tests passed, approved!

@asmacdo asmacdo merged commit 3a632e2 into pulp:master Jan 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants