~ubuntu-branches/ubuntu/quantal/cloud-init/quantal

« back to all changes in this revision

Viewing changes to cloudinit/distros/debian.py

  • Committer: Package Import Robot
  • Author(s): Scott Moser
  • Date: 2012-09-30 14:29:04 UTC
  • Revision ID: package-import@ubuntu.com-20120930142904-nq8fkve62i0xytqz
* add CloudStack to DataSources listed by dpkg-reconfigure (LP: #1002155)
* New upstream snapshot.
  * 0440 permissions on /etc/sudoers.d files rather than 0644
  * get host ssh keys to the console (LP: #1055688)
  * MAAS DataSource adjust timestamp in oauth header to one based on the
    timestamp in the response of a 403.  This accounts for a bad local
    clock. (LP: #978127)
  * re-start the salt daemon rather than start to ensure config changes
    are taken.
  * allow for python unicode types in yaml that is loaded.
  * cleanup in how config modules get at users and groups.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
    def _write_network(self, settings):
57
57
        net_fn = self._paths.join(False, "/etc/network/interfaces")
58
58
        util.write_file(net_fn, settings)
 
59
        return ['all']
 
60
 
 
61
    def _bring_up_interfaces(self, device_names):
 
62
        use_all = False
 
63
        for d in device_names:
 
64
            if d == 'all':
 
65
                use_all = True
 
66
        if use_all:
 
67
            return distros.Distro._bring_up_interface(self, '--all')
 
68
        else:
 
69
            return distros.Distro._bring_up_interfaces(self, device_names)
59
70
 
60
71
    def set_hostname(self, hostname):
61
72
        out_fn = self._paths.join(False, "/etc/hostname")