Skip to content
Browse files

Add simple phpmyadmin support.

  • Loading branch information...
1 parent 509f5cf commit e4c73efbb91641d4be69a0701a17ada57d7c23cb @timstoop timstoop committed May 1, 2012
Showing with 43 additions and 1 deletion.
  1. +15 −1 kbp_apache_new/manifests/init.pp
  2. +28 −0 kbp_phpmyadmin/manifests/init.pp
View
16 kbp_apache_new/manifests/init.pp
@@ -232,7 +232,7 @@
$redirect_non_ssl=true, $auth=false, $max_check_attempts=false, $monitor_path=false, $monitor_response=false, $monitor_probe=false, $monitor_creds=false,
$monitor_check_interval=false,$monitor=true, $smokeping=true, $php=false, $custom_php_ini=false, $glassfish_domain=false, $glassfish_connector_port=false,
$glassfish_connector_loglevel="info", $django_root_path=false,$django_root_django=false, $django_static_path=false, $django_static_django=false,
- $django_settings=false) {
+ $django_settings=false, $phpmyadmin=false) {
include kbp_apache_new
$temp_name = $port ? {
@@ -397,6 +397,20 @@
}
}
}
+
+ if $phpmyadmin {
+ case $php {
+ 'mod_php': { include kbp_phpmyadmin }
+ default: { include kbp_phpmyadmin::cgi }
+ }
+
+ file { "/etc/apache2/vhost-additions/${full_name}/phpmyadmin":
+ ensure => link,
+ target => "/etc/phpmyadmin/apache.conf",
+ notify => Exec["reload-apache2"],
+ require => Package["phpmyadmin"],
+ }
+ }
}
define kbp_apache_new::module ($ensure = "enable") {
View
28 kbp_phpmyadmin/manifests/init.pp
@@ -0,0 +1,28 @@
+# Author: Kumina bv <support@kumina.nl>
+
+# Class: kbp_phpmyadmin
+#
+# Actions:
+# Setup phpmyadmin the way we want to.
+#
+# Depends:
+# gen_phpmyadmin
+# gen_puppet
+#
+class kbp_phpmyadmin {
+ include gen_phpmyadmin
+}
+
+# Class: kbp_phpmyadmin::cgi
+#
+# Actions:
+# Setup phpmyadmin with FastCGI the way we want to.
+#
+# Depends:
+# gen_phpmyadmin
+# gen_puppet
+#
+class kbp_phpmyadmin::cgi {
+ include gen_phpmyadmin::cgi
+}
+

0 comments on commit e4c73ef

Please sign in to comment.
Something went wrong with that request. Please try again.