Solaris architecture fact should always be hardwareisa!!!!
While testing solaris deployment on foreman 1.0.1 stable I recognized that fore some Solaris hosts the architecture is reported as sun4u and for some others it is sparc.
This is a big problem and looking at the code:
def architecture # On solaris architecture fact is harwareisa name = facts[:architecture] || facts[:hardwareisa]
this tells me why. If there is no good reason to use architecture on Solaris I would suggest to always use hardwareisa instead. On older versions of facter (1.5.8) on Solaris the fact architecture doesn't exist and so the correct fact hardwareisa is used. On newer versions of facter the architecture fact exists on Solaris and so foreman uses it. This is a problem when trying to deploy a new Solaris host. If the architecture is set to sun4u all the required fields are not created on the dhcp server.
#2 Updated by Oliver Weinmann almost 10 years ago
No Problem. Just did.
Hopefully this time it is correct. :)