Puppet catalog fails with anonymous access disabled

Hi,

I'm configuring x-pack security using puppet module and noticed when I disable anonymous access by taking out the following settings from ES config
'xpack.security.authc' => {
'anonymous' => {
'username' => 'anonymous_user',
'roles' => 'superuser',
'authz_exception' => true,
},
}

next puppet run fails with any api call into ES using module provider

Error: /Stage[main]/Elasticsearch::License/Elasticsearch_license[xpack]: Could not evaluate: Elasticsearch API responded with: missing authentication token for REST request [/_xpack/license?acknowledge=true] Error: /Stage[main]/Profiles::Lsm::Elasticsearch::Compute::Elasticsearch/Elasticsearch::Template[template_reindexing]/Elasticsearch_template[template_reindexing]: Could not evaluate: Elasticsearch API responded with: missing authentication token for REST request [/_template/template_reindexing]

So the question is obvious - can puppet control ES with anonymous access disabled?

Thanks,
Sergii

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.