summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarm Weites <harm@weites.com>2014-09-03 17:19:37 +0000
committerHarm Weites <harm@weites.com>2014-09-03 17:19:37 +0000
commit439f9c95f0bd024bbc47e01531c50e45f2d68c2c (patch)
tree5c7cc5cb4ff1561f547d130aa844b861ca888860
parent128fd80cb0b27430def29bee7a8c473facd84be8 (diff)
downloadvyos-cloud-init-439f9c95f0bd024bbc47e01531c50e45f2d68c2c.tar.gz
vyos-cloud-init-439f9c95f0bd024bbc47e01531c50e45f2d68c2c.zip
fix: Write sudo rules upon user creation.
-rw-r--r--cloudinit/distros/freebsd.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/cloudinit/distros/freebsd.py b/cloudinit/distros/freebsd.py
index 42ef2290..849834eb 100644
--- a/cloudinit/distros/freebsd.py
+++ b/cloudinit/distros/freebsd.py
@@ -37,6 +37,7 @@ class Distro(distros.Distro):
login_conf_fn = '/etc/login.conf'
login_conf_fn_bak = '/etc/login.conf.orig'
resolv_conf_fn = '/etc/resolv.conf'
+ ci_sudoers_fn = '/usr/local/etc/sudoers.d/90-cloud-init-users'
def __init__(self, name, cfg, paths):
distros.Distro.__init__(self, name, cfg, paths)
@@ -219,10 +220,6 @@ class Distro(distros.Distro):
util.logexc(LOG, "Failed to lock user %s", name)
raise e
- # TODO:
- def write_sudo_rules(self, name, rules, sudo_file=None):
- LOG.debug("[write_sudo_rules] Name: %s", name)
-
def create_user(self, name, **kwargs):
self.add_user(name, **kwargs)