Skip to content

Instantly share code, notes, and snippets.

@sheldonh
Created June 8, 2009 09:31
Show Gist options
  • Select an option

  • Save sheldonh/125737 to your computer and use it in GitHub Desktop.

Select an option

Save sheldonh/125737 to your computer and use it in GitHub Desktop.
# This fix should only be applied to FastCGI-enabled hosts, because our
# FastCGI implementation provides per-user session directories, which
# get around the strict permissions problem that had Debian disable
# session garbage collection in the first place.
class php_session_gc_fix {
file {
["/etc/php4/conf.d/session_gc_fix.ini", "/etc/php5/conf.d/session_gc_fix.ini"]:
ensure => $fastcgi ? {
1 => file,
0 => absent,
},
owner => "root",
group => "root",
mode => 644,
source => "puppet://$server/files/$path",
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment