Run `apt-get update` before installing other packages with Puppet

后端 未结 8 1201
青春惊慌失措
青春惊慌失措 2020-12-07 11:21

I\'m trying to create puppet module which automates installation of zend server CE, this is not important here, but steps are as following

  1. update /etc/apt/sour
8条回答
  •  执念已碎
    2020-12-07 11:50

    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..

提交回复
热议问题