biemond-orawls
biemond-orawls copied to clipboard
wls_roles adding user
Hi, Any idea why this not taking?
$my_id = 'johnd'
wls_role { 'default/Admin': ensure => 'present', expression => ['Grp(Administrators)|Grp(WebLogicConsoleAdmintst)|Usr("$my_id")'], realm => 'myrealm', }
During build This print Notice: /Stage[main]/Profile::Weblogic_adminserver/Wls_role[default/Admin]/expression: expression changed 'Grp(Administrators)' to 'Grp(Administrators)|Grp(WebLogicConsoleAdmintst)|"$my_id"'
it's not replacing variable with value. Any idea?
I guess do this
use "" with expressions and not '' plus ${aa}
wls_role { 'default/Admin':
ensure => 'present',
expression => ["Grp(Administrators)|Grp(WebLogicConsoleAdmintst)|Usr('${my_id}')"],
realm => 'myrealm',
}