class php::dpa { file { '/etc/apt/trusted.gpg.d/deb.sury.org-php.gpg': ensure => present, owner => "root", group => "root", mode => "0644", source => 'puppet:///modules/php/deb.sury.org.gpg', } file { '/etc/apt/sources.list.d/php.list': ensure => present, owner => "root", group => "root", mode => "0644", content => "deb https://packages.sury.org/php/ ${::lsbdistcodename} main\n", require => File['/etc/apt/trusted.gpg.d/deb.sury.org-php.gpg'], notify => Exec['php-apt-auto-update'], } exec { 'php-apt-auto-update': command => "/usr/bin/apt-get update", user => "root", refreshonly => true, } }