I am trying to install a jmeter service using nssm through cookbook.
but while running chef converge I am getting below error
FATAL: NoMethodError: undefined method `nssm' for cookbook: (chef-apply cookbook), recipe: (chef-apply recipe) :Chef::Recipe
here is the code
first I have installed the nssm to my local VM using below command in chef
chocolatey_package 'nssm' do
action :install
version '2.24.101.20180116'
end
then wants to install the jmeter service using nssm in chef
nssm 'jmeter_service' do
program 'C:\ProgramData\chocolatey\lib\jmeter\tools\apache-jmeter-5.2.1\bin\jmeter-server.bat'
parameters(
AppDirectory: 'C:\ProgramData\chocolatey\lib\jmeter\tools\apache-jmeter-5.2.1\bin',
AppStdout: 'C:\ProgramData\chocolatey\lib\jmeter\tools\apache-jmeter-5.2.1\bin\output.log',
AppStderr: 'C:\ProgramData\chocolatey\lib\jmeter\tools\apache-jmeter-5.2.1\bin\error.log',
#AppRotateFiles: 1
)
action %i[install start]
end
Thanks in advance