Skip to content

Commit

Permalink
Update data types and documentation
Browse files Browse the repository at this point in the history
Re-apply data-type changes for apt::source::pin from 1e1baad
Regenerate puppet strings to match.
  • Loading branch information
jamesps-ebi committed Nov 20, 2024
1 parent 9058119 commit f89242a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#### Private Classes

* `apt::params`: Provides defaults for the Apt module parameters.
* `apt::update`: Updates the list of available packages using apt-get update.

### Defined types
Expand Down Expand Up @@ -403,6 +402,10 @@ Default value:
'path' => $sources_list_d,
'ext' => '.list',
},
'sources' => {
'path' => $sources_list_d,
'ext' => '.sources',
},
}
```

Expand Down Expand Up @@ -1227,7 +1230,7 @@ Default value: `undef`

##### <a name="-apt--source--pin"></a>`pin`

Data type: `Optional[Variant[Hash, Numeric, String]]`
Data type: `Optional[Variant[Hash, Integer, String[1]]]`

Creates a declaration of the apt::pin defined type. Valid options: a number or string to be passed to the `priority` parameter of the
`apt::pin` defined type, or a hash of `parameter => value` pairs to be passed to `apt::pin`'s corresponding parameters.
Expand Down
2 changes: 1 addition & 1 deletion manifests/source.pp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
Hash $include = {},
Optional[Variant[String[1], Hash]] $key = undef,
Optional[Stdlib::AbsolutePath] $keyring = undef,
Optional[Variant[Hash, Numeric, String]] $pin = undef,
Optional[Variant[Hash, Integer, String[1]]] $pin = undef,
Optional[Variant[String[1], Array[String[1]]]] $architecture = undef,
Optional[Boolean] $allow_unsigned = undef,
Optional[Boolean] $allow_insecure = undef,
Expand Down

0 comments on commit f89242a

Please sign in to comment.