-
Notifications
You must be signed in to change notification settings - Fork 166
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
ansible: update iptables playbook #2631
Conversation
I've used this to update the firewalls for #2628. I'll look at updating the documentation in https://github.com/nodejs/build/blob/master/ansible/MANUAL_STEPS.md#adding-firewall-entries-for-jenkins-workers. FWIW the ansible script updates the live iptables state, but |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not familiar with this script but the changes seem sensible to me
I only came across while setting up the replacement ci-release server. It's additive (i.e doesn't remove things from the iptables rules) so is reasonably safe to run. I've added a follow up commit to handle the case with the Windows hosts which specify their - test:
- azure:
msft-win10_vcbt2015-x64-1: {ip: nodejs.eastus2.cloudapp.azure.com} in the inventory currently has this iptables rule:
instead of
|
@richardlau should this land? |
Add a filter to skip over hosts that do not have an IP address, which can happen if they have been removed from the main inventory but not from secrets. Also filter out hosts that use hostnames instead of numeric IP addresses (i.e. the Windows hosts). Allow the proxy host look up when ansible is run in `--check` mode.
Add filter for looking up IP addresses via `dig`. Add entries for hosts that set their `ip` to a hostname instead of a numeric IP address -- in the iptables rules we are adding these commented with the supplied `ip` hostname rather than the name of the host.
bcb77d7
to
fba5133
Compare
Add a filter to skip over hosts that do not have an IP address, which can happen if they have been removed from the main inventory but not from secrets. Also filter out hosts that use hostnames instead of numeric IP addresses (i.e. the Windows hosts). Allow the proxy host look up when ansible is run in `--check` mode.
Yes, done. I tested the playbook again after rebasing before merging. |
Add a filter to skip over hosts that do not have an IP address, which
can happen if they have been removed from the main inventory but not
from secrets. Also filter out hosts that use hostnames instead of
numeric IP addresses (i.e. the Windows hosts).
Allow the proxy host look up when ansible is run in
--check
mode.Add filter for looking up IP addresses via
dig
. Add entries forhosts that set their
ip
to a hostname instead of a numeric IPaddress -- in the iptables rules we are adding these commented with
the supplied
ip
hostname rather than the name of the host.