oswaldlabs / chef-rundeck

Integrates Chef with RunDeck, we are referring users to https://github.com/atheiman/better-chef-rundeck as this repository is inactive at this time.
Apache License 2.0
97 stars 85 forks source link

Rundeck is taking the chef-server username as an login credential for the windows Nodes. #70

Open cpkatragadda opened 7 years ago

cpkatragadda commented 7 years ago

I have integrated Rundeck with the chef-server using chef-rundeck ruby gem and using sinatra I was able to load all the nodes information into rundeck from chef-server. But while executing the jobs Rundeck was authenticating with the nodes using chef-server's username. How can I over ride the username using plugin configuration? As shown in the attachment 'ckatraga' was my chef server login username. Can anyone please help me with this. Plugin I was using: https://github.com/rundeck-plugins/rundeck-winrm-plugin rundecknode rundeckauth

stephen-dayman commented 7 years ago

I've done this in the past by creating a json file describing your projects and specifying a username. For example,

cat /etc/chef/rundeck.json { "lab1": { "hostname": "ipaddress", "username": "ubuntu", "pattern": "chef_environment:lab1 AND NOT (name:jump OR name:rundeck)" } }