puppet rundeck integration issue
I want to use rundeck as my orchestration and calling "puppet resource vspherevm ..." using a rundeck job. I am not getting why it is not able to recognize vshperevm in rundeck? Either case it is not working.
- puppet resource vsphere_vm
Error: Could not run: Could not find type vsphere_vm 18:35:51 Remote command failed with exit status 1 18:35:51 Failed: NonZeroResultCode: Remote command failed with exit status 1
- puppet apply /tmp/myvm.pp --noop
Error: Evaluation Error: Error while evaluating a Resource Statement, Invalid resource type vsphere_vm at /tmp/myvm.pp:1:1 on node ip-xx-xx-xx-xx.ec2.internal 18:25:25 Remote command failed with exit status 1 18:25:25 Failed: NonZeroResultCode: Remote command failed with exit status 1
I am running above commands from Rundeck using sudo user. It works when I run "Puppet help". There is something wrong with puppet resource options.
Please help. Thanks.