Configure global shared job hardware
Global shared job hardware can be used by all workspaces in your Continuous Delivery for PE installation. The root user or a super user must set up these special job hardware servers in the root console.
Before you beginReview the sizing guide in Job hardware requirements.
- Install a Puppet agent on each of the nodes you wish to use as global shared job hardware. See Installing agents in the PE documentation for details.
Make sure your Continuous Delivery user
role in PE includes the permission to
puppetlabs-cd4pe_jobsmodule, which is required to run Continuous Delivery for PE jobs on your nodes:
puppetlabs-cd4pe_jobsmodule to the following:
A sample Puppetfile entry:
- The Puppetfile for the production environment on the PE primary server that manages the agent nodes you've selected as job hardware
- The Puppetfile on the main branch of the control repo associated with the PE primary server that manages the agent nodes you've selected as job hardware
mod 'puppetlabs-cd4pe_jobs', '1.5.0'
Deploy the updated code to the production environment:
puppet code deploy production --wait
- Add the
- Install and configure Docker on your selected global shared job hardware nodes. See the Installing Docker instructions for details.
- In the root console, click Hardware.
- All global shared job hardware servers must be assigned to the Docker capability, which is automatically created for you. Locate the Docker capability and click + Edit.
Next, assign all your global shared job hardware servers to the
Docker capability. Select the PE instance that manages the node you've selected
as job hardware. Then, select the global shared job hardware nodes.
The selected nodes are added to the Hardware with this capability list on the right.
- When you've selected all the nodes you want to assign to the capability, click Save.
As needed, create additional capabilities for your global job hardware servers.
To create a new capability, click + Add capability and
give your new capability a name, then follow steps 6 and 7.
Tip: To learn more about capabilities, see Add job hardware capabilities.
ResultsYour global shared job hardware is now configured. Users in all workspaces will now see a Use shared hardware option when creating or editing a job. Jobs that are configured to run on your global shared job hardware have the Docker capability automatically selected, and will run on the global shared job hardware assigned to the Docker capability.