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

Commit

Permalink
Refactoring for Puppet 4 compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
alvagante committed May 4, 2016
1 parent 0d49570 commit 93962fa
Show file tree
Hide file tree
Showing 6 changed files with 205 additions and 210 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This is a Puppet jboss module from the second generation of Example42 Puppet Modules.

Made by Alessandro Franceschi / Lab42
Development by example42

Official site: http://www.example42.com

Expand Down
44 changes: 44 additions & 0 deletions manifests/config.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
class jboss::config {
include ::jboss


if ($::jboss::source or $::jboss::template) {
file { 'jboss.conf':
ensure => $::jboss::manage_file,
path => $::jboss::real_config_file,
mode => $::jboss::config_file_mode,
owner => $::jboss::config_file_owner,
group => $::jboss::config_file_group,
source => $::jboss::manage_file_source,
content => $::jboss::manage_file_content,
replace => $::jboss::manage_file_replace,
audit => $::jboss::manage_audit,
}
}

# The whole jboss configuration directory can be recursively overriden
if $::jboss::source_dir and $::jboss::source_dir != '' {
file { 'jboss.dir':
ensure => directory,
path => $::jboss::real_config_dir,
source => $::jboss::source_dir,
recurse => true,
purge => $::jboss::bool_source_dir_purge,
replace => $::jboss::manage_file_replace,
audit => $::jboss::manage_audit,
}
}
if ! $::jboss::conf_script_template == '' {
file { 'jboss.script.conf':
ensure => $::jboss::manage_file,
path => $::jboss::real_conf_script_path,
mode => $::jboss::config_file_mode,
owner => $::jboss::config_file_owner,
group => $::jboss::config_file_group,
content => template($::jboss::conf_script_template),
replace => $::jboss::manage_file_replace,
audit => $::jboss::manage_audit,
}
}

}
Loading

0 comments on commit 93962fa

Please sign in to comment.