Puppet Function: wildfly::profile_path

Defined in:
functions/profile_path.pp
Function type:
Puppet Language

Overview

wildfly::profile_path(Optional[String] $profile)String

Transform a profile name to a JBoss-CLI profile path.

Parameters:

  • profile (Optional[String])

    name of the profile (e.g. full, full-ha, ha)

Returns:

  • (String)

    a profile path or an empty path.



5
6
7
8
9
# File 'functions/profile_path.pp', line 5

function wildfly::profile_path(Optional[String] $profile) {
  if $profile and !empty($profile) {
    "/profile=${profile}"
  }
}