This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://askubuntu.com/questions/250733/can-i-do-a-silent-or-unattended-release-upgrade | |
# The following command upgrades to the new stable release without prompts: | |
do-release-upgrade -f DistUpgradeViewNonInteractive | |
# The following command upgrades to the current development release without prompts: | |
do-release-upgrade -d -f DistUpgradeViewNonInteractive | |
# Really Unattended | |
## --force-confdef: ask dpkg to decide alone when it can and prompt otherwise. | |
## --force-confold: do not modify the current configuration file, the new version is installed with a .dpkg-dist suffix. | |
# create file /etc/apt/apt.conf.d/local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
This scripts creates a MAAS DHCP lease, forces to write that dhcp lease on the | |
filesystem , and forces to write the dns zone reflecting the new lease. | |
Usage: | |
./{0} ip_addr mac_addr | |
""" | |
from maasserver.dns import change_dns_zones, write_full_dns_config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import print_function | |
import yaml | |
import subprocess | |
import argparse | |
__author__ = "Jorge Niedbalski <[email protected]>" |
NewerOlder