This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'mysql' | |
import 'apache' | |
node default { | |
include users | |
include db | |
include apache_server | |
exec {"apt-update": | |
command => "apt-get update", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define mysql::createdb { | |
exec { "create-${name}-db": | |
unless => "mysql -uroot -p${config::mysqlRootPassword} ${name}", | |
command => "mysql -uroot -p${config::mysqlRootPassword} -e \"create database ${name}; grant all on ${name}.* to ${config::dbUser}@localhost identified by '${config::dbPassword}';\"", | |
require => Service["mysql"], | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apache::params: | |
class apache::params { | |
$vgname = 'vg01' | |
$lvname = 'wwwlv' | |
$lvsize = '2G' | |
$fstype = 'ext4' | |
$fsname = "/dev/${vgname}/${lvname}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$perl_modules = [ 'Data::Pageset', 'perl-module-b' ] | |
perlbrew::install_modules { | |
$perl_modules: | |
perl => 'a-version-of-perl' | |
} | |
perlbrew::install_modules { | |
$perl_modules: |