Re: Packaging of Ansible collections

2020-02-10 Thread Bill Nottingham
James Cassell (fedoraproj...@cyberpear.com) said: 
> > > I guess if would be enough to put the files somewhere under
> > > /usr/share/ansible, but not sure. Also I'm not sure what download URL 
> > > could
> > > be used.
> > 
> > What is the goal of downstream collection packaging here - what collections
> > are you looking to package and why?
> 
> Same reason as openshift-ansible or ceph-ansible or ansible-freeipa, or
> any pip-installable package.  Unfortunately, ansible is kicking all the
> community modules out of core, so things like ini_file won't work without
> the appropriate collection installed.

Yes, but there will be a deliverable/distribution that will be produced with
the goal of allowing playbooks to work more or less as they do now; the goal
is that community content can be maintained on its own release stream as
it's needed, but delivery can still be in the form of a larger community
package.

Bill
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: Packaging of Ansible collections

2020-02-10 Thread Igor Gnatenko
The goal is to be able to use ansible with collections installed via
RPM without having to connect to the internet.

On Mon, Feb 10, 2020 at 4:45 PM Bill Nottingham  wrote:
>
> Igor Gnatenko (ignatenkobr...@fedoraproject.org) said:
> > Hello,
> >
> > Did anybody had an experience of packaging Ansible collections into an RPM?
> >
> > I guess if would be enough to put the files somewhere under
> > /usr/share/ansible, but not sure. Also I'm not sure what download URL could
> > be used.
>
> What is the goal of downstream collection packaging here - what collections
> are you looking to package and why?
>
> Bill
> ___
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
> Fedora Code of Conduct: 
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: Packaging of Ansible collections

2020-02-10 Thread James Cassell
L
On Mon, Feb 10, 2020, at 10:33 AM, Bill Nottingham wrote:
> Igor Gnatenko (ignatenkobr...@fedoraproject.org) said: 
> > Hello,
> > 
> > Did anybody had an experience of packaging Ansible collections into an RPM?
> > 
> > I guess if would be enough to put the files somewhere under
> > /usr/share/ansible, but not sure. Also I'm not sure what download URL could
> > be used.
> 
> What is the goal of downstream collection packaging here - what collections
> are you looking to package and why?
> 

Same reason as openshift-ansible or ceph-ansible or ansible-freeipa, or any 
pip-installable package. Unfortunately, ansible is kicking all the community 
modules out of core, so things like ini_file won't work without the appropriate 
collection installed.

V/r,
James Cassell
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: Packaging of Ansible collections

2020-02-10 Thread Bill Nottingham
Igor Gnatenko (ignatenkobr...@fedoraproject.org) said: 
> Hello,
> 
> Did anybody had an experience of packaging Ansible collections into an RPM?
> 
> I guess if would be enough to put the files somewhere under
> /usr/share/ansible, but not sure. Also I'm not sure what download URL could
> be used.

What is the goal of downstream collection packaging here - what collections
are you looking to package and why?

Bill
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: Packaging of Ansible collections

2020-02-09 Thread Orion Poplawski

On 2/9/20 2:58 AM, Igor Gnatenko wrote:

Hello,

Did anybody had an experience of packaging Ansible collections into an RPM?

I guess if would be enough to put the files somewhere under 
/usr/share/ansible, but not sure. Also I'm not sure what download URL 
could be used.


It seems to me that "ansible-galaxy collection install" simply unpacks 
the tarball.  So, this seems reasonable to me:


Name: ansible-collection-%{namespace}-%{pkgname}
Source0: 
https://galaxy.ansible.com/download/%{namespace}-%{pkgname}-%{version}.tar.gz


%install
mkdir -p 
%{buildroot}%{_datadir}/ansible/collections/ansible_collections/%{namespace}/%{name}
tar xf %SOURCE0 -C 
%{buildroot}%{_datadir}/ansible/collections/ansible_collections/%{namespace}/%{pkgname}



--
Orion Poplawski
Manager of NWRA Technical Systems  720-772-5637
NWRA, Boulder/CoRA Office FAX: 303-415-9702
3380 Mitchell Lane   or...@nwra.com
Boulder, CO 80301 https://www.nwra.com/



smime.p7s
Description: S/MIME Cryptographic Signature
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: Packaging of Ansible collections

2020-02-09 Thread Nico Kadel-Garcia
On Sun, Feb 9, 2020 at 4:59 AM Igor Gnatenko
 wrote:
>
> Hello,
>
> Did anybody had an experience of packaging Ansible collections into an RPM?
>
> I guess if would be enough to put the files somewhere under 
> /usr/share/ansible, but not sure. Also I'm not sure what download URL could 
> be used.

It's a problem. Most published ansible layouts rely on local
tuning of the upstream, "reference" cookbook. Even the awx build tools
rely on an internal, local playbook to set up an ansible server in a
docker container for the "docker compose" based setups. It's not
really *friendly* to modular, static playbook setups like RPM
deployments on the ansible server.
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: Packaging of Ansible collections

2020-02-09 Thread Neal Gompa
On Sun, Feb 9, 2020 at 4:59 AM Igor Gnatenko
 wrote:
>
> Hello,
>
> Did anybody had an experience of packaging Ansible collections into an RPM?
>
> I guess if would be enough to put the files somewhere under 
> /usr/share/ansible, but not sure. Also I'm not sure what download URL could 
> be used.

The most recent example of this I know of is the openshift-ansible
playbook package:
https://github.com/openshift/openshift-ansible/blob/release-3.11/openshift-ansible.spec

But we don't have any specific guidelines for packaging playbooks and roles...


-- 
真実はいつも一つ!/ Always, there's only one truth!
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org