[Pulp-list] using ansible to install azure backend

Briand, Sheldon Sheldon.Briand at nrc-cnrc.gc.ca
Wed Mar 24 17:52:23 UTC 2021


Thanks Mike!  I’ll try that.  I hadn’t tried the other way yet.

From: Mike DePaulo [mailto:mikedep333 at redhat.com]
Sent: March 24, 2021 2:30 PM
To: Briand, Sheldon <Sheldon.Briand at nrc-cnrc.gc.ca>
Cc: Brian Bouterse <bmbouter at redhat.com>; David Davis <daviddavis at redhat.com>; pulp-list at redhat.com
Subject: Re: [Pulp-list] using ansible to install azure backend


***ATTENTION*** This email originated from outside of the NRC. ***ATTENTION*** Ce courriel provient de l'extérieur du CNRC
Hi Sheldon,

FYI: A better solution in the meantime is to run the installer with the following variable set:
prereq_pip_packages:
  - Jinja2
  - django-storages[azure]

The current installer docs incorrectly document prereq_pip_packages, so I just submitted a PR<https://github.com/pulp/pulp_installer/pull/566> to correct them.


I also wrote up a task for us to implement a better way of installing it into the installer.
(Also to document usage variables in the installer docs.)
https://pulp.plan.io/issues/8446

-Mike

On Wed, Mar 24, 2021 at 12:27 PM Briand, Sheldon <Sheldon.Briand at nrc-cnrc.gc.ca<mailto:Sheldon.Briand at nrc-cnrc.gc.ca>> wrote:
Hi Brian,

Thanks for your reply.  I will try doing it manually using the pip environment and let everyone know how it goes.

-Sheldon

From: Brian Bouterse [mailto:bmbouter at redhat.com<mailto:bmbouter at redhat.com>]
Sent: March 24, 2021 1:14 PM
To: David Davis <daviddavis at redhat.com<mailto:daviddavis at redhat.com>>
Cc: Briand, Sheldon <Sheldon.Briand at nrc-cnrc.gc.ca<mailto:Sheldon.Briand at nrc-cnrc.gc.ca>>; pulp-list at redhat.com<mailto:pulp-list at redhat.com>
Subject: Re: [Pulp-list] using ansible to install azure backend


***ATTENTION*** This email originated from outside of the NRC. ***ATTENTION*** Ce courriel provient de l'extérieur du CNRC
I agree with @daviddavis. I think the installer would benefit from docs on how to configure django-storages for S3 and Azure as basic examples. I think the process is roughly:

1) Make sure the pulpcore[azure] pip extras is installed in the virtualenv:  https://github.com/pulp/pulpcore/blob/483abb5c4e8a048db4a8bd39f88c12617cf4b047/setup.py#L25-L30
2) Configure django-storages, which you can set via settings through the pulp_settings var entirely through the

I believe (1) is not available in the installer today and I'm hoping @mikedep333 can reply about what can be done there. As a workaround you could install it manually into the virtualenv onto the target system, let us know if you want more info on that.


On Wed, Mar 24, 2021 at 11:15 AM David Davis <daviddavis at redhat.com<mailto:daviddavis at redhat.com>> wrote:
To clarify, you're talking about having to install the django-storages packages[0]?

I don't know if this exists today in the installer (maybe someone from the pulp_installer team can confirm) but it would be great to have support for setting up pulp to use non-fs storage backends.

With using pip, I think you just need to be sure you're using the pulp virtualenv that the installer creates ($ workon pulp).

[0] https://docs.pulpproject.org/pulpcore/installation/storage.html#configuring-pulp

David


On Tue, Mar 23, 2021 at 9:55 AM Briand, Sheldon <Sheldon.Briand at nrc-cnrc.gc.ca<mailto:Sheldon.Briand at nrc-cnrc.gc.ca>> wrote:
Hi,

I see instructions for using pip to install storage back ends.  I’m wondering if there is any way to install the storage back ends using ansible.  If I have used ansible to install pulp3 are there any tricks (or dangers) I need to know when using pip to install the storage back ends?

Thanks,
-Sheldon

_______________________________________________
Pulp-list mailing list
Pulp-list at redhat.com<mailto:Pulp-list at redhat.com>
https://listman.redhat.com/mailman/listinfo/pulp-list
_______________________________________________
Pulp-list mailing list
Pulp-list at redhat.com<mailto:Pulp-list at redhat.com>
https://listman.redhat.com/mailman/listinfo/pulp-list
_______________________________________________
Pulp-list mailing list
Pulp-list at redhat.com<mailto:Pulp-list at redhat.com>
https://listman.redhat.com/mailman/listinfo/pulp-list


--

Mike DePaulo

He / Him / His

Service Reliability Engineer, Pulp

Red Hat<https://www.redhat.com/>

IM: mikedep333

GPG: 51745404
[Image removed by sender.]<https://www.redhat.com/>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20210324/6facb0d2/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 548 bytes
Desc: image002.jpg
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20210324/6facb0d2/attachment.jpg>


More information about the Pulp-list mailing list