propellor spin
This commit is contained in:
parent
3f9945deca
commit
f116d6be5f
|
@ -169,3 +169,20 @@ mainhttpscert True =
|
|||
, " SSLCertificateKeyFile /etc/ssl/private/web.pem"
|
||||
, " SSLCertificateChainFile /etc/ssl/certs/startssl.pem"
|
||||
]
|
||||
|
||||
|
||||
annexRsyncServer :: Property
|
||||
annexRsyncServer = combineProperties "rsync server for git-annex autobuilders"
|
||||
[ Apt.installed ["rsync"]
|
||||
, File.hasPrivContent "/etc/rsyncd.conf"
|
||||
, File.hasPrivContent "/etc/rsyncd.secrets"
|
||||
, "/etc/default/rsync" `File.containsLine` "RSYNC_ENABLE=true"
|
||||
`onChange` Service.running "rsync"
|
||||
, endpoint "/srv/web/downloads.kitenet.net/git-annex/autobuild"
|
||||
, endpoint "/srv/web/downloads.kitenet.net/git-annex/autobuild/x86_64-apple-mavericks"
|
||||
]
|
||||
where
|
||||
endpoint d = combineProperties ("endpoint " ++ d)
|
||||
[ File.dirExists d
|
||||
, File.ownerGroup d "joey" "joey"
|
||||
]
|
||||
|
|
|
@ -98,13 +98,7 @@ hosts = -- (o) `
|
|||
"downloads.kitenet.net"
|
||||
"840760dc-08f0-11e2-8c61-576b7e66acfd"
|
||||
[("turtle", "ssh://turtle.kitenet.net/~/lib/downloads/")]
|
||||
-- rsync server for git-annex autobuilders
|
||||
& Apt.installed ["rsync"]
|
||||
& File.hasPrivContent "/etc/rsyncd.conf"
|
||||
& File.hasPrivContent "/etc/rsyncd.secrets"
|
||||
& "/etc/default/rsync" `File.containsLine` "RSYNC_ENABLE=true"
|
||||
`describe` "rsync server enabled"
|
||||
`onChange` Service.running "rsync"
|
||||
& JoeySites.annexRsyncServer
|
||||
|
||||
& cname "tmp.kitenet.net"
|
||||
& JoeySites.annexWebSite hosts "/srv/git/joey/tmp.git"
|
||||
|
|
Loading…
Reference in New Issue