Loading manifests/conf.pp +1 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ define apache::conf( } exec { "a2enconf ${conf_id}": command => "a2enconf ${conf_id}", path => '/usr/sbin', refreshonly => true, require => File["/etc/apache2/conf-available/$conf_id"], notify => Exec['apache reload'], Loading manifests/debian.pp +2 −0 Original line number Diff line number Diff line Loading @@ -46,9 +46,11 @@ class apache::debian::old { # Releases jessie and newer class apache::debian::new { # Note: the readlink executable comes from the coreutils package. exec { 'a2dissite 000-default.conf': command => 'a2dissite 000-default.conf', onlyif => 'readlink /etc/apache2/sites-enabled/000-default.conf', path => '/bin:/usr/sbin', require => Package['apache'], } Loading manifests/module.pp +1 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ define apache::module($ensure) { # Enable or disable the module using a2enmod or a2dismod. exec { $cmd: command => $cmd, path => '/usr/sbin', require => Package['apache'], unless => "[ $condition ]", notify => Exec['apache reload']; Loading Loading
manifests/conf.pp +1 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ define apache::conf( } exec { "a2enconf ${conf_id}": command => "a2enconf ${conf_id}", path => '/usr/sbin', refreshonly => true, require => File["/etc/apache2/conf-available/$conf_id"], notify => Exec['apache reload'], Loading
manifests/debian.pp +2 −0 Original line number Diff line number Diff line Loading @@ -46,9 +46,11 @@ class apache::debian::old { # Releases jessie and newer class apache::debian::new { # Note: the readlink executable comes from the coreutils package. exec { 'a2dissite 000-default.conf': command => 'a2dissite 000-default.conf', onlyif => 'readlink /etc/apache2/sites-enabled/000-default.conf', path => '/bin:/usr/sbin', require => Package['apache'], } Loading
manifests/module.pp +1 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,7 @@ define apache::module($ensure) { # Enable or disable the module using a2enmod or a2dismod. exec { $cmd: command => $cmd, path => '/usr/sbin', require => Package['apache'], unless => "[ $condition ]", notify => Exec['apache reload']; Loading