Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Unable to disable multiple ohai plugins #20

Open
clburlison opened this issue Jan 4, 2018 · 0 comments
Open

Unable to disable multiple ohai plugins #20

clburlison opened this issue Jan 4, 2018 · 0 comments
Labels

Comments

@clburlison
Copy link
Owner

Currently we can't disable multiple ohai plugins since the template code below don't properly handle the comma and line break.

bakeit/client/client.go

Lines 48 to 55 in 0e41518

{{- if .OhaiDisabledPlugins}}
{{ $disabled_plugins := .OhaiDisabledPlugins }}
ohai.disabled_plugins = [
{{ range $disabled_plugins }}
{{- . -}}
{{ end }}
]
{{end}}

Use the following config code to create a broken client.rb file.

	ChefClientOhaiDisabledPlugins = map[string][]string{
		"darwin":  {":Passwd", ":SomethingElse"},
		"windows": {},
		"linux":   {},
	}
@clburlison clburlison added the bug label Jan 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant