~ubuntu-branches/debian/stretch/fuel-agent/stretch

« back to all changes in this revision

Viewing changes to fuel_agent/objects/configdrive.py

  • Committer: Package Import Robot
  • Author(s): Thomas Goirand
  • Date: 2016-03-16 17:12:17 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20160316171217-p5b360dfuxm5yidy
Tags: 9.0~0+2016.03.09.git.b1ba4b7747+dfsg1-1
* New upstream release based on commit b1ba4b7747.
* Uploading to unstable.
* Lots of tweaks to make Debian provisionning works.
* Standards-Version: 3.9.7 (no change).

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
 
59
59
class ConfigDriveScheme(object):
60
60
    def __init__(self, common=None, puppet=None,
61
 
                 mcollective=None, profile=None, templates=None):
 
61
                 mcollective=None, profile=None, templates=None,
 
62
                 user_accounts=None):
62
63
        self.common = common
63
64
        self.puppet = puppet
64
65
        self.mcollective = mcollective
65
66
        self._profile = profile or 'ubuntu'
66
67
        self.templates = templates or {}
 
68
        self.user_accounts = user_accounts or []
67
69
 
68
70
    # TODO(kozhukalov) make it possible to validate scheme according to
69
71
    # chosen profile which means chosen set of cloud-init templates.
87
89
            template_data.update(puppet=self.puppet)
88
90
        if self.mcollective is not None:
89
91
            template_data.update(mcollective=self.mcollective)
 
92
        if self.user_accounts:
 
93
            template_data.update(user_accounts=self.user_accounts)
90
94
        return template_data
91
95
 
92
96
    def set_profile(self, profile):