I\'m trying to create puppet module which automates installation of zend server CE, this is not important here, but steps are as following
You need to specify the dependency relationships. The easiest/cleanest approach is to use the require parameter which is available for all resource types.
package { "zend-server-ce-php-5.2": ensure => latest, require => Exec['apt-get update'], }
etc..