summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess2015-04-01 21:17:28 -0400
committerJoey Hess2015-04-01 21:17:28 -0400
commit3cbabe3f765b7e11db32992a5c9a349fc19d0858 (patch)
treed0d714d57243b2662abf5981768a0bf8a8d63055
parenta81b7df742af6ad2d29620029b283ed633ebf808 (diff)
parent8690fea4da3c3f5eb4e50e2a88483eeb66e01fa3 (diff)
Merge branch 'joeyconfig'
-rw-r--r--config-joey.hs15
1 files changed, 14 insertions, 1 deletions
diff --git a/config-joey.hs b/config-joey.hs
index 36378366..5b134c45 100644
--- a/config-joey.hs
+++ b/config-joey.hs
@@ -303,8 +303,11 @@ beaver = host "beaver.kitenet.net"
"rsync -a -x / /home/joey/lib/backup/beaver.kitenet.net/"
iabak :: Host
-iabak = host "ia-bak.joeyh.name"
+iabak = host "iabak.archiveteam.org"
+ & aias "ia-bak.joeyh.name"
& ipv4 "124.6.40.227"
+ & os (System (Debian Testing) "amd64")
+ & Apt.stdSourcesList `onChange` Apt.upgrade
& Apt.installed ["git"]
& Apt.installed ["etckeeper"]
& Apt.installed ["ssh"]
@@ -314,6 +317,16 @@ iabak = host "ia-bak.joeyh.name"
& User.hasSomePassword "joey"
& Sudo.enabledFor "joey"
& GitHome.installedFor "joey"
+ & Git.cloned "root" repo "/usr/local/IA.BAK" (Just "server")
+ & Git.cloned "www-data" repo "/usr/local/IA.BAK/pubkeys" (Just "pubkey")
+ & Apt.serviceInstalledRunning "apache2"
+ & cmdProperty "ln" ["-sf", "/usr/local/IA.BAK/pushme.cgi", "/usr/lib/cgi-bin/pushme.cgi"]
+ & Apt.installed ["sudo"]
+ & File.containsLine "/etc/sudoers" "www-data ALL=NOPASSWD:/usr/local/IA.BAK/pushed.sh"
+ & Cron.niceJob "shardstats" (Cron.Times "*/30 * * * *") "root" "/"
+ "/usr/local/IA.BAK/shardstats SHARD1"
+ where
+ repo = "https://github.com/ArchiveTeam/IA.BAK/"
--' __|II| ,.
---- __|II|II|__ ( \_,/\