Skip to content

Latest commit

 

History

History
26 lines (24 loc) · 1.49 KB

proc_deploying-ssh-keys-during-provisioning.adoc

File metadata and controls

26 lines (24 loc) · 1.49 KB

Deploying SSH Keys During Provisioning

Use this procedure to deploy SSH keys added to a user during provisioning. For information on adding SSH keys to a user, see {AdministeringDocURL}Managing_SSH_Keys_for_a_User_admin[Managing SSH Keys for a User] in {AdministeringDocTitle}.

Procedure
  1. In the {ProjectWebUI}, navigate to Hosts > Templates > Provisioning Templates.

  2. Create a provisioning template, or clone and edit an existing template. For more information, see [creating-provisioning-templates_{context}].

  3. In the template, click the Template tab.

  4. In the Template editor field, add the create_users snippet to the %post section:

    <%= snippet('create_users') %>
  5. Select the Default checkbox.

  6. Click the Association tab.

  7. From the Application Operating Systems list, select an operating system.

  8. Click Submit to save the provisioning template.

  9. Create a host that is associated with the provisioning template or rebuild a host using the OS associated with the modified template. For more information, see {ManagingHostsDocURL}Creating_a_Host_managing-hosts[Creating a Host] in {ManagingHostsDocTitle}.

    The SSH keys of the Owned by user are added automatically when the create_users snippet is executed during the provisioning process. You can set Owned by to an individual user or a user group. If you set Owned by to a user group, the SSH keys of all users in the user group are added automatically.