Skip to content

Commit

Permalink
improve data types (#28)
Browse files Browse the repository at this point in the history
fixes #22
  • Loading branch information
tuxmea committed Dec 9, 2022
1 parent cf2797a commit 19520d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions types/gitdata.pp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# @summary type to enforce git settings for HDM
type Hdm::Gitdata = Array[
Optional[Struct[
Struct[
{
datadir => Stdlib::Unixpath,
git_url => String[1],
path_in_repo => String[1],
Optional[ssh_priv_key] => String[1],
}
]]
]
]
12 changes: 6 additions & 6 deletions types/ldap_settings.pp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# @summary type to enforce ldap settings for HDM
type Hdm::Ldap_settings = Struct[
{
Optional[host] => Stdlib::Host,
Optional[port] => Stdlib::Port,
Optional[base_dn] => String[1],
Optional[bind_dn] => String[1],
Optional[bind_dn_password] => String[1],
'ldaps' => Boolean,
'host' => Stdlib::Host,
'port' => Stdlib::Port,
'base_dn' => String[1],
'bind_dn' => String[1],
'bind_dn_password' => Sensitive,
'ldaps' => Boolean,
}
]

0 comments on commit 19520d0

Please sign in to comment.