With Debian 7 (Debian wheezy), Debian introduced multiarch.
If you are running on a 64-bit system, you can install 32-bit
libraries as well. Using Puppet, you could install the 32-bit
version of zlib1g with Puppet code like this:
This works, but it would be nice to have native support for
multiarch in Puppet. (The code has at least two problems: it
does not ensure that the architecture is added before it
attempts to install the package, and you must run
"apt-get update" between adding the arch and installing
I don't know exactly what I want, but maybe something like this:
Or maybe just that the "package" type should know about the
":arch" suffix and automatically run "/usr/bin/dpkg --add-architecture"
Possibly, you should also add a new type so that you can explicitly
manage which architectures are enabled on the system.