mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 09:50:37 +00:00
18 lines
451 B
Python
18 lines
451 B
Python
from base import Task
|
|
|
|
|
|
class GetInfo(Task):
|
|
def run(self, info):
|
|
super(GetInfo, self).run(info)
|
|
# import urllib2
|
|
# import json
|
|
# response = urllib2.urlopen('http://169.254.169.254/latest/dynamic/instance-identity/document')
|
|
# info.host = json.load(response.read())
|
|
# return info
|
|
|
|
|
|
class InstallPackages(Task):
|
|
def run(self, info):
|
|
# Check if packages are installed with
|
|
# /usr/bin/dpkg -s ${name} | grep -q 'Status: install'
|
|
pass
|