18870: Ensure sbin is in cron job PATH
[arvados.git] / tools / salt-install / config_examples / multi_host / aws / states / shell_sudo_passwordless.sls
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: Apache-2.0
4
5 {%- set curr_tpldir = tpldir %}
6 {%- set tpldir = 'arvados' %}
7 {%- from "arvados/map.jinja" import arvados with context %}
8 {%- set tpldir = curr_tpldir %}
9
10 extra_shell_sudo_passwordless_sudo_pkg_installed:
11   pkg.installed:
12     - name: sudo
13
14 extra_shell_sudo_passwordless_config_file_managed:
15   file.managed:
16     - name: /etc/sudoers.d/arvados_passwordless
17     - makedirs: true
18     - user: root
19     - group: root
20     - mode: '0440'
21     - replace: false
22     - contents: |
23         # This file managed by Salt, do not edit by hand!!
24         # Allow members of group sudo to execute any command without password
25         %sudo ALL=(ALL:ALL) NOPASSWD:ALL
26     - require:
27       - pkg: extra_shell_sudo_passwordless_sudo_pkg_installed