Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Populate product_name and system_vendor facts on Solaris #44114
The first line of
The existing code assumes that the model name consists of three words, with the middle word being "Enterprise". Whilst this is often true for recent Oracle hardware, it isn't true for a lot of other equipment that's still out there. By using a hard-coded list of known manufacturers, we can make a better attempt at separating the two parts.
$ ansible -m setup sparc-server | egrep 'system_vendor|product_name' <no output>
$ ansible -m setup sparc-server | egrep 'system_vendor|product_name' "ansible_product_name": "Sun Fire V120 (UltraSPARC-IIe 648MHz)", "ansible_system_vendor": "Sun Microsystems",
Tested with solaris 10 and solaris 11 under vmware.
after patch(es) applied: