Skip to content

Commit

Permalink
Update IPs with k8spod and latest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuLamiot committed May 28, 2024
1 parent 93fac3a commit 50face3
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions sources/handlers/ServerListHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,31 +23,31 @@ def get_groupone_live1_ipv4(self):
Lists all IP used by live1 cluster from group.One
"""
live1_ips = ''
# Defined in k8s_sips:
# Defined in k8s_live1_sips & k8s_live1_ingress:
# https://gitlab.one.com/systems/chef-repo/-/blob/master/roles/onecom-global-firewall-macros.json#L173
live1_ips += "46.30.212.67\n"
live1_ips += "46.30.212.67\n46.30.212.92\n"
return live1_ips

def get_groupone_live2_ipv4(self):
"""
Lists all IP used by live2 cluster from group.One
"""
live2_ips = ''
# Defined in k8s_sips:
# Defined in k8s_live2_sips:
# https://gitlab.one.com/systems/chef-repo/-/blob/master/roles/onecom-global-firewall-macros.json#L173
live2_ips += "46.30.212.64\n46.30.212.65\n46.30.212.66\n46.30.212.67\n46.30.212.68\n46.30.212.69\n46.30.211.85\n"
# Added for live2 according to JIRA: https://group-one.atlassian.net/browse/NET-283
live2_ips += "46.30.212.70\n46.30.212.71\n46.30.212.72\n46.30.212.73\n"
live2_ips += "46.30.212.68\n46.30.212.70\n46.30.212.71\n46.30.212.72\n46.30.212.73\n"
# Defined in k8s_live2_ingress:
live2_ips += "46.30.212.116\n"
return live2_ips

def get_groupone_k8spod1_ipv4(self):
"""
Lists all IP used by k8spod1 cluster from group.One
"""
k8spod1_ips = ''
# Defined in k8s_sips:
# Defined in k8spod1_sips & k8spod1_ingress:
# https://gitlab.one.com/systems/chef-repo/-/blob/master/roles/onecom-global-firewall-macros.json#L173
k8spod1_ips += "46.30.211.168\n"
k8spod1_ips += "46.30.211.168\n46.30.212.120\n"
return k8spod1_ips

def get_groupone_cpcss_ipv4(self):
Expand All @@ -63,7 +63,7 @@ def get_groupone_saas_ipv4(self):
Lists all IPv4 used specifically by WP Rocket SaaS service from group.One
"""
ipv4 = ''
ipv4 += "46.30.212.106\n"
ipv4 += "46.30.212.116\n"
return ipv4

def get_groupone_backend_ipv4(self):
Expand Down Expand Up @@ -98,13 +98,11 @@ def generate_wp_rocket_ips_human_readable(self, app_context):
text += "Load CSS Asynchronously:\n"
# Defined in https://gitlab.one.com/systems/group.one-authdns/-/blob/main/octodns/wp-rocket.me.yaml?ref_type=heads
text += "https://cpcss.wp-rocket.me\n"
text += self.get_groupone_cpcss_ipv4()
text += self.get_groupone_live2_ipv4()
text += "\n"

text += "Remove Unused CSS:\n"
# SaaS CNAME in https://gitlab.one.com/systems/group.one-authdns/-/blob/main/octodns/wp-rocket.me.yaml?ref_type=heads
text += self.get_groupone_saas_ipv4()
text += self.get_groupone_live2_ipv4()
text += self.get_groupone_live1_ipv4()
text += self.get_groupone_k8spod1_ipv4()
Expand Down Expand Up @@ -150,9 +148,6 @@ def generate_wp_rocket_ipv4_machine_readable(self, app_context):
text = ""
# group.One
text += self.get_groupone_proxy_ipv4()
text += self.get_groupone_cpcss_ipv4()
text += self.get_groupone_saas_ipv4()
text += self.get_groupone_backend_ipv4()
text += self.get_groupone_live2_ipv4()
text += self.get_groupone_live1_ipv4()
text += self.get_groupone_k8spod1_ipv4()
Expand Down

0 comments on commit 50face3

Please sign in to comment.