Cannot install telegraf on Windows server because config_file_mode and config_folder_mode is undefined
jkkitakita opened this issue · 0 comments
jkkitakita commented
Affected Puppet, Ruby, OS and module versions/distributions
- Puppet: 6.18.0
- Puppet Bolt: 2.30.0
- Ruby: 2.5.0
- Distribution: Microsoft Windows Server 2019 Datacenter(GCE)
- Module version:3.1.0
How to reproduce (e.g Puppet code you use)
---
description: Install and configure telegraf
parameters:
targets:
type: TargetSpec
description: The targets to configure
steps:
- description: Install and configure telegraf
name: configure
targets: $targets
resources:
- class: telegraf
return: $configure
bolt plan run telegraf -t localhost
What are you seeing
- I cannot install telegraf
- It worked on windows as well after adding config_file_mode
What behaviour did you expect instead
- I can install telegraf
Output log
Failed on localhost:
Apply failed to compile for localhost: Class[Telegraf]:
parameter 'config_file_mode' expects a match for Stdlib::Filemode = Pattern[/\A(([0-7]{1,4})|(([ugoa]*([-+=]([rwxXst]*|[ugo]))+|[-+=][0-7]+)(,([ugoa]*([-+=]([rwxXst]*|[ugo]))+|[-+=][0-7]+))*))\z/], got Undef
parameter 'config_folder_mode' expects a match for Stdlib::Filemode = Pattern[/\A(([0-7]{1,4})|(([ugoa]*([-+=]([rwxXst]*|[ugo]))+|[-+=][0-7]+)(,([ugoa]*([-+=]([rwxXst]*|[ugo]))+|[-+=][0-7]+))*))\z/], got Undef (line: 4, column: 5)
Failed on 1 target: localhost