0
votes

My Puppet sever is PE 2017.3.1
My Agent node is on 5.5 version

I am facing an error while executing the command /opt/puppetlabs/puppet/bin/puppet-task run sample --nodes puppet-agent

My Sample file is a bash file which contains : -

#!/usr/bin/env bash
hostnamectl

I was able to list my task using cli

The above puppet-task command throws an error on command line: -

1. Starting Job
2. Invalid Json

1
What does your task json metadata look like? Does it exist? - Matt Schuchard
No, under ./tasks only init.sh exist - Shubham Hasija
What is the name of the puppet module that contains the task? - Mike Marseglia

1 Answers

0
votes

Puppet access login token expired. So after recreating it, I was able to perform the task.