Jira (BOLT-614) I want to know how to write multi-implementation tasks so they are backwards compatible with PE 2018.1

3 views
Skip to first unread message

Alex Dreyer (JIRA)

unread,
Jun 20, 2018, 4:38:03 PM6/20/18
to puppe...@googlegroups.com
Alex Dreyer created an issue
 
Puppet Task Runner / Story BOLT-614
I want to know how to write multi-implementation tasks so they are backwards compatible with PE 2018.1
Issue Type: Story Story
Assignee: Unassigned
Created: 2018/06/20 1:37 PM
Priority: Normal Normal
Reporter: Alex Dreyer

Currenlty our documentation for writing multi-implementation tasks suggests people name all executables the same which will prevent the module from being published on forge.

1. We should encourage users to name the executable files differently for each implementation for backwards compatibility.
2. We should inform users they may create metadata for each implementation to make the 2018.1 user experience better.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Thomas Kishel (JIRA)

unread,
Jun 27, 2018, 7:41:04 PM6/27/18
to puppe...@googlegroups.com
Thomas Kishel commented on Story BOLT-614
 
Re: I want to know how to write multi-implementation tasks so they are backwards compatible with PE 2018.1

Bolt docs state that "a task can also have multiple implementation (sic)" and "This information about writing tasks applies for both Puppet Enterprise and Bolt" but in 2018.1.2 ...

[root@pe-201812-master ~]# puppet task show example
    puppetlabs.orchestrator.task/invalid-task: Task example includes multiple matching task files

David Kramer (JIRA)

unread,
Sep 4, 2018, 12:25:03 PM9/4/18
to puppe...@googlegroups.com

David Kramer (JIRA)

unread,
Oct 10, 2018, 12:52:06 PM10/10/18
to puppe...@googlegroups.com

David Kramer (JIRA)

unread,
Oct 10, 2018, 12:52:06 PM10/10/18
to puppe...@googlegroups.com

Michael Smith (JIRA)

unread,
Oct 11, 2018, 1:04:03 PM10/11/18
to puppe...@googlegroups.com

Michael Smith (JIRA)

unread,
Oct 11, 2018, 1:05:03 PM10/11/18
to puppe...@googlegroups.com

Lucy Wyman (JIRA)

unread,
Oct 15, 2018, 9:39:03 AM10/15/18
to puppe...@googlegroups.com

Alex Dreyer (JIRA)

unread,
Oct 15, 2018, 1:40:06 PM10/15/18
to puppe...@googlegroups.com

Halim Wijaya (JIRA)

unread,
Jan 17, 2019, 2:07:03 AM1/17/19
to puppe...@googlegroups.com
Halim Wijaya commented on Story BOLT-614
 
Re: I want to know how to write multi-implementation tasks so they are backwards compatible with PE 2018.1

The updated documentation https://puppet.com/docs/bolt/1.x/writing_tasks.html#tasks-with-multiple-implementations doesn't work with `puppet task` command. Orchestrator looks for executable file that is the same name with the metadata file and will complain the task doesn't exist if it can't find one.

 

 

# puppet task run test::listout --nodes pe-201815-master.puppetdebug.vlan
Starting job ...
Failed to submit job: puppetlabs.orchestrator/unknown-task: The test::listout task does not exist in environment production
# ls -ahl
total 12K
drwxr-xr-x. 2 pe-puppet pe-puppet 74 Jan 16 22:56 .
drwxr-xr-x. 3 pe-puppet pe-puppet 18 Jan 16 22:37 ..
-rw-r--r--. 1 pe-puppet pe-puppet 251 Jan 16 22:56 listout.json
-rw-r--r--. 1 pe-puppet pe-puppet 20 Jan 16 22:37 listout_linux.sh
-rw-r--r--. 1 pe-puppet pe-puppet 14 Jan 16 22:38 listout_windows.ps1

Austin Boyd (JIRA)

unread,
Dec 5, 2019, 6:15:06 AM12/5/19
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages