Many of the solutions that our team provides in the support_tasks
module require an authentication token. If you don’t have command line access on your primary server (formerly called the master), you can generate an authentication token with a one day lifetime in the console.
Version and installation information
PE version: All supported versions
OS: Any PE primary server OS
Solution
You can generate a token with a one day lifetime using a task in the support_tasks
module. Run the task on the primary server or any other node that has PE client tools installed on it.
-
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 st0370.
-
The target node must be your primary server or any other node that has PE client tools installed on it. Select one target node using either a node query or a list.
-
Under Task parameters fill in values for the required parameters,
user
andpassword
. Ensure that your user is a console user with an appropriate role for the task you’d like to run.Learn more about user roles and generating a token using puppet-access.
-
Run the task by clicking Run job. The token is generated in the default location (
~/.puppetlabs/token
) and can be used for other tasks requiring a token. You can print the token at any time usingpuppet-access show
How can we improve this article?
0 comments
Please sign in to leave a comment.
Related articles