Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rundeck WinRm plugin issues #81

Open
Sunny2609 opened this issue Oct 15, 2024 · 0 comments
Open

Rundeck WinRm plugin issues #81

Sunny2609 opened this issue Oct 15, 2024 · 0 comments

Comments

@Sunny2609
Copy link

My problem is , I am trying to create a powershell script and I have two windows server ( one is the hosting server where rundeck is installed ) and the other is the Database server ( which is also a windows server ) . Now I want to execute a script as an inline script which can be passed in my workflow and I want my script to be placed in my local server ( hosting server ) and when it is run locally or as an inline script from my rundeck server , it should give me the output of starting of all closed services on my DB server .

I tried establishing winrm connection between these two of my windows server . For this , I created a resources.yml file where I have passed my target node ( DB server ) ip , username , description , winrm key storage path , winrm default node executor , winrm default file copier .. but I am not sure whether the details that I am passing is correct for winrm default node executor and default file copier .. After that , I have configured my resources.yml file in my nodes section and it is also targeting the nodes but when I am running the script as an inline script , either it gives me the plugin failure issues or either it gives me the service failure as null …I do not understand whether

my plugins that I am passing is correct or not .. In my configuration path , it shows WINRM Python , so I have used that . But I am not sure , because it shows plugin failed .
It’s not able to detect the service .. initially it was not able to detect my powershell script but then I passed shell:powershell in my resources.yml but still I am stuck with this issue ..
Can anyone help me out on this and write the modified resources.yml file and what all modifications are required in the script or something ? My script is giving me the desired output when run manually ….. but failing when executed through rundeck server.

Provide me all the required steps that needs to be done ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant