Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install telegraf on Windows server because config_file_mode and config_folder_mode is undefined #155

Closed
jkkitakita opened this issue Oct 11, 2020 · 0 comments · Fixed by #156

Comments

@jkkitakita
Copy link
Contributor

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

Any additional information you'd like to impart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant