Questions tagged [pdk]

Puppet Development Kit (PDK) is suite of CLI tools which assist puppet developers produce quality modules.

Puppetlabs developed the PDK to provide puppet developers a toolset which can streamline and speed up the process of module development using a common approach to classes, tasks, syntax linting and unit testing. For more information vist Puppet Development Kit official page

Puppet developers write code using Puppets own Domain Specific Language (DSL) which is a declarative language primarily whilst also being able to leveraging other languages such as Ruby for defined types and custom facts to extend its capabilities.

Other languages such as Bash, Python, PowerShell can also be used in certain cases to also extend Puppet's capabilities but these languages are restricted to specific cases such as exec resources and external facts.

To utilize PDK the appropriate installer will need to be downloaded and installed on your operating system which will then provide the commandline tools such as:

  1. pdk new <module/class/task>
  2. pdk test unit
  3. pdk validate.

While using PDK, its important to take note of the version that is installed and the Puppet version it relates to, to ensure best compatibility between the module and the puppet infrastructure being supported.

22 questions
9
votes
2 answers

Return a Perl object from a different Perl class to C# using PerlNET

I have two Perl modules which I want to expose as object types to C#. One of them constructs objects of the other type and returns it using a method as shown below. I'm including a reference to Type2.dll in Type1.dll, and referencing them both in…
DougWebb
  • 680
  • 5
  • 11
3
votes
1 answer

Pinterest PDK createPin(...) issue

While creating a new pin using PDK's createPin() method for Android app, public void createPin(String note, String boardId, String imageUrl, String link, PDKCallback callback) it throws error response with error code 400, With no proper error…
debugger
  • 580
  • 1
  • 6
  • 16
2
votes
2 answers

Pinterest sdk callback class error: cannot access Response class file for com.android.volley.Response not found

I am trying to integrate Pinterest for sharing blog/creating a pin. I am following the official documentation, tutorial1 and tutorial2 to integrate the Pinterest. But, the issue is when I try to authorize the user and pass PDKCallback object into…
Riddhi Shah
  • 3,092
  • 5
  • 36
  • 56
2
votes
0 answers

Set new startTime and endTime on videojs

My problem is that I'm trying to reposition the start time and end time on the seek bar. My use case is this: i'm watching the video with a progress bar that go from 0 to 300 sec (e.g.). When i arrive at 200 sec, i want to set start time at 200 sec…
goltornate
  • 103
  • 1
  • 10
2
votes
1 answer

how to make perl script into installer exe or msi

I am creating the perl script/programming's and converting into *.EXE by Perlapp perl development kit (PDK) application however I want to know whether the same application can use to make the *EXE as an Installer or MSI. Or else we have any other…
ssr1012
  • 2,573
  • 1
  • 18
  • 30
2
votes
1 answer

RegSvr32 registering yet nothing actually registered

A rather odd experience. Using the latest PDK (v7.3) from ActiveState, I used perlctrl to build a COM DLL. Perlctrl ran without a hitch. OLEView read the typelib okay. RegSvr32 registered it okay. However ... there's no sign of it in registry, and…
bugmagnet
  • 7,631
  • 8
  • 69
  • 131
1
vote
0 answers

WebOS Logging PDK on emulator

How can I log runtime information from a native application running on the WebOS emulator. I just need to get some output from the emulator. I've used the badfont example. I've SSH:d into the emulator and used tail -f /var/log/messages | grep…
1
vote
1 answer

Test an inner class exists with RSpec and PDK

I have a fairly basic puppet module for a webservice running tomcat. I want to setup logrotate on Tomcat's catalina.out file, and I want to start by writing a test that confirms logrotate is included in the module and setup with the correct…
Frangipanes
  • 380
  • 2
  • 14
1
vote
1 answer

Error on integrating pdk (pinterest sdk )

I wanted to integrate pinterest to share a link on pinterest. for that, I downloaded pdk from the official document. But when I tried to run the app, I faced some compilation errors for following classes org.apache.http.NameValuePair and…
Riddhi Shah
  • 3,092
  • 5
  • 36
  • 56
1
vote
2 answers

Puppet Development Kit test unit with multiple output targets

We have introduced the PDK lately into our developments chain and are now trying to make everybody happy with the test outputs it generates. We need an output as JUnit test report for our jenkins jobs. That we have solved. And we need the output…
Michael P.
  • 33
  • 6
0
votes
1 answer

Installing webOS PDK on Windows with Visual Studio

Because webOS has been made open-source now it seems to make sense that it is worthwhile developing for because more people will come to the platform. I've had a look at some of the JavaScript stuff and decided that I don't like the look of it so I…
Thomas Denney
  • 1,578
  • 2
  • 15
  • 25
0
votes
1 answer

Does anyone know how to fix Puppet pdk error?

[✔] Running puppet validators ... ├── [✔] Checking Puppet manifest syntax (**/*.pp). └── [✔] Checking Puppet manifest style (**/*.pp). ✖] Running ruby validators ... └── [✖] Checking Ruby code style (**/**.rb). Pdk validate fails Pdk validate fails
0
votes
2 answers

How can I override facter's os facts during local testing on a different operating system?

Environment I am currently using Puppet 6.21.1 on Ruby 2.7.4 with PDK 2.3.0 (mostly for linting and launching the Puppet console as a REPL). The OS is macOS Monetery. If it matters, I'm running Ruby under RVM 1.29.12-next with a module-specific…
Todd A. Jacobs
  • 81,402
  • 15
  • 141
  • 199
0
votes
1 answer

Using a defined type of an yet unreleased puppet module

We are currently developing three puppet modules. One contains a Defined Type which the other two shall use. This module, lets call it ModuleA, is not released yet into our local forge/repository and will not until it was successfully implemented…
Michael P.
  • 33
  • 6
0
votes
1 answer

OS Specific Puppet Unit Test

I'm still getting up to speed on Puppet and rspec and all that, but... We've currently got a CI runner that tests our Puppet module code using a Docker container running on Linux. Well, we're now delving into using Windows-specific features of…
Rick
  • 245
  • 3
  • 13
1
2