Eric Veiras Galisson
d5002c3c25
refactor: change pillar calls
3 years ago
Eric Veiras Galisson
ee173b0041
refactor: convert map.jinja to new standards
3 years ago
Imran Iqbal
63865a286e
test(map): verify `map.jinja` dump using `_mapdata` state
...
* Semi-automated using https://github.com/myii/ssf-formula/pull/245
3 years ago
Andre Sencioles
b925a00048
Fix issue #25
...
Add "makedirs: True" to the included.sls file as suggested by @tjuup
5 years ago
Sebastian Meyer
73d2d70dbb
Make management of the main sudoers config optional
...
It should be possible to not overwrite the main sudoers configuration
file and only provide files to be included. This introduces a new Pillar
variable to achieve that. If it's not set we default to the old
behaviour of managing that file.
5 years ago
9numbernine9
d5d68ea963
Add support for netgroups
5 years ago
Adrien "ze" Urban
bc62b6e567
dictsort: ensure the dict order is stable
...
Makes changes easier to read when adding/removing an entry.
Other lines will not be reordered because of unrelated stuffs.
5 years ago
Jessy
e4501d10d3
added includedir as variable (mostly for FreeBSD)
...
include files can now be specified with the filename only.
5 years ago
Alejandro Bednarik
ae1b5dab1b
Update include.sls with correct execprefix reference
...
Sorry Imissed this update
6 years ago
abednarik
24e66ca8bf
Remove dashes from variables.
...
Dashes causes some weird issues while rendering jinja templates.
6 years ago
Matthew X. Economou
672cd20672
Use correct pathname of visudo on FreeBSD
7 years ago
Roman Reitschmied
8d3f4d9894
add sudoers check with visudo as proposed here: https://blog.afoolishmanifesto.com/posts/checking-sudoers-with-visudo-in-saltstack/
7 years ago
Niels Abspoel
052923a076
added opensuse support
8 years ago
Simon Lloyd
34f3aed102
Fix overwriting dictionary with pillar data.
...
The dictionary ``sudoers`` is defined twice instead of once,
and then updated with additional values from pillar data. This
prevents looking up map values. This patch updates, instead of
overwrites the dictionary.
9 years ago
Robert Fairburn
3db683d657
Fixes escaped spaces in users/groups
9 years ago
Niels Abspoel
c2265a81f6
Added archlinux support and improved lookup table
9 years ago
Niels Abspoel
78b8323716
updated pillar lookup with map.jinja
9 years ago
Simon Lloyd
ffc287bf34
included_files default changed to empty dict.
9 years ago
ymage
e732663da9
Revert change
...
The '#' here does not indicate a comment
9 years ago
ymage
f9e8655284
Update sudoers
...
Enable includedir
9 years ago
Jason Wolfe
5f6395fc43
FreeBSD support with group 0 being wheel, clean up config-path
9 years ago
Kevin Bowling
8fa0d85ac9
Initial FreeBSD support
9 years ago
Andrew Vant
c9230f1b14
Added Linux Mint support.
9 years ago
Andrew Vant
8bf6d6711f
Fixed default permissions for Debian-based distributions.
...
The code around lines 84 and 91 expects 'specs' to be a list,
but the defaults provide a single string value. This causes
wrong behavior if sudoers:users or sudoers:groups are not
specified in pillar.
9 years ago
Robert Fairburn
cd1ddcf25f
allow for multiple lines for the same user or group
9 years ago
Reuven V. Gonzales
3744718f8c
Correctly set variables for template
9 years ago
Robert Fairburn
fb3773a605
switch default from list to dict on include to match the global configuration
9 years ago
Robert Fairburn
1c3e6844bc
Fix broken logic surrounding includes and Debian defaults
9 years ago
Robert Fairburn
7662f1272e
attempt to resolve error processing files missing defaults
9 years ago
Robert Fairburn
6941d548fb
Add support for Amazon Linux
9 years ago
Robert Fairburn
595f90c5d4
fix typo in the sudoers file that was causing the wrong data to get populated under new fields
9 years ago
Robert Fairburn
ac278d226c
Extend defaults section of sudoers to permit the following:
...
Default_Type ::= 'Defaults' |
'Defaults' '@' Host_List |
'Defaults' ':' User_List |
'Defaults' '!' Cmnd_List |
'Defaults' '>' Runas_List
9 years ago
Carlos Perelló Marín
642a93d7df
Improved default values for Debian based distributions to match the distribution default values
9 years ago
Carlos Perelló Marín
461107d8db
Added sudoers.included formula to manage included sudoers files
9 years ago
Evan Borgstrom
ba9c94ce91
Add missing hash on custom includedir
10 years ago
Kenneth Wilke
7f4a0d6834
more newline removal
10 years ago
Kenneth Wilke
1c652bdffe
more newline removal
10 years ago
Kenneth Wilke
7100b0ed13
small newline removal
10 years ago
Kenneth Wilke
3db435dcdd
template cleanup
10 years ago
Kenneth Wilke
7ae89c11ec
user/group fix
10 years ago
Kenneth Wilke
61a216de81
fleshed out template
10 years ago
Kenneth Wilke
34178002e7
alias test
10 years ago
Kenneth Wilke
4f842bf457
includedir fix
10 years ago
Kenneth Wilke
ffda08bc09
init.sls fix
10 years ago
Kenneth Wilke
be815275bb
fixed pkgs variable
10 years ago
Kenneth Wilke
8eb95cfcda
start of sudoers formula
10 years ago