# Puppet catalog fails with anonymous access disabled

**URL:** <https://discuss.elastic.co/t/puppet-catalog-fails-with-anonymous-access-disabled/214568>\
**Category:** Elasticsearch\
**Created:** [January 10, 2020, 9:06am UTC](https://discuss.elastic.co/t/puppet-catalog-fails-with-anonymous-access-disabled/214568 "2020-01-10T09:06:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![szemlyanoy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/szemlyanoy/32/22173_2.png) [@szemlyanoy](https://discuss.elastic.co/u/szemlyanoy)\
**Post date:** [January 10, 2020, 9:06am UTC](https://discuss.elastic.co/t/puppet-catalog-fails-with-anonymous-access-disabled/214568/1 "2020-01-10T09:06:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 7, 2020, 9:06am UTC](https://discuss.elastic.co/t/puppet-catalog-fails-with-anonymous-access-disabled/214568/2 "2020-02-07T09:06:41Z")

</div>

Closed on February 7, 2020, 9:06am UTC

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