Permalink
Browse files

install phpmyadmin

  • Loading branch information...
1 parent a6b0b9a commit 0e0c1d22dc1fa5125689f697f1ffe7219ee26072 @zauberpony committed Feb 26, 2014
Showing with 27 additions and 2 deletions.
  1. +2 −1 manifests/init.pp
  2. +20 −0 manifests/install.pp
  3. +1 −1 manifests/params.pp
  4. +4 −0 templates/phpmyadmin/phpmyadmin.conf.erb
View
@@ -44,7 +44,8 @@
$serverip = $froxlor::params::serverip,
$servername = $froxlor::params::servename,
$http_user = $froxlor::params::http_user,
- $http_group = $froxlor::params::http_group
+ $http_group = $froxlor::params::http_group,
+ $phpmyadmin_mysql_password = $froxlor::params::phpmyadmin_mysql_password
) inherits froxlor::params {
include 'apt'
View
@@ -19,6 +19,26 @@
require => [File['/var/cache/debconf/proftpd-basic.preseed'], Package['openbsd-inetd']]
}
+ file { '/var/cache/debconf/phpmyadmin.preseed':
+ ensure => present,
+ content => 'phpmyadmin phpmyadmin/reconfigure-webserver multiselect apache2',
+ }
+
+ file { '/etc/dbconfig-common':
+ ensure => directory,
+ }
+ ->
+ file { '/etc/dbconfig-common/phpmyadmin.conf':
+ ensure => present,
+ content => template('froxlor/phpmyadmin/phpmyadmin.conf.erb'),
+ }
+
+ package { 'phpmyadmin':
+ ensure => present,
+ responsefile => '/var/cache/debconf/phpmyadmin.preseed',
+ require => [File['/var/cache/debconf/phpmyadmin.preseed'], File['/etc/dbconfig-common/phpmyadmin.conf']]
+ }
+
class { '::mysql::server':
root_password => $mysql_root_password,
}
View
@@ -8,5 +8,5 @@
$servername = $fqdn
$http_user = 'www-data'
$http_group = 'www-data'
-
+ $phpmyadmin_mysql_password = 'phpmyadminpassword'
}
@@ -0,0 +1,4 @@
+dbc_dbpass='<%= @phpmyadmin_mysql_password %>'
+dbc_dbname='phpmyadmin'
+dbc_dbadmin='root'
+dbc_dbadmpass='<%= @mysql_root_password %>'

0 comments on commit 0e0c1d2

Please sign in to comment.