2015-04-11 16:15:49 +02:00
|
|
|
Admin user
|
|
|
|
----------
|
|
|
|
|
|
|
|
This plugin creates a user with passwordless sudo privileges. It also
|
2015-09-28 11:49:50 -07:00
|
|
|
disables the SSH root login. There are three ways to grant access to
|
|
|
|
the admin user:
|
|
|
|
- Use the EC2 public key (EC2 machines only)
|
2016-02-10 21:56:52 +01:00
|
|
|
- Set a password for the user
|
|
|
|
- Provide a SSH public key to allow remote SSH login
|
2015-09-28 11:49:50 -07:00
|
|
|
|
2016-02-10 21:56:52 +01:00
|
|
|
If the EC2 init scripts are installed, the script for fetching the
|
|
|
|
SSH authorized keys will be adjusted to match the username
|
|
|
|
specified in ``username``.
|
2015-09-28 11:49:50 -07:00
|
|
|
|
2016-02-10 21:56:52 +01:00
|
|
|
If a password is provided (the ``password`` setting),
|
|
|
|
this plugin sets the admin password, which also re-enables
|
|
|
|
SSH password login (off by default in Jessie or newer).
|
2015-09-28 11:49:50 -07:00
|
|
|
|
2016-02-10 21:56:52 +01:00
|
|
|
If the optional setting ``pubkey`` is present (it should be a full path
|
|
|
|
to a SSH public key), you will be able to log in to the admin user account
|
|
|
|
using the corresponding private key
|
|
|
|
(this disables the EC2 public key injection mechanism).
|
2015-09-28 11:49:50 -07:00
|
|
|
|
2016-02-10 21:56:52 +01:00
|
|
|
The ``password`` and ``pubkey`` settings can be used at the same time.
|
2015-04-11 16:15:49 +02:00
|
|
|
|
|
|
|
Settings
|
|
|
|
~~~~~~~~
|
|
|
|
|
2015-04-28 01:21:07 -03:00
|
|
|
- ``username``: The username of the account to create. ``required``
|
2015-09-28 11:49:50 -07:00
|
|
|
- ``password``: An optional password for the account to create. ``optional``
|
2016-02-10 21:56:52 +01:00
|
|
|
- ``pubkey``: The full path to an SSH public key to allow
|
2015-09-28 11:49:50 -07:00
|
|
|
remote access into the admin account. ``optional``
|
2016-02-10 21:56:52 +01:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
.. code:: yaml
|
|
|
|
|
|
|
|
---
|
|
|
|
plugins:
|
|
|
|
admin_user:
|
|
|
|
username: admin
|
|
|
|
password: s3cr3t
|
|
|
|
pubkey: /home/bootstrap-vz/.ssh/id_rsa
|