Unverified Commit 9a8808b1 authored by Sebastian Rakel's avatar Sebastian Rakel Committed by GitHub
Browse files

Merge pull request #366 from voxpupuli/mode

use Stdlib::Filemode datatype for mode parameters
parents d9321927 7747c9a5
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -778,7 +778,7 @@ Default value: `undef`

##### <a name="-postfix--conffile--mode"></a>`mode`

Data type: `String`
Data type: `Stdlib::Filemode`

Permissions of the configuration file. This option is useful if you want to create the file with
specific permissions (for example, because you have passwords in it).
@@ -954,7 +954,7 @@ Default value: `undef`

##### <a name="-postfix--hash--mode"></a>`mode`

Data type: `Variant[String[4,4], Undef]`
Data type: `Stdlib::Filemode`

the desired file mode

@@ -1078,7 +1078,7 @@ Default value: `undef`

##### <a name="-postfix--map--mode"></a>`mode`

Data type: `String[4,4]`
Data type: `Stdlib::Filemode`

File mode of the created file.

+1 −1
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ define postfix::conffile (
  Variant[Array[String], String, Undef]  $source    = undef,
  Optional[String]                       $content   = undef,
  Optional[Stdlib::Absolutepath]         $path      = undef,
  String                                 $mode      = '0640',
  Stdlib::Filemode                       $mode      = '0640',
  Hash                                   $options   = {},
  Boolean                                $show_diff = true,
) {
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ define postfix::hash (
  Enum['present', 'absent']                   $ensure  = 'present',
  Variant[Array[String], String, Undef]       $source  = undef,
  Optional[Variant[Sensitive[String],String]] $content = undef,
  Variant[String[4,4], Undef]                 $mode    = '0640',
  Stdlib::Filemode                            $mode    = '0640',
) {
  include postfix::params

+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ define postfix::map (
  Optional[Variant[Sensitive[String], String]] $content = undef,
  String[1]                                    $type    = 'hash',
  Optional[Stdlib::Absolutepath]               $path    = undef,
  String[4,4]                                  $mode    = '0640',
  Stdlib::Filemode                             $mode    = '0640',
) {
  include postfix
  include postfix::params