Create a defined type
To create a defined type for your module, use the pdk new defined_type
command.
The pdk new defined_type
command
creates a defined type manifest, with the naming convention defined_type_name.pp
, and a test
file.
- From the command line, in your module's directory,
run
pdk new defined_type <DEFINED_TYPE_NAME>
Results
PDK creates the new defined type
manifest and a test file (defined_type_spec.rb
) in your module's /spec/defines
directory. The test template
checks that your defined type compiles on all supported operating systems as listed
in the metadata.json
file. You can then write additional tests in the provided file to validate your
defined type's behavior.