# What is the difference between environment and roles

**URL:** <https://discuss.elastic.co/t/what-is-the-difference-between-environment-and-roles/176343>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 11, 2019, 7:47am UTC](https://discuss.elastic.co/t/what-is-the-difference-between-environment-and-roles/176343 "2019-04-11T07:47:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohan\_Selvam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohan_selvam/32/43587_2.png) [@Mohan\_Selvam](https://discuss.elastic.co/u/Mohan_Selvam)\
**Post date:** [April 11, 2019, 7:47am UTC](https://discuss.elastic.co/t/what-is-the-difference-between-environment-and-roles/176343/1 "2019-04-11T07:47:54Z")

</div>

Can anyone please tell me the difference between roles and environments, if i apply the roles i need to run the chef-client same as environment , chef client runs both env and role and it makes the environment attributes overridden by roles, so how can i run the environment alone without roles?

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [April 11, 2019, 12:17pm UTC](https://discuss.elastic.co/t/what-is-the-difference-between-environment-and-roles/176343/2 "2019-04-11T12:17:40Z")

</div>

@Mohan_Selvam I have not much experience with chef sadly, maybe you could look at chef forum. ☹

---

<div class="post-metadata">

**Author:** ![Mohan\_Selvam](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mohan_selvam/32/43587_2.png) [@Mohan\_Selvam](https://discuss.elastic.co/u/Mohan_Selvam)\
**Post date:** [April 11, 2019, 1:00pm UTC](https://discuss.elastic.co/t/what-is-the-difference-between-environment-and-roles/176343/3 "2019-04-11T13:00:00Z")

</div>

haha, anyway i found the solution, problem is on me, i just overridden a file instead of a attributes

---

<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:** [May 9, 2019, 1:00pm UTC](https://discuss.elastic.co/t/what-is-the-difference-between-environment-and-roles/176343/4 "2019-05-09T13:00:04Z")

</div>

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