Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ready for testing on vagrant after some cleanup

  • Loading branch information...
commit 46496ffd3d7258e00fc6034039f383d76992f02d 1 parent 54fc89c
@micrub authored
View
2  README.textile
@@ -1,2 +1,2 @@
-LAMP Puppet Manifests for CentOS 5/Ubuntu
+LAMP Puppet Manifests for Ubuntu/Debian
View
25 manifests/classes/apache.pp
@@ -1,23 +1,20 @@
class apache {
- package { httpd: ensure => installed }
- package { httpd-devel: ensure => installed }
- package { mod_ssl: ensure => installed }
-
+ package { 'apache2' : ensure => installed }
service {
- httpd:
+ 'apache2' :
enable => true,
ensure => running,
- subscribe => [Package[httpd], File["/etc/httpd/conf/httpd.conf"], Package[php], File["/etc/php.ini"]]
+ subscribe => [Package['apache2']]
}
- file { "/etc/httpd/conf/httpd.conf":
- owner => root,
- group => root,
- mode => 660,
- source => "/etc/puppet/files/etc/httpd/conf/httpd.conf",
- require => [ Package[httpd] ]
- }
+ #file { "/etc/httpd/conf/httpd.conf":
+ # owner => root,
+ # group => root,
+ # mode => 660,
+ # source => "/etc/puppet/files/etc/httpd/conf/httpd.conf",
+ # require => [ Package[httpd] ]
+ #}
-}
+}
View
4 manifests/classes/build.pp
@@ -1,4 +0,0 @@
-class build {
- package { gcc: ensure => installed }
- package { make: ensure => installed }
-}
View
44 manifests/classes/git.pp
@@ -1,44 +0,0 @@
-class git {
-
- package { zlib-devel: ensure => installed }
- package { openssl-devel: ensure => installed }
- package { curl-devel: ensure => installed }
- package { expat-devel: ensure => installed }
- package { gettext-devel: ensure => installed }
- package { wget: ensure => installed }
-
- $version = '1.6.0.4'
-
- file { "/usr/local/src": ensure => directory }
-
- exec { "download-git-tgz":
- cwd => "/usr/local/src",
- path => "/bin:/usr/bin",
- command => "wget http://kernel.org/pub/software/scm/git/git-$version.tar.gz",
- creates => "/usr/local/src/git-$version.tar.gz",
- unless => "git --version | grep '$version'",
- before => Exec["untar-git-source"],
- require => [Package[wget]]
- }
-
- exec { "untar-git-source":
- command => "tar xzf git-$version.tar.gz",
- path => "/bin:/usr/bin",
- cwd => "/usr/local/src",
- creates => "/usr/local/src/git-$version",
- unless => "git --version | grep '$version'",
- subscribe => Exec["download-git-tgz"],
- before => Exec["make-install-git"]
- }
-
- exec { "make-install-git":
- cwd => "/usr/local/src/git-$version",
- path => "/bin:/usr/bin",
- command => "make clean && make prefix=/usr all && make prefix=/usr install",
- creates => [ "/usr/bin/git" ],
- unless => "git --version | grep '$version'",
- subscribe => Exec["untar-git-source"],
- require => [Exec["untar-git-source"],Package[gcc],Package[make],Package[gettext-devel],Package[expat-devel],Package[curl-devel],Package[openssl-devel],Package[zlib-devel]]
- }
-
-}
View
10 manifests/classes/lamp.pp
@@ -1,10 +1,6 @@
class lamp {
- include build,
- ssh,
- svn,
- git,
+ include
apache,
- mysql,
php,
- sudo
-}
+ mysql,
+}
View
29 manifests/classes/mysql.pp
@@ -1,21 +1,16 @@
class mysql {
-
- package { mysql: ensure => installed }
- package { mysql-server: ensure => installed }
-
- service {
- mysqld:
- enable => true,
- ensure => running,
- subscribe => Package[mysql-server]
+ package {
+ mysql-server: ensure => installed ,
+ libapache2-mod-auth-mysql: ensure => installed,
+ php5-mysql: ensure=>installed,
+ phpmyadmin: ensure=>installed,
}
- file { "/etc/my.cnf":
- owner => root,
- group => root,
- mode => 660,
- source => "/etc/puppet/files/etc/my.cnf",
- require => [ Package[mysql-server] ]
- }
+ #service {
+ # mysqld:
+ # enable => true,
+ # ensure => running,
+ # subscribe => Package[mysql-server]
+ #}
-}
+}
View
14 manifests/classes/php.pp
@@ -1,14 +1,8 @@
class php {
- package { php: ensure => installed }
- package { php-mysql: ensure => installed }
-
- file { "/etc/php.ini":
- owner => root,
- group => root,
- mode => 660,
- source => "/etc/puppet/files/etc/php.ini",
- require => [ Package[php] ]
+ package {
+ php5 : ensure => installed,
+ libapache2-mod-php5 : ensure => installed,
}
-}
+}
View
20 manifests/classes/ssh.pp
@@ -1,20 +0,0 @@
-class ssh {
-
- package { openssh-server: ensure => installed }
-
- service {
- sshd:
- enable => true,
- ensure => running,
- subscribe => [Package[openssh-server], File["/etc/ssh/sshd_config"]]
- }
-
- file { "/etc/ssh/sshd_config":
- owner => root,
- group => root,
- mode => 660,
- source => "/etc/puppet/files/etc/ssh/sshd_config",
- require => [ Package[openssh-server] ]
- }
-
-}
View
11 manifests/classes/sudo.pp
@@ -1,11 +0,0 @@
-class sudo {
- package { sudo: ensure => installed }
-
- file { "/etc/sudoers":
- owner => root,
- group => root,
- mode => 440,
- source => "/etc/puppet/files/etc/sudoers",
- require => [ Package["sudo"] ]
- }
-}
View
3  manifests/classes/svn.pp
@@ -1,3 +0,0 @@
-class svn {
- package { subversion: ensure => installed }
-}
Please sign in to comment.
Something went wrong with that request. Please try again.