def upgrade(hostname): ssh = deployers.get_ssh(hostname) deployers.print_host(hostname, "system upgrading...") deployers.update_apt(ssh) deployers.print_host(hostname, "system upgraded") deployers.reboot(ssh) deployers.print_host(hostname, "reboot order sent")
def apt_update(hostname): ssh = deployers.get_ssh(hostname) deployers.print_host(hostname, "upgrading software...") deployers.update_apt(ssh) deployers.print_host(hostname, "software upgraded")