-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit.lisp
More file actions
68 lines (68 loc) · 2.05 KB
/
Copy pathgit.lisp
File metadata and controls
68 lines (68 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
(resource 'group "git"
:gid 7000
:ensure :present)
(resource 'user "git"
:uid 7000
:gid 7000
:home (homedir "git")
:shell "/usr/local/bin/git-auth"
:ensure :present)
(resource 'directory "/etc/git"
:owner "root"
:group "git"
:mode #o770
:ensure :present)
(resource 'file "/etc/git/auth.conf"
:owner "git"
:group "git"
:mode #o640
:ensure :present)
(resource 'directory (homedir "git")
:owner "git"
:group "git"
:mode #o750
:ensure :present)
(resource 'directory (str (homedir "git") "/.ssh")
:owner "git"
:group "git"
:mode #o700
:ensure :present)
(resource 'file (str (homedir "git") "/.ssh/authorized_keys")
:owner "git"
:group "git"
:mode #o600)
(resource 'group "git-backup"
:gid 7001
:ensure :present)
(resource 'user "git-backup"
:uid 7001
:gid 7001
:groups '("git-backup" "git")
:home (homedir "git-backup")
:shell "/bin/ksh"
:ensure :present)
(resource 'directory (homedir "git-backup")
:owner "git-backup"
:group "git-backup"
:mode #o700
:ensure :present)
(resource 'directory (str (homedir "git-backup") "/.ssh")
:owner "git-backup"
:group "git-backup"
:mode #o700
:ensure :present)
(resource 'file (str (homedir "git-backup") "/.ssh/authorized_keys")
:owner "root"
:group "git-backup"
:mode #o640
:content (read-file "git/home/git-backup/.ssh/authorized_keys"))
(resource 'directory (str (homedir "git-backup") "/.bin")
:owner "git-backup"
:group "git-backup"
:mode #o700
:ensure :present)
(resource 'file (str (homedir "git-backup") "/.bin/backup")
:owner "root"
:group "git-backup"
:mode #o750
:content (read-file "git/home/git-backup/.bin/backup"))