Dnf
This commit is contained in:
parent
be22af059c
commit
31c2ab20a4
3 changed files with 77 additions and 27 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue