Skip to content

Commit 3d84887

Browse files
committed
force default allow after deny first
1 parent e98de2a commit 3d84887

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

manifests/init.pp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,13 @@
3737
Array[ String[1] ] $required_pkgs,
3838
) {
3939

40-
include pam_access
40+
include pam_access
4141

4242
### Make sure pam is installed
4343
ensure_packages( $required_pkgs )
4444

4545
### Configure access.conf
4646

47-
pam_access::entry { 'Default Allow':
48-
user => 'root',
49-
origin => 'LOCAL',
50-
permission => '+',
51-
position => 'before',
52-
}
53-
5447
pam_access::entry { 'Default Deny':
5548
user => 'ALL',
5649
origin => 'ALL',
@@ -75,6 +68,13 @@
7568
'position' => 'before',
7669
}
7770
)
71+
-> pam_access::entry { 'Default Allow':
72+
user => 'root',
73+
origin => 'LOCAL',
74+
permission => '+',
75+
position => 'before',
76+
}
77+
7878

7979
### Configure pam
8080
ensure_resources( 'pam', $pam_config )

0 commit comments

Comments
 (0)