Skip to content

Commit

Permalink
(choria-io#476) Add configuration flag to always overwrite the cache
Browse files Browse the repository at this point in the history
Support configuration where local file cache of certificates is always
overwritten

Fix fact discovery so that ginkgo works locally
  • Loading branch information
vjanelle committed Nov 14, 2018
1 parent e213f74 commit 62dd868
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,11 @@ type ChoriaPluginConfig struct {
RubyLibdir []string `confkey:"plugin.choria.agent_provider.mcorpc.libdir" type:"path_split"`

// security plugin
PrivilegedUsers []string `confkey:"plugin.choria.security.privileged_users" type:"comma_split" default:"\\.privileged.mcollective$"`
CertnameWhitelist []string `confkey:"plugin.choria.security.certname_whitelist" type:"comma_split" default:"\\.mcollective$"`
Serializer string `confkey:"plugin.choria.security.serializer" validate:"enum=json,yaml"`
SecurityProvider string `confkey:"plugin.security.provider" default:"puppet" validate:"enum=puppet,file"`
PrivilegedUsers []string `confkey:"plugin.choria.security.privileged_users" type:"comma_split" default:"\\.privileged.mcollective$"`
CertnameWhitelist []string `confkey:"plugin.choria.security.certname_whitelist" type:"comma_split" default:"\\.mcollective$"`
Serializer string `confkey:"plugin.choria.security.serializer" validate:"enum=json,yaml"`
SecurityProvider string `confkey:"plugin.security.provider" default:"puppet" validate:"enum=puppet,file"`
SecurityAlwaysOverwriteCache bool `confkey:"plugin.security.provider" default: "false"`

// file security
FileSecurityCertificate string `confkey:"plugin.security.file.certificate"`
Expand Down
2 changes: 1 addition & 1 deletion server/discovery/facts/facts.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func Match(filters [][3]string, fw *choria.Framework, log *logrus.Entry) bool {
}

if matched == false {
log.Debug("Failed to match fact filter '%#v'", filter)
log.Debugf("Failed to match fact filter '%#v'", filter)
break
}
}
Expand Down

0 comments on commit 62dd868

Please sign in to comment.