Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

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

$
0
0
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 .

Viewing all articles
Browse latest Browse all 6104

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>