If you don’t have root command line access in Puppet Enterprise and/or you don’t have direct access to PE API integrations, you can make API calls from the console. You can use a task in the support_tasks
module to create the Continuous Integration for Puppet Enterprise role, list PE authentication tokens, trigger a code deploy for all environments, and get the status of all PE services.
Version and installation information
PE version: All supported versions
OS: Any primary server OS
Solution
Use a task in the support_tasks
module to run the following API calls in the console:
create_role_cd4pe
- Create the Continuous Delivery for PE role. The user created works with CD4PE installations up to version 3.4.0.list_tokens
- List all PE authentication tokens.manual_gitlab_webhook_hit
- Trigger a code deployment to all environments using a simulated GitLab webhook. To use this command, you must have a valid authentication token in the default location (~/.puppetlabs/token
).get_all_services_status
- Output the status of all PE services.
-
To use this task you must have an authentication token. If you don’t already have one, you can generate one using a task in the
support_tasks
module. -
Download and install the
support_tasks
module which includes the task for this solution. -
In the console, in the Run section, click Task.
-
In the Task field, select task st0373. Target your primary server. From the list of target types, select Node list. Expand the Inventory nodes target. Enter your primary server’s name and click Search. From the list of results, select your primary server.
-
Under Task parameters, select the parameter that matches the API call you’d like to make from the dropdown list.
-
Click Run job. After the task is completed, the API call’s output will appear on the Job page.
How can we improve this article?
0 comments
Please sign in to leave a comment.
Related articles