summaryrefslogtreecommitdiff
path: root/cloudinit/distros/ubuntu.py
AgeCommit message (Collapse)Author
2012-08-31- Converted user list to user dict to allow exclusion of the default userBen Howard
on Ubuntu systems via cloud-config (LP: #1041384). - Fixed bug with user creation on Ubuntu where the default user groups are not set properly (LP: #1044044). - Fixed documentation for user creation (LP: #1044508).
2012-08-28distros/ubuntu.py: remove unused import (pylint)Scott Moser
2012-08-27Fixed critical bug where user and group creation was being done after SSHBen Howard
configurations were applied. The result of this bug was that cloud-config supplied SSH public keys would fail to apply since the configured user may or may not exist. (LP: #1042459). cloudinit/config/cc_ssh_import_id.py: ssh_import_id.py now handles all user SSH import IDs. cloudinit/distros/ubuntu.py: Removed create_user class override as cruft, since ssh_import_id now handles all users. config/cloud.cfg: Moved users_groups to run under cloud_init_modules. doc/examples/cloud-config.txt: Added missing documentation on user and group creation.
2012-08-22remove now pointless __init__ in ubuntuScott Moser
2012-08-22fix issues from 'make pylint'Scott Moser
In an effort to pylint errors about NonImlementedError and add_default_user, I moved this method to distro and genericized it. Now, assuming a sane 'create_user' for the distro, this should work. Also: * removed the unused set_configured_user method
2012-08-22fix errors from 'make pep8'Scott Moser
2012-08-21Implemented MP feedback.Ben Howard
2012-08-20Dropped hidden command; replaced with logstring. Also changed useradd ↵Ben Howard
command to use log options over short
2012-08-20Added "userless" mode to cloud-init for handling the creation of theBen Howard
users and the default user on Ubuntu. cloudinit/config/cc_users_groups.py: new cloud-config module for creating users and groups on instance initialization. - Creates users and group - Sets "user" directive used in ssh_import_id cloudinit/config/cc_ssh_import_id.py: module will rely upon users_groups for setting the default user. Removed assumption of 'ubuntu' user. cloudinit/distros/__init__.py: Added new abstract methods for getting and creating the default user. cloudinit/distros/ubuntu.py: Defined abstract methods for getting and and creating the default 'ubuntu' user on Ubuntu instances. cloudinit/util.py: Added ability to hide command run through util.subp to prevent the commands from showing in the logs. Used by user_groups cloud-config module. config/cloud.cfg: Removed "user: ubuntu" directive and replaced with new user-less syntax. doc/examples/cloud-config.txt: Documented the creation of users and groups.
2012-06-221. Add a ubuntu and fedora subclass of the RH/debian root classesJoshua Harlow
2. Move the ubuntu class to the debian class (since thats really what it is)
2012-06-21Use RuntimeError subclass instead of top level ExceptionJoshua Harlow
2012-06-21Updated so that the locale that is being written out currently in 'cc_locale'Joshua Harlow
now will be done by the distro classes (since its not the same for rhel and ubuntu). Remove the template also since it will just be created by the ubuntu distro class (its just one line).
2012-06-211. Move all info() logging methods to debug() harlowja
2. Adjust comment on sources list from depends 3. For the /etc/timezone 'writing', add a header that says created by cloud-init
2012-06-20Massive pylint + pep8 fixups!Joshua Harlow
2012-06-19Pylint line length fixups.Joshua Harlow
2012-06-19More cleanups around read/write rootsJoshua Harlow
2012-06-19More paths missed (durn), but now fixed.Joshua Harlow
2012-06-19Make most of all the places use the paths join() function so that testing ↵Joshua Harlow
with non-real read/write paths is easier.
2012-06-18Add created by or added by cloud-init lines when we modify or create files.Joshua Harlow
2012-06-17Update the variable for comment positioning to be 'c_pos' (comment position) ↵harlowja
instead of 'hpos' (??)
2012-06-171. Adjust the ubuntu network hostname writing to go through a standard write ↵harlowja
function 2. Add comment as to why we search for "#" when reading
2012-06-171. Remove rhel sysconfig for timezone, now have a rhel distro subclassharlowja
2. Remove private apt_get function, since it can just be the package_command public one.
2012-06-16Have the top level distro class take paths instead of a runner.Joshua Harlow
This allows the following: 1. Let the ubuntu subclass construct its own runner with those paths (since not every subclass may want it) Adjust the base class + subclass to reflect this, adjust stages as well to reflect the constructor changes.
2012-06-16Have the contents formed on a previous line which seems prettier.Joshua Harlow
2012-06-15Fixups to ensure that pylint does not find anything major wrong.Joshua Harlow
2012-06-15Self variable missingJoshua Harlow
2012-06-15Variable name mismatchJoshua Harlow
2012-06-15Moved as many distro specific actions to here as should be needed. Joshua Harlow
Mainly this is the following: 1. Hostname updating 2. Package command invocation 3. Network settings writings 4. Timezone setting (needs cleanup)
2012-06-11Add initial network writing here.Joshua Harlow
2012-06-11Adding in the base of a ubuntu distro subclass that can install pkgs (right ↵Joshua Harlow
now).
2012-06-09Start adding place where distro specifics can go.Joshua Harlow