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

From: Mike DePaulo [mailto:mikedep...@redhat.com]
Sent: March 24, 2021 2:30 PM
To: Briand, Sheldon <sheldon.bri...@nrc-cnrc.gc.ca>
Cc: Brian Bouterse <bmbou...@redhat.com>; David Davis <davidda...@redhat.com>; 
pulp-list@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.bri...@nrc-cnrc.gc.ca<mailto:sheldon.bri...@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:bmbou...@redhat.com<mailto:bmbou...@redhat.com>]
Sent: March 24, 2021 1:14 PM
To: David Davis <davidda...@redhat.com<mailto:davidda...@redhat.com>>
Cc: Briand, Sheldon 
<sheldon.bri...@nrc-cnrc.gc.ca<mailto:sheldon.bri...@nrc-cnrc.gc.ca>>; 
pulp-list@redhat.com<mailto:pulp-list@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 
<davidda...@redhat.com<mailto:davidda...@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.bri...@nrc-cnrc.gc.ca<mailto:sheldon.bri...@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@redhat.com<mailto:Pulp-list@redhat.com>
https://listman.redhat.com/mailman/listinfo/pulp-list
_______________________________________________
Pulp-list mailing list
Pulp-list@redhat.com<mailto:Pulp-list@redhat.com>
https://listman.redhat.com/mailman/listinfo/pulp-list
_______________________________________________
Pulp-list mailing list
Pulp-list@redhat.com<mailto:Pulp-list@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/>


_______________________________________________
Pulp-list mailing list
Pulp-list@redhat.com
https://listman.redhat.com/mailman/listinfo/pulp-list

Reply via email to