11class n98magerun::install (
2- $installation_folder = $n98magerun::install::params::installation_folder,
3- $magento_version = $n98magerun::install::params::magento_version,
4- $db_host = $n98magerun::install::params::db_host,
5- $db_user = $n98magerun::install::params::db_user,
6- $db_pass = $n98magerun::install::params::db_pass,
7- $db_name = $n98magerun::install::params::db_name,
8- $install_sample_data = $n98magerun::install::params::install_sample_data,
9- $use_default_config_params = $n98magerun::install::params::use_default_config_params,
10- $replace_htaccess_file = $n98magerun::install::params::replace_htaccess_file,
11- $base_url = $n98magerun::install::params::base_url,
12- $installation_timeout = $n98magerun::install::params::installation_timeout
13- ) inherits n98magerun::install::params
14- {
15- require n98magerun
2+ $installation_folder = $n98magerun::install::params::installation_folder,
3+ $magento_version = $n98magerun::install::params::magento_version,
4+ $db_host = $n98magerun::install::params::db_host,
5+ $db_user = $n98magerun::install::params::db_user,
6+ $db_pass = $n98magerun::install::params::db_pass,
7+ $db_name = $n98magerun::install::params::db_name,
8+ $install_sample_data = $n98magerun::install::params::install_sample_data,
9+ $use_default_config_params = $n98magerun::install::params::use_default_config_params,
10+ $replace_htaccess_file = $n98magerun::install::params::replace_htaccess_file,
11+ $base_url = $n98magerun::install::params::base_url,
12+ $installation_timeout = $n98magerun::install::params::installation_timeout
13+ ) {
14+ require n98magerun
15+ include n98magerun::install::params
1616
17- if $replace_htaccess_file == true {
18- $real_replace_htaccess_file = ' yes'
19- } else {
20- $real_replace_htaccess_file = ' no'
21- }
22- if $use_default_config_params == true {
23- $real_use_default_config_params = ' yes'
24- } else {
25- $real_use_default_config_params = ' no'
26- }
27- if $install_sample_data == true {
28- $real_install_sample_data = ' yes'
29- } else {
30- $real_install_sample_data = ' no'
31- }
17+ if $replace_htaccess_file == true {
18+ $real_replace_htaccess_file = ' yes'
19+ } else {
20+ $real_replace_htaccess_file = ' no'
21+ }
22+ if $use_default_config_params == true {
23+ $real_use_default_config_params = ' yes'
24+ } else {
25+ $real_use_default_config_params = ' no'
26+ }
27+ if $install_sample_data == true {
28+ $real_install_sample_data = ' yes'
29+ } else {
30+ $real_install_sample_data = ' no'
31+ }
3232
33- exec { 'install magento' :
34- command => " /usr/bin/env php /usr/local/bin/n98-magerun.phar install --magentoVersionByName='$magento_version ' --installationFolder='$installation_folder ' --dbHost='$db_host ' --dbUser='$db_user ' --dbPass='$db_pass ' --dbName='$db_name ' --installSampleData='$real_install_sample_data ' --useDefaultConfigParams='$real_use_default_config_params ' --replaceHtaccessFile='$real_replace_htaccess_files ' --baseUrl='$base_url '" ,
35- creates => " $installation_folder /app/etc/local.xml" ,
36- timeout => $installation_timeout
37- }
38- }
33+ exec { 'install magento' :
34+ command => " /usr/bin/env php /usr/local/bin/n98-magerun.phar install --magentoVersionByName='${ magento_version} ' --installationFolder='${ installation_folder} ' --dbHost='${ db_host} ' --dbUser='${ db_user} ' --dbPass='${ db_pass} ' --dbName='${ db_name} ' --installSampleData='${ real_install_sample_data} ' --useDefaultConfigParams='${ real_use_default_config_params} ' --replaceHtaccessFile='${ real_replace_htaccess_files} ' --baseUrl='${ base_url} '" ,
35+ creates => " ${ installation_folder} /app/etc/local.xml" ,
36+ timeout => $installation_timeout
37+ }
38+ }
0 commit comments