simple.py 352 B

12345678910111213141516171819202122
  1. from mico.lib.aws.ec2 import *
  2. from mico.lib.core import *
  3. USERDATA = """
  4. #cloud-config
  5. hostname: %s
  6. fqdn: %s
  7. manage_etc_hosts: true
  8. locale: C
  9. timezone: Europe/Madrid
  10. apt_update: true
  11. apt_upgrade: true
  12. """
  13. def main(*args):
  14. "Deploy the entire nosy production environment"
  15. import pickle
  16. x = pickle.load(open("/tmp/caca","r"))
  17. x("a")