Skip to content
Snippets Groups Projects
Commit 294237df authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Make sudoers config optional in bootstrap-servers"

parents 3e5d3f94 8ec92df8
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,7 @@ docker_gpg_fingerprint: "58118E89F3A912897C070ADBF76221572C52609D" ...@@ -9,6 +9,7 @@ docker_gpg_fingerprint: "58118E89F3A912897C070ADBF76221572C52609D"
customize_etc_hosts: True customize_etc_hosts: True
create_kolla_user: True create_kolla_user: True
create_kolla_user_sudoers: "{{ create_kolla_user }}"
kolla_user: "kolla" kolla_user: "kolla"
kolla_group: "kolla" kolla_group: "kolla"
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
path: /etc/sudoers.d/kolla-ansible-users path: /etc/sudoers.d/kolla-ansible-users
state: touch state: touch
become: True become: True
when: create_kolla_user | bool when: create_kolla_user_sudoers | bool
- name: Grant kolla user passwordless sudo - name: Grant kolla user passwordless sudo
lineinfile: lineinfile:
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
regexp: '^{{ kolla_group }}' regexp: '^{{ kolla_group }}'
line: '{{ kolla_group }} ALL=(ALL) NOPASSWD: ALL' line: '{{ kolla_group }} ALL=(ALL) NOPASSWD: ALL'
become: True become: True
when: create_kolla_user | bool when: create_kolla_user_sudoers | bool
- name: Ensure virtualenv has correct ownership - name: Ensure virtualenv has correct ownership
file: file:
......
---
features:
- |
Adds support for skipping the configuration of sudoers files in the
``kolla-ansible bootstrap-servers`` command. This depends on the
``create_kolla_user_sudoers`` variable, which defaults to the same value as
``create_kolla_user``.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment