hortonworks / ansible-hortonworks

Ansible playbooks for deploying Hortonworks Data Platform and DataFlow using Ambari Blueprints
Apache License 2.0
248 stars 253 forks source link

Configuring Ambari for Non-Root #119

Open alexandruanghel opened 5 years ago

alexandruanghel commented 5 years ago

As per https://docs.hortonworks.com/HDPDocuments/HDP3/HDP-3.1.0/securing-credentials/content/ambari_sec_configuring_ambari_for_non_root.html

It should be: 1) Add all options under sudoers file using https://docs.ansible.com/ansible/latest/modules/lineinfile_module.html with validate: '/usr/sbin/visudo -cf %s' 2) Configure ambari server and agent for non-root

lhoss commented 5 years ago

We also needed this for >1 customer .. so here's a (backported) impl: https://github.com/hortonworks/ansible-hortonworks/pull/167