Micah Anderson
208aefb872
Merge branch 'koumbit' into shared
2013-06-22 14:32:36 -04:00
Antoine Beaupré
81a06483fc
fix typo
2013-06-22 13:48:10 -04:00
Antoine Beaupré
73c5057e01
fix default case
2013-06-22 13:45:02 -04:00
Antoine Beaupré
b38db28f70
add sample sudoers file from Debian Wheezy
2013-06-22 13:40:28 -04:00
Antoine Beaupré
5c2d174fa1
add some tests
2013-06-22 13:40:28 -04:00
Antoine Beaupré
a47e787de8
always install the sudo package
2013-06-22 13:40:28 -04:00
Antoine Beaupré
6b8fb05ac9
remove duplicate code between linux and freebsd
...
now everything is managed through parameters
we still don't install the package on platforms other than freebsd and
linux to respect the current policy, so this actually is just a refactoring
2013-06-22 13:40:28 -04:00
Antoine Beaupré
92073a7370
make the path sudoers a parameter too
...
this simplifies the freebsd code greatly
2013-06-22 13:40:28 -04:00
Antoine Beaupré
6df937e3ed
use Smart Parameter Defaults pattern to fix freebsd path
2013-06-22 13:40:28 -04:00
Antoine Beaupré
1f777fc52d
deploy the sudoers directory even if we don't overwrite sudoers
2013-06-22 13:40:28 -04:00
Antoine Beaupré
f4f40c5718
autoloading fix
2013-06-22 13:40:28 -04:00
Antoine Beaupré
81c6a5f6d0
style
2013-06-22 12:58:45 -04:00
Antoine Beaupré
7812183189
sudoersdir/dir to avoid redundancy
2013-06-22 12:58:08 -04:00
Antoine Beaupré
e3eef47070
fix syntax error
2013-06-22 12:55:28 -04:00
Antoine Beaupré
7f3f14f084
fix syntax error in 2.6
2013-06-22 12:54:50 -04:00
Antoine Beaupré
b3d158a696
make the user default work
2013-06-22 12:50:49 -04:00
Antoine Beaupré
f02dcffe22
make the sudoers directory parametrized
2013-06-22 12:38:41 -04:00
Antoine Beaupré
b6cd3ed6ce
Merge remote-tracking branch 'shared/master'
...
Conflicts:
manifests/init.pp
2013-06-22 12:29:48 -04:00
Micah Anderson
c0a3c67678
add Debian sudoers file
2013-06-22 12:18:22 -04:00
Gabriel Filion
3ac9c6fbb3
rename user-alias to user_alias
...
the name is good but we'd like to avoid dashes since it's deprecated
starting with puppet 2.7
2013-04-25 19:00:31 -04:00
Gabriel Filion
9c4d6fc6ec
lint manifests
...
respect style from best practices. this makes the code a lot easier to
read.
also change groups from "root" to "0" to make them more portable (e.g.
in freebsd, the admin group is "wheel" but has gid "0")
2013-04-25 18:58:04 -04:00
Gabriel Filion
d705c23880
change name to "access"
...
the term is more generic and avoids dashes in the name (which are
deprecated from puppet 2.7)
2013-04-25 18:51:18 -04:00
Antoine Beaupré
afb1b24143
remove needless else clause
2013-04-24 16:08:42 -04:00
Antoine Beaupré
855e89eda2
style
2013-04-24 16:06:13 -04:00
Antoine Beaupré
9b44575264
make the filename use title so that overrides don't leave files behind
2013-04-24 16:05:38 -04:00
Antoine Beaupré
d996ff9797
style
2013-04-24 16:04:45 -04:00
Antoine Beaupré
bf7c40b7f4
explaine again
2013-04-24 16:04:12 -04:00
Antoine Beaupré
6800b023a9
explain a little
2013-04-24 16:03:41 -04:00
Antoine Beaupré
153a9e8348
fix modes
2013-04-24 15:35:33 -04:00
Antoine Beaupré
02624d72aa
cosmetic
2013-04-24 15:28:49 -04:00
Antoine Beaupré
845161de0a
don't use non-existent admin group
2013-04-24 15:27:25 -04:00
Antoine Beaupré
a5dc3d88fd
add back the user parameter
...
it seems we can discriminate on the name parameter, it gives us duplicates as both title and name need to be unique
2013-04-24 15:23:55 -04:00
Antoine Beaupré
1bc29f5ff5
use the builtin name variable instead of creating a new one
...
this allows us to simplify the manifests by using:
extra-access { 'user': }
.. instead of having to explicitely set it.
if we need to have multiple users, we can do:
extra-access { 'user_foo': name => 'user' }
2013-04-24 14:42:06 -04:00
Antoine Beaupré
819abc4863
add sane defaults for access
2013-04-24 14:35:25 -04:00
Antoine Beaupré
8f4a33e33b
remove notification on apache2 service
2013-04-24 14:33:32 -04:00
Antoine Beaupré
4aa05ebb49
files were reversed
2013-04-24 14:29:04 -04:00
Antoine Beaupré
64cc4ce4e6
remove backward compat, belongs to koumbit module
2013-04-24 14:28:33 -04:00
Antoine Beaupré
d803e23589
remove backward compat, belongs to koumbit module
2013-04-24 14:28:33 -04:00
Antoine Beaupré
b90df6b916
remove koumbit namespace
2013-04-24 14:28:33 -04:00
Antoine Beaupré
f4e1c13e7c
move extra-access to autoloading rules
2013-04-24 14:28:32 -04:00
Guillaume Beaulieu
0cd13c203b
Respect the autoloader
2013-04-24 14:01:34 -04:00
Guillaume Beaulieu
74e867802c
Initial commit !
2013-04-24 13:44:04 -04:00
Guillaume Beaulieu
84afd1d3c3
Premier commit
2013-04-23 15:59:32 -04:00
Guillaume Beaulieu
d5a1bcaf37
Some fucking class that have some fukcing class
2013-04-22 16:37:17 -04:00
Guillaume Beaulieu
e7dee07acf
First commit, just some crap that was in koumbit for no reason !
2013-04-22 16:00:28 -04:00
mh
8fb70213a0
take hiera out of the params
2012-06-14 10:56:01 -03:00
mh
57480e6e9a
refactor things for >2.7
2012-06-08 13:18:33 -03:00
Gabriel Filion
feac8168df
Add FreeBSD support
...
FreeBSD does things its own way, sometimes.. The sudoers file is found
in /usr/local/etc instead of /etc.
Add this distinction in the manifests and also add a default sudoers
file for FreeBSD so that it sets up sudo access for the wheel group, as
is the default on this OS.
Finally, ensure that FreeBSD servers install the 'sudo' package.
Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2011-01-26 09:02:50 -05:00
mh
91ff246251
remove unnecessary fileserver variable ( #2460 )
2010-08-07 02:12:28 +02:00
mh
d7ed7c2565
update to 0.25.x style
2009-11-14 16:02:48 +01:00