Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Commit

Permalink
Merge pull request #11 from clauded/master
Browse files Browse the repository at this point in the history
Allow to override config.php template
  • Loading branch information
tremblaysimon committed Jul 28, 2015
2 parents 5fea4a9 + cfd0dad commit 8711f04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
$librairieVersion = $::igo::params::librairieVersion,
$cphalconGitRepo = $::igo::params::cphalconGitRepo,
$cphalconVersion = $::igo::params::cphalconVersion,
$configTemplate = $::igo::params::configTemplate,

) inherits ::igo::params {

Expand Down Expand Up @@ -89,7 +90,7 @@
file { "${igoAppPath}/config/config.php":
owner => $appUser,
group => $appGroup,
content => template('igo/config.php.erb'),
content => template($configTemplate),
require => $requiredIgoAppPath,
}
class { '::igo::apache':
Expand Down
2 changes: 2 additions & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,7 @@
$pgsqlEtcPath = "/etc/postgresql/${::postgresql::globals::default_version}"
$pgsqlScriptPath = "/usr/share/postgresql/${::postgresql::globals::default_version}/contrib/postgis-${::postgresql::globals::default_postgis_version}"
$srcPath = '/usr/src'

$configTemplate = 'igo/config.php.erb'

}

0 comments on commit 8711f04

Please sign in to comment.