This might be OT, but it is CentOS related. I've been running Ansible on C7 for a handful of months now, and updated to 2.4 as soon as it was available. I've been building inventories by hand in that time (mostly due to the fact we had no actual documentation on the managed external customer servers). However, as we have a multiple VMware clusters, thought it might be time to tinker with dynamic inventories. The problem is that the vmware_inventory.py script didn't come with 2.4 in CentOS 7, even though it's in the stable branch. I'm curious, is this a deliberate omission on the CentOS maintainers part? I couldn't find a package that included it.
Am I missing something obvious?
On 11/08/2017 10:37 AM, Mark Haney wrote:
The problem is that the vmware_inventory.py script didn't come with 2.4 in CentOS 7, even though it's in the stable branch. I'm curious, is this a deliberate omission on the CentOS maintainers part?
Both the Fedora package and the vendor's package build script rely on "setup.py install" to install the majority of packaged files, and Ansible's setup.py doesn't appear to do anything with the contrib directory, where the dynamic inventory scripts live. It doesn't look like the decision to omit those files was made by downstream packagers.
My understanding is that those scripts are intended to be modified to fit the environment where they're used. It *might* be useful to include them as "documentation" in the rpm package, but that doesn't seem like it would save much over making them available via the source repository.
On 11/08/2017 12:37 PM, Mark Haney wrote:
This might be OT, but it is CentOS related. I've been running Ansible on C7 for a handful of months now, and updated to 2.4 as soon as it was available. I've been building inventories by hand in that time (mostly due to the fact we had no actual documentation on the managed external customer servers). However, as we have a multiple VMware clusters, thought it might be time to tinker with dynamic inventories. The problem is that the vmware_inventory.py script didn't come with 2.4 in CentOS 7, even though it's in the stable branch. I'm curious, is this a deliberate omission on the CentOS maintainers part? I couldn't find a package that included it.
Am I missing something obvious?
If you are talking about this Ansible:
https://git.centos.org/summary/rpms!ansible
Then that is as provided by Red Hat for RHEL-7 Extras. We (I) don't make any changes to the source code, it is built source code as released for RHEL.
As to why the do things or do not do things, I have no idea.
Yeah, it's the Extras repo Ansible package. So, my next (probably stupid) question, is there a way to get the vmware_inventory plugin setup on my system?
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon Virus-free. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Thu, Nov 9, 2017 at 6:18 AM, Johnny Hughes johnny@centos.org wrote:
On 11/08/2017 12:37 PM, Mark Haney wrote:
This might be OT, but it is CentOS related. I've been running Ansible on C7 for a handful of months now, and updated to 2.4 as soon as it was available. I've been building inventories by hand in that time (mostly due to the fact we had no actual documentation on the managed external customer servers). However, as we have a multiple VMware clusters, thought it might be time to tinker with dynamic inventories. The problem is that the vmware_inventory.py script didn't come with 2.4 in CentOS 7, even though it's in the stable branch. I'm curious, is this a deliberate omission on the CentOS maintainers part? I couldn't find a package that included it.
Am I missing something obvious?
If you are talking about this Ansible:
https://git.centos.org/summary/rpms!ansible
Then that is as provided by Red Hat for RHEL-7 Extras. We (I) don't make any changes to the source code, it is built source code as released for RHEL.
As to why the do things or do not do things, I have no idea.
CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
On 11/09/2017 04:01 AM, Mark Haney wrote:
Yeah, it's the Extras repo Ansible package. So, my next (probably stupid) question, is there a way to get the vmware_inventory plugin setup on my system?
There are useful examples here: http://docs.ansible.com/ansible/latest/intro_dynamic_inventory.html
Basically, download the vmware_inventory py and ini files, currently: https://raw.githubusercontent.com/ansible/ansible/devel/contrib/inventory/vm... https://raw.githubusercontent.com/ansible/ansible/devel/contrib/inventory/vm...
Save them wherever you normally keep your inventory. Mark the py file executable. Customize it if necessary. Indicate that it should be used, with the "-i" flag to ansible-playbook.