10 Commits

Author SHA1 Message Date
Paula Madalina Crismaru
894b800d31 Add configurable option for the user password length
Add configurable option for the user password length of the user
defined by the `username` config option. The following parameter
has been added:
- user_password_length: type=int, default=20

The current default password length is 20, making it cumbersome for
users to enter the lengthy password via console.

Change-Id: I37ae75a438f6fd326101c7b8a855c1f39dd1e804
Closes-bug: #1684119
2017-07-05 17:18:43 +03:00
Alessandro Pilotti
f4fce4f37c Adds support for renaming the builtin account administrator
Add new parameter which renames the builtin administrator user instead of
creating a new one. The new account name is provided by the metadata
service or specified in the conf file using the "username" option.
- rename_admin_user: type bool, default value False

Change-Id: I5f8c98c4854db21f7bb8eeddb81e9cf98c309a01
Implements: blueprint add-rename-administrator-option
Co-Authored-By: Paula Madalina Crismaru <pcrismaru@cloudbasesolutions.com>
2017-02-23 02:56:22 +02:00
Alexandru Coman
6c6ef0e11a
Add support for generating cloudbase-init configuration sample
This package adds a central place where all the config options
of cloudbase-init can be easily maintained.

Change-Id: Idfc1aea2d637a0124be17c90bcf98450769bc76f
2016-09-02 11:19:59 +03:00
Claudiu Popa
fccf0e6f00 Move to the new oslo_config and oslo_log modules
Since a couple of releases ago, the old oslo.config is now
oslo_config, the same thing happening to oslo.log as well.
This patch also removes the vendorized openstack package,
since it's redundant now that oslo_log is out of the
incubator.

Change-Id: Iae1318aa0d2a9aab2d4f6af7d11ed1dfda51e733
2015-08-12 17:43:45 +03:00
Cosmin Poieana
7393fc991f Remove unnecessary parantheses
Remove all the explicit paranthesis tuples (under return values).

Change-Id: Id8e2b2fd0d74788e46c8f8686e5653b4b7a44978
2015-06-27 16:34:08 +03:00
Adrian Vladu
19aa6f7dd5 Make sure that the configured user profile registry key exists
If the user set to be configured by cloudbase-init is already added,
but no logon session has been created for that user, the profile
registry key does not exist.

As a consequence, the SetUserSSHPublicKeysPlugin fails, as it cannot
retrieve the home directory from the registry key.

Change-Id: I4226a1c08e940717709e65ba932ce15c8ce37aed
Closes-Bug: #1415198
2015-03-05 14:46:12 -05:00
Jenkins
83f523fd54 Merge "Move Windows specific bits for the CreateUser plugin" 2015-02-25 11:28:17 +00:00
Claudiu Popa
66b6ae8247 Move Windows specific bits for the CreateUser plugin
There were some specific bits in CreateUser plugin, which are now moved in
windows/createuser.py. Another change is that the base class is transformed
into an abstract one, since the most import part of it, the user creationg,
needs to be implemented by subclasses.

Change-Id: I6d28bfc352cac4c34c938179db1b9709e0b6e9d4
2015-02-25 12:55:08 +02:00
Claudiu Popa
757438abf9 Add a method for obtaining the maximum password length
The patch adds `get_maximum_password_length` to osutils. The Windows
specific value which was used in setuserpassword and createuser plugins
is moved in the Windows implementation of get_maximum_password_length.

Change-Id: I08f999c750ac7e2858493072d41bb8f4927521ca
2015-02-17 17:09:36 +02:00
Claudiu Popa
c5ebf8deec Move non-Windows specific plugins to common
Most of the Windows-specific plugins were able to work on other platforms
as well, as long as osutils provides the relevant functionalities. This
restructuring is an effort for helping future additions of other
platforms.

Change-Id: I21a35eb6eb8e2439cfdf861c59afc51c3618a779
2015-02-12 20:17:15 +02:00