Skip to content

Commit 7c43a40

Browse files
committed
Add git-sync user
for GitHub -> git.ruby-lang.org sync over SSH
1 parent d9e9bcc commit 7c43a40

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

recipes/default.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
include_recipe 'postfix'
1010
include_recipe 'cgit'
1111
include_recipe 'git-user'
12+
include_recipe 'git-sync-user'
1213
include_recipe 'git-sync-check'
1314

1415
remote_file '/etc/sudoers'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJWzYmv0cH2HnvHe7jdluQ1GcOStHohoas4XHYZR4EQF

recipes/git-sync-user.rb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
user "git-sync" do
2+
shell "/bin/bash"
3+
home "/home/git-sync"
4+
end
5+
6+
directory "/home/git-sync" do
7+
owner "git-sync"
8+
group "git-sync"
9+
mode "0755"
10+
end
11+
12+
directory "/home/git-sync/.ssh" do
13+
owner "git-sync"
14+
group "git-sync"
15+
mode "0700"
16+
end
17+
18+
remote_file "/home/git-sync/.ssh/authorized_keys" do
19+
owner "git-sync"
20+
group "git-sync"
21+
mode "600"
22+
end

0 commit comments

Comments
 (0)