Antoine Beaupré
c57d39eb42
Merge remote-tracking branch 'shared/master'
2013-06-22 15:45:57 -04:00
Antoine Beaupré
757fee0006
Merge remote-tracking branch 'riseup/master'
2013-06-22 15:44:39 -04:00
Micah Anderson
6b3428b8c2
remove 'include sudo' because this would result in a duplicate definition if you
...
have in your site_sudo something like:
class { 'sudo': deploy_sudoers => true }
instead we just declare a class dependency on the file in the define
2013-06-22 14:51:50 -04:00
Micah Anderson
b4c7849638
Merge remote-tracking branch 'koumbit/master' into shared
2013-06-22 14:40:04 -04:00
Micah Anderson
d5096bc5ef
Merge remote-tracking branch 'koumbit/master' into riseup
2013-06-22 14:39:46 -04:00
Micah Anderson
208aefb872
Merge branch 'koumbit' into shared
2013-06-22 14:32:36 -04:00
Antoine Beaupré
cbdf224424
Merge remote-tracking branch 'riseup/lint'
2013-06-22 14:31:31 -04:00
Antoine Beaupré
b3670d5646
Merge remote-tracking branch 'riseup/bug/fix_param_var'
2013-06-22 14:30:15 -04:00
Antoine Beaupré
7d662758fa
add a README explaining how to use this
2013-06-22 14:29:22 -04:00
Micah Anderson
5b6d816776
fix parameter variable
2013-06-22 14:24:47 -04:00
Micah Anderson
6f8ba040e5
lint the init.pp
2013-06-22 14:11:30 -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