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

Not connecting non-public IP nodes #7

Open
checkflow opened this issue Feb 12, 2019 · 2 comments
Open

Not connecting non-public IP nodes #7

checkflow opened this issue Feb 12, 2019 · 2 comments

Comments

@checkflow
Copy link

Hi.
Same problem as for the EC2 nodes plugin here : rundeck-plugins/rundeck-ec2-nodes-plugin#17
I can not run jobs on nodes with only private IP's, the hostname is null when no public ip provided.

How could i use private ip for hostname plugin attribute ?

@vtodorovv
Copy link

bump

@jovaltech
Copy link

Actually, if you need to replace public ip's with private ip's (and your private ip is on primary network interface in your nodes), you can fork the project then change following line in AzuneNode.groovy class :

this.hostname = vm.getPrimaryPublicIPAddress()?.ipAddress()

by

this.hostname = vm.primaryNetworkInterface.primaryPrivateIP()

Then build the plugin and replace the one you have on your rundeck instance, for me it works fine this way.

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

3 participants