How do I determine the OS type and if it is 32 or 64 bit?
I have a task to run an installer on all sorts of machines. I got to the point in which I am able to copy files and execute them and now have the following challenge: I am not sure what's on the other side? from a process stand point I don't always know what kind of linux it is or if it is windows, I don't know if it is 32 bit or 64 bit? I want to be able to deploy my class to the target environment and that it will determine the os vendor and if it is 32 or 64 bit and according to that copy and execute the right rile?
Have anybody done something similar or know how I can determine the OS and 32/64 bit from a puppet class?