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
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>
This package adds a central place where all the config options
of cloudbase-init can be easily maintained.
Change-Id: Idfc1aea2d637a0124be17c90bcf98450769bc76f
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
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
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
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
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