diff options
| author | Scott Moser <smoser@ubuntu.com> | 2012-08-27 20:17:33 -0400 |
|---|---|---|
| committer | Scott Moser <smoser@ubuntu.com> | 2012-08-27 20:17:33 -0400 |
| commit | e0179ea4ba8f7024d9ce4e74c48f5ed95cd17167 (patch) | |
| tree | a10bb1d3576df6796e47472acb1f9cf22231d76e /config | |
| parent | b81d5ed43e7ebed1d11d4b4109e22e9954316d4c (diff) | |
| parent | e57e4524133c819a65730060c515b048fcb09c2f (diff) | |
| download | vyos-cloud-init-e0179ea4ba8f7024d9ce4e74c48f5ed95cd17167.tar.gz vyos-cloud-init-e0179ea4ba8f7024d9ce4e74c48f5ed95cd17167.zip | |
fix bug preventing public_keys from being imported for to-be-created users
If a user hadn't been created in the image, when the public_key was to
be injected by cc_ssh into the user's account, it didn't exist yet.
This moves the population of the authorized_keys from the metadata service
into user_groups, and puts that before cc_ssh runs. moving before cc_ssh
means that when ssh comes up, the users will be ready.
ssh-import-id then handles any ssh-import-id users after networking is up.
LP: #1042459
Diffstat (limited to 'config')
| -rw-r--r-- | config/cloud.cfg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/cloud.cfg b/config/cloud.cfg index 2744c940..9c475251 100644 --- a/config/cloud.cfg +++ b/config/cloud.cfg @@ -29,6 +29,7 @@ cloud_init_modules: - update_etc_hosts - ca-certs - rsyslog + - users-groups - ssh # The modules that run in the 'config' stage @@ -37,7 +38,6 @@ cloud_config_modules: # this can be used by upstart jobs for 'start on cloud-config'. - emit_upstart - mounts - - users-groups - ssh-import-id - locale - set-passwords |
