Skip to content

Instantly share code, notes, and snippets.

View jjo's full-sized avatar
🏠
Working from home

JuanJo Ciarlante jjo

🏠
Working from home
View GitHub Profile
@niedbalski
niedbalski / update-node-dhcp-dns.py
Last active August 29, 2015 14:24
update-node-dhcp-dns.py
#!/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
@niedbalski
niedbalski / deployerizer.py
Last active March 17, 2017 19:14
Convert a current running juju environment to a juju-deployer bundle.
#!/usr/bin/env python
from __future__ import print_function
import yaml
import subprocess
import argparse
__author__ = "Jorge Niedbalski <[email protected]>"