diff options
| author | Joey Hess <joey@kitenet.net> | 2014-06-05 16:52:45 -0400 |
|---|---|---|
| committer | Joey Hess <joey@kitenet.net> | 2014-06-05 16:52:45 -0400 |
| commit | f8bad2726760268f1daae2a3329be5db310727b8 (patch) | |
| tree | ab5db4785fee3c7e919213b97975e727e7724907 /config-joey.hs | |
| parent | 383548956354a00cf24323310e9981ccea6a1ddf (diff) | |
| parent | dbffd982bac47cebd3fc67e51b46182f7e43392d (diff) | |
Merge branch 'joeyconfig'
Diffstat (limited to 'config-joey.hs')
| -rw-r--r-- | config-joey.hs | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/config-joey.hs b/config-joey.hs index ae575ea7..3b4e57d6 100644 --- a/config-joey.hs +++ b/config-joey.hs @@ -37,8 +37,9 @@ hosts = -- (o) ` -- My laptop [ host "darkstar.kitenet.net" & ipv6 "2001:4830:1600:187::2" -- sixxs tunnel - & Docker.configured + & Apt.buildDep ["git-annex"] `period` Daily + & Docker.configured & Docker.docked hosts "android-git-annex" -- Nothing super-important lives here and mostly it's docker containers. @@ -162,6 +163,24 @@ hosts = -- (o) ` & Dns.secondaryFor ["animx"] hosts "animx.eu.org" + -- storage and backup server + , standardSystem "elephant.kitenet.net" Unstable "amd64" + & ipv4 "193.234.225.114" + + & Hostname.sane + & Postfix.satellite + & Apt.unattendedUpgrades + + & alias "eubackup.kitenet.net" + & Apt.installed ["obnam", "sshfs", "rsync"] + & JoeySites.githubBackup + + & alias "podcatcher.kitenet.net" + & Apt.installed ["git-annex"] + + & Docker.configured + ! Docker.docked hosts "voltagex" + & Docker.garbageCollected `period` (Weekly (Just 1)) --' __|II| ,. ---- __|II|II|__ ( \_,/\ @@ -210,6 +229,17 @@ hosts = -- (o) ` , let gitannexdir = GitAnnexBuilder.homedir </> "git-annex" in GitAnnexBuilder.androidContainer dockerImage "android-git-annex" doNothing gitannexdir & Docker.volume ("/home/joey/src/git-annex:" ++ gitannexdir) + + -- temp for an acquantance + , standardContainer "voltagex" Stable "amd64" + & Docker.publish "22022:22" + & Docker.memory "500m" + & Docker.cpuShares 1 + & Apt.serviceInstalledRunning "ssh" + & Ssh.permitRootLogin True + & Ssh.passwordAuthentication True + & User.hasSomePassword "root" + ] ++ monsters -- This is my standard system setup. @@ -218,6 +248,7 @@ standardSystem hn suite arch = host hn & os (System (Debian suite) arch) & Apt.stdSourcesList suite `onChange` Apt.upgrade + & Apt.cacheCleaned & Apt.installed ["etckeeper"] & Apt.installed ["ssh"] & GitHome.installedFor "root" @@ -241,7 +272,9 @@ standardContainer :: Docker.ContainerName -> DebianSuite -> Architecture -> Host standardContainer name suite arch = Docker.container name (dockerImage system) & os (System (Debian suite) arch) & Apt.stdSourcesList suite + & Apt.installed ["systemd"] & Apt.unattendedUpgrades + & Apt.cacheCleaned where system = System (Debian suite) arch |
