OP#419 initial commit after changes
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
## php_cd::init.pp
|
||||
# Module name: php_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
# @summary Class initializes the php_cd module
|
||||
## confdroid_php::init.pp
|
||||
# Module name: confdroid_php
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class initializes the confdroid_php module
|
||||
##############################################################################
|
||||
class php_cd {
|
||||
include php_cd::params
|
||||
class confdroid_php {
|
||||
include confdroid_php::params
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
## php_cd::main::config.pp
|
||||
# Module name: php_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
## confdroid_php::main::config.pp
|
||||
# Module name: confdroid_php
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manages the module logic
|
||||
##############################################################################
|
||||
class php_cd::main::config (
|
||||
class confdroid_php::main::config (
|
||||
|
||||
) inherits php_cd::params {
|
||||
include php_cd::main::files
|
||||
) inherits confdroid_php::params {
|
||||
include confdroid_php::main::files
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
## php_cd::main::dirs.pp
|
||||
# Module name: php_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
## confdroid_php::main::dirs.pp
|
||||
# Module name: confdroid_php
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manages directory structure
|
||||
##############################################################################
|
||||
class php_cd::main::dirs (
|
||||
class confdroid_php::main::dirs (
|
||||
|
||||
) inherits php_cd::params {
|
||||
require php_cd::main::install
|
||||
) inherits confdroid_php::params {
|
||||
require confdroid_php::main::install
|
||||
|
||||
file { $php_lib_dir:
|
||||
ensure => directory,
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
## php_cd::main::files.pp
|
||||
# Module name: php_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
## confdroid_php::main::files.pp
|
||||
# Module name: confdroid_php
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manages file aspects
|
||||
##############################################################################
|
||||
class php_cd::main::files (
|
||||
class confdroid_php::main::files (
|
||||
|
||||
) inherits php_cd::params {
|
||||
require php_cd::main::dirs
|
||||
) inherits confdroid_php::params {
|
||||
require confdroid_php::main::dirs
|
||||
|
||||
file { $php_ini_file:
|
||||
ensure => file,
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
## php_cd::main::install.pp
|
||||
# Module name: php_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
## confdroid_php::main::install.pp
|
||||
# Module name: confdroid_php
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class manages installation aspects
|
||||
##############################################################################
|
||||
class php_cd::main::install (
|
||||
class confdroid_php::main::install (
|
||||
|
||||
) inherits php_cd::params {
|
||||
) inherits confdroid_php::params {
|
||||
package { $reqpackages:
|
||||
ensure => $pkg_ensure,
|
||||
}
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
## php_cd::params.pp
|
||||
# Module name: php_cd
|
||||
# Author: Arne Teuke (arne_teuke@confdroid.com)
|
||||
## confdroid_php::params.pp
|
||||
# Module name: confdroid_php
|
||||
# Author: 12ww1160 (12ww1160@confdroid.com)
|
||||
# @summary Class contains all class parameters for this module
|
||||
# @param [String] reqpackages which packages to install
|
||||
# @param [String] pkg_ensure which version of packages to install
|
||||
##############################################################################
|
||||
class php_cd::params (
|
||||
class confdroid_php::params (
|
||||
|
||||
String $reqpackages = 'php',
|
||||
String $pkg_ensure = 'latest',
|
||||
String $pkg_ensure = 'present',
|
||||
|
||||
) {
|
||||
# Facts
|
||||
@@ -26,8 +26,8 @@ class php_cd::params (
|
||||
|
||||
# Files
|
||||
$php_ini_file = '/etc/php.ini'
|
||||
$php_ini_erb = 'php_cd/php.ini.erb'
|
||||
$php_ini_erb = 'confdroid_php/php.ini.erb'
|
||||
|
||||
# includes must be last
|
||||
include php_cd::main::config
|
||||
include confdroid_php::main::config
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user