fixed user.add
[cf-module-users.git] / user.del
CommitLineData
380e5fc3
LMM
1control:
2
3 MethodName = ( DelUser )
4 MethodParameters = ( user )
5 actionsequence = ( editfiles copy directories timezone )
6
7
8editfiles:
9
10 { /etc/passwd
11
12 AppendIfNoSuchLine "$(user):x:$(uid):$(gid):$(realname):$(home):$(shell)"
13 ResetSearch "1"
14 }
15
16 { /etc/shadow
17 AppendIfNoSuchLine "$(user):$(shadow)"
18 ResetSearch "1"
19 }
20 { /etc/group
21 AppendIfNoSuchLine "$(user):x:$(gid):$(user)"
22 ResetSearch "1"
23 }
24
25
26directories:
27 $(home) mode=700 owner=$(user) group=$(user)
28 $(home)/.ssh mode=700 owner=$(user) group=$(user)
29
30copy:
31
32 /srv/cfengine/office/files$(home)/ssh/authorized_keys dest=$(home)/.ssh/authorized_keys
33 r=inf
34 owner=$(user)
35 group=$(user)
36 mode=400
37 server=$(policyhost)
38 trustkey=true
39
40
41classes:
42
43 dummy = ( any )
44
45alerts:
46 dummy::
47 "This simple method does nothing"
48
49 ReturnVariables(void)
50 ReturnClasses(void)