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

后端 未结 8 1213
青春惊慌失措
青春惊慌失措 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 12:05

    Package that needs updating APT lists should require Class['apt::update']

    package { "zend-server-ce-php-5.2":
       ensure => "latest",
       require => Class['apt::update']
    }
    

    If you're using custom APT source, just ensure correct ordering:

    Apt::Source['my_source'] 
    -> Class['apt::update']
    

提交回复
热议问题