mirror of
https://github.com/saltstack-formulas/sudoers-formula.git
synced 2026-07-16 22:12:21 +02:00
feat(yamllint): include for this repo and apply rules throughout
* Semi-automated using `ssf-formula` (v0.5.0) * Fix errors shown below: ```bash sudoers-formula$ $(grep "\- yamllint" .travis.yml | sed -e "s:^\s\+-\s\(.*\):\1:") pillar.example 6:23 warning truthy value should be one of [false, true] (truthy) test/salt/pillar/kitchen.sls 3:1 warning missing document start "---" (document-start) 7:1 error too many blank lines (1 > 0) (empty-lines) test/salt/pillar/default.sls 1:1 warning missing document start "---" (document-start) 3:23 warning truthy value should be one of [false, true] (truthy) ```
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
---
|
||||
name: default
|
||||
title: sudoers formula
|
||||
maintainer: SaltStack Formulas
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
---
|
||||
sudoers:
|
||||
# By default the main sudoers file is managed by this formula (False to skip)
|
||||
manage_main_config: True
|
||||
manage_main_config: true
|
||||
users:
|
||||
johndoe:
|
||||
- 'ALL=(ALL) ALL'
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# vim: ft=yaml
|
||||
---
|
||||
# Pillar needed to run Inspec inside Docker image using sudo to authenticate
|
||||
# Must be added to pillar of all test suites
|
||||
sudoers:
|
||||
users:
|
||||
kitchen:
|
||||
- 'ALL=(root) NOPASSWD: ALL'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user