Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Let Pulp 3 dev be installed on non-vagrant hosts #114

Merged
merged 1 commit into from Feb 22, 2018
Merged

Let Pulp 3 dev be installed on non-vagrant hosts #114

merged 1 commit into from Feb 22, 2018

Conversation

Ichimonji10
Copy link

@Ichimonji10 Ichimonji10 commented Feb 21, 2018

The Pulp 3 dev installer makes use of several local git repositories.
For example, /home/vagrant/devel/pulp must be present. The current
installer enforces this mandate by asserting that those directories are
present.

Don't require that these directories already exist. Instead, use them
as-is if they're present, and clone them if not. This allows Pulp dev
environments to be created on non-Vagrant hosts.

Beware that there are some nasty issues with the dev installer. For
example, the installer assumes that Ansible is connecting to the host as
user "vagrant." (This assumption is reasonable when Vagrant is used as
the VM management tool, but it's unreasonable for development hosts more
generally.) If Ansible connects as, say, root, then files and
directories owned by root will be created in /home/vagrant.

See: https://pulp.plan.io/issues/3318

@Ichimonji10
Copy link
Author

Ichimonji10 commented Feb 21, 2018

Successfully tested against a Fedora 26 host. After installing, I logged in and executed the following:

systemctl stop firewalld
su - vagrant
source ~/.virtualenvs/pulp/bin/activate
pulp-manager runserver 0.0.0.0:8000

I then tested it with Pulp Smash.

Only pulpcore is installed, in combination with #115.

The Pulp 3 dev installer makes use of several local git repositories.
For example, `/home/vagrant/devel/pulp` must be present. The current
installer enforces this mandate by asserting that those directories are
present.

Don't require that these directories already exist. Instead, use them
as-is if they're present, and clone them if not. This allows Pulp dev
environments to be created on non-Vagrant hosts.

Beware that there are some nasty issues with the dev installer. For
example, the installer assumes that Ansible is connecting to the host as
user "vagrant." (This assumption is reasonable when Vagrant is used as
the VM management tool, but it's unreasonable for development hosts more
generally.) If Ansible connects as, say, root, then files and
directories owned by root will be created in `/home/vagrant`.

See: https://pulp.plan.io/issues/3318
Copy link
Member

@dkliban dkliban left a comment

Choose a reason for hiding this comment

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

Thank you!

@dkliban
Copy link
Member

dkliban commented Feb 21, 2018

Tested this with my vagrant environment. Pulp works as expected after vagrant up.

@dkliban dkliban merged commit 5eacaca into pulp:3.0-dev Feb 22, 2018
@Ichimonji10 Ichimonji10 deleted the non-vagrant branch February 22, 2018 16:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants