Skip to content

Commit

Permalink
code
Browse files Browse the repository at this point in the history
  • Loading branch information
opoplawski committed Jan 31, 2025
1 parent 07d43ee commit fa11a1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions GENERATING_MODULES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ settings or one where you are adding an item.
## Modules that manage multiple items

If this is a module that will allow you to create multiple items (e.g. aliases, rules):
* Save a minimal item with a name (often Name or Description) of "item_min" (or something else if that does not work).
* Save a minimal item with a name (often Name or Description) of `item_min` (or something else if that does not work).
Simply try immediately saving an item with just that name, then fill out fields one at a time and re-save until pfSense
stops complaining about missing items.
* Save a "fully" configured item with a name of "item_full" (or something else if that will not work). It may be
* Save a "fully" configured item with a name of `item_full` (or something else if that will not work). It may be
helpful to change as many options away from the default as possible. Focus on settings that would be useful to you.
* Run the script:

misc/pfsensible-generate-module --url URL
misc/pfsensible-generate-module --url URL

if you needed to use different names for the items than "item_min" and "item_full" you can set them with the `--item-min` and
if you needed to use different names for the items than `item_min` and `item_full` you can set them with the `--item-min` and
`--item-full` options.

## Modules that configure something
Expand Down

0 comments on commit fa11a1b

Please sign in to comment.