Hi Chamila,
(see my comments inline)

On Tue, Sep 9, 2014 at 3:53 PM, Chamila De Alwis <[email protected]> wrote:
> Hi,
>
> In the Appserver and several other carbon puppet modules the variable
> usermgt is used in several templates to determine how the password handling
> is done. For example in
> /puppet/modules/appserver/templates/conf/user-mgt.xml.erb it is used as
> follows.
>
>
> <%- if @usermgt -%>
>     <Property name="PasswordsExternallyManaged">true</Property>
> <%- end -%>
>
> <%- if @usermgt == 'readonly_ldap' -%>
> <%= scope.function_template(['appserver/conf/user-mgt/_roldap.erb']) -%>
> <%- elsif @usermgt == 'readwrite_ldap' -%>
> <%= scope.function_template(['appserver/conf/user-mgt/_rwldap.erb']) -%>
> <%- end -%>
>
> However I can't find a place where this variable is initialized in puppet.
>
> Is usermgt supposed to be added to manifests/appserver.pp (or any other
> carbon cartridge where applicable) if only it is relevant?

Yes. If you do not set the usermgt variable, Puppet will use the
default user-mgt.xml. However, if you need to use the user-mgt.xml
file you need to add it to the service-templates array in init.pp.
>
> Regards,
> Chamila de Alwis
> Software Engineer | WSO2 | +94772207163
> Blog: code.chamiladealwis.com
>
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>



-- 
Regards,
Manula Waidyanatha
Systems Engineer, WSO2, Inc.
Phone: +94 774 195853
Blog: blog.manula.org
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to