I want to use variable values across resources like below.
I wan to start windows service with service account.
can you please help me on best possible way (Chef way) to achieve this?
powershell_script 'Get-Pass' do
$secpasswd = "Some APIs to get password from central server"
windows_service 'service-start' do
run_as_password $secpasswd \\from above resource