This commit is contained in:
Neill Cox 2023-09-28 00:34:16 +00:00
parent be22af059c
commit 31c2ab20a4
3 changed files with 77 additions and 27 deletions

View file

@ -16,7 +16,7 @@ def parse_args():
parser.add_argument("-u", "--username", required=True)
parser.add_argument("-p", "--password", required=True)
parser.add_argument("-a", "--address", required=True)
parser.add_argument("-i", "--interface", default="enp1s0")
parser.add_argument("-i", "--interface", required=True)
parser.add_argument("-m", "--netmask", default=24)
parser.add_argument(
"-d", "--dns", nargs="+", action="append", required=True
@ -151,6 +151,11 @@ def main():
deploy.write(deploy_sh(args))
print(f"deploy script written to {args.deploy}")
print("If you are running on a cloud image remenber to disable cloud-init before running the deploy.")
print("sudo systemctl stop cloud-init")
print("sudo systemctl disable cloud-init")
print("Make sure you have specifed the correct interface to use!")
if __name__ == "__main__":
main()