biemond-orawls icon indicating copy to clipboard operation
biemond-orawls copied to clipboard

wls_roles adding user

Open wijetnga opened this issue 8 years ago • 1 comments

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?

wijetnga avatar Feb 01 '17 21:02 wijetnga

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',
}

biemond avatar Feb 01 '17 21:02 biemond