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}.
-
In the {ProjectWebUI}, navigate to Hosts > Templates > Provisioning Templates.
-
Create a provisioning template, or clone and edit an existing template. For more information, see [creating-provisioning-templates_{context}].
-
In the template, click the Template tab.
-
In the Template editor field, add the
create_users
snippet to the%post
section:<%= snippet('create_users') %>
-
Select the Default checkbox.
-
Click the Association tab.
-
From the Application Operating Systems list, select an operating system.
-
Click Submit to save the provisioning template.
-
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.