Skip to content

Commit

Permalink
Allow for pagespeed mod to automatically be updated to the latest ver…
Browse files Browse the repository at this point in the history
…sion (#1422)

* Allow for optionally ensuring to have the lastest pagespeed package, Restart apache if there is a package update
  • Loading branch information
lymichaels authored and tphoney committed Apr 8, 2016
1 parent 1f77ba0 commit 8e74af7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions manifests/mod.pp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
ensure => $package_ensure,
require => Package['httpd'],
before => $package_before,
notify => Class['apache::service'],
}
}

Expand Down
4 changes: 3 additions & 1 deletion manifests/mod/pagespeed.pp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
$message_buffer_size = 100000,
$additional_configuration = {},
$apache_version = undef,
$package_ensure = undef,
){
include ::apache
$_apache_version = pick($apache_version, $apache::apache_version)
Expand All @@ -42,7 +43,8 @@
}

apache::mod { 'pagespeed':
lib => $_lib,
lib => $_lib,
package_ensure => $package_ensure,
}

# Template uses $_apache_version
Expand Down

0 comments on commit 8e74af7

Please sign in to comment.