Report abuse

1
2
3
4
5
6
7
8
9
10
        exec { "apt-get-update":
                refreshonly => true,
                command => "/usr/bin/apt-get update",
        }

        # automatic update before executing some apt-get stuff
        Package {
                provider => "apt",
                require  => Exec["apt-get-update"],
        }