summaryrefslogtreecommitdiff
path: root/cloudinit/distros
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2013-09-06 23:46:27 -0700
committerJoshua Harlow <harlowja@gmail.com>2013-09-06 23:46:27 -0700
commite058913486519c2a9e036aad95f6e029dbc89966 (patch)
treede61cb4024d9d9359f91090684684c15a077e84b /cloudinit/distros
parentc3e070de802ebc0f44722d4238f5447b93cc9fac (diff)
downloadvyos-cloud-init-e058913486519c2a9e036aad95f6e029dbc89966.tar.gz
vyos-cloud-init-e058913486519c2a9e036aad95f6e029dbc89966.zip
Add jsonschema for namespaced and verifiable module
configuration checking as well as make most of the module logic happen in the module itself instead of interacting with the distro object.
Diffstat (limited to 'cloudinit/distros')
-rw-r--r--cloudinit/distros/__init__.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/cloudinit/distros/__init__.py b/cloudinit/distros/__init__.py
index 5642b529..74e95797 100644
--- a/cloudinit/distros/__init__.py
+++ b/cloudinit/distros/__init__.py
@@ -52,7 +52,6 @@ class Distro(object):
ci_sudoers_fn = "/etc/sudoers.d/90-cloud-init-users"
hostname_conf_fn = "/etc/hostname"
tz_zone_dir = "/usr/share/zoneinfo"
- random_seed_fn = '/dev/urandom'
def __init__(self, name, cfg, paths):
self._paths = paths
@@ -170,15 +169,6 @@ class Distro(object):
distros.extend(OSFAMILIES[family])
return distros
- def set_random_seed(self, seed):
- if not self.random_seed_fn or not os.path.exists(self.random_seed_fn):
- raise IOError("No random seed filename provided for %s"
- % (self.name))
- if not seed:
- raise IOError("Unable to set empty random seed")
- # Ensure we only write 512 bytes worth
- util.append_file(self.random_seed_fn, seed[0:512])
-
def update_hostname(self, hostname, fqdn, prev_hostname_fn):
applying_hostname = hostname