Displaying 1 result from an estimated 1 matches for "apt_packag".
Did you mean:
  apt_package
  
2010 Aug 31
23
Puppet + APT, I am lost...
...upgrades packages. That doesn''t seem out of the ordinary to
me, but I can''t make it work in Puppet.
The approach I like best, is this one:
    class apt-update {
        exec { "/usr/bin/aptitude update":
            refreshonly => true,
        }
    }
    define apt_package($ensure="latest") {
        include apt-update
        package { $name:
            ensure  => $ensure,
            require => Class["apt-update"],
        }
    }
    apt_package { "foo":
    }
but that doesn''t work, it doesn''t run apt-updat...