How to Call stopWlsManagedServer.py.erb file inside init.pp class ?

asked 2016-06-14 01:51:57 -0600

arjun gravatar image

How to Call stopWlsManagedServer.py.erb file (to stop the weblogic server ) inside init.pp class ?

suppose :

stopWlsManagedServer.py.erb - file name 1. Use the python script Ex: # python script wls:wlscontrol Provide the below mention information a. User information
Ex: wlsUser = '<%= @wlsUser %>' b. Password Ex: password = sys.argv[1] c. machine address Ex: machine = '<%= @address %>' d. portNumber Ex: portNumber = '<%= @port %>' e. wlsServer - staging server Ex: wlsServer = '<%= @wlsServer %>' f. wlsTarget - Target server Ex: wlsTarget = '<%= @wlsTarget %>' 5. A function Which will take the above input parameter to process the operation Ex: connect(wlsUser,password,'t3://'+machine+':'+portNumber) 6. #Stop the WlsServer Ex shutdown(wlsServer,wlsTarget,force='true')

above mention class how to call inside init.pp file - inside exec block .

edit retag flag offensive close merge delete