"os",
"partitions",
"tier",
+ "project",
"pp_ip_cidr",
"ipaddress",
"pp_purpose",
"tier": "__",
"environment": "__"
},
- "namservers": [],
+ "nameservers": [],
"searchdomains": [],
"dns_options": "__"
},
# Nameservers resolv.conf
for ns in data["resolv_conf"]["value"]["nameserver"]:
- sample_pre_tf["defaults"]["namservers"].append(ns)
+ sample_pre_tf["defaults"]["nameservers"].append(ns)
# Searchdomains resolv.conf
for sd in data["resolv_conf"]["value"]["search"]:
except:
timeout = 1
attempts = 2
- sample_pre_tf["defaults"]["namservers"] = []
+ sample_pre_tf["defaults"]["nameservers"] = []
sample_pre_tf["defaults"]["searchdomains"] = []
sample_pre_tf["defaults"]["dns_options"] = f"timeout: {timeout} attempts: {attempts}"
sample_pre_tf["defaults"]["customer"] = data["pp_owner"]["value"].split(' ')[0]
# Project
- sample_pre_tf["defaults"]["puppet"]["project"] = data["customer"]["value"]
+ sample_pre_tf["defaults"]["puppet"]["project"] = data["project"]["value"]
# Purpose
sample_pre_tf["defaults"]["purpose"] = data["pp_purpose"]["value"].split(' ')[0]