propellor

propellor config for hosts.
git clone git://git.ricketyspace.net/propellor.git
Log | Files | Refs | LICENSE

commit e11837c1e5089d6f1d4b3b1fc6c4bb9e4925f1fb
parent 78b0f0282b2decef3b1ff33a961fc34e6dfb2c84
Author: rsiddharth <s@ricketyspace.net>
Date:   Fri,  5 Jul 2019 20:59:31 -0400

config.hs: Remove crux.

Diffstat:
config.hs | 32+-------------------------------
1 file changed, 1 insertion(+), 31 deletions(-)

diff --git a/config.hs b/config.hs @@ -62,10 +62,7 @@ main = defaultMain hosts -- The hosts propellor knows about. hosts :: [Host] -hosts = privateHosts ++ publicHosts - -privateHosts :: [Host] -privateHosts = [ crux ] +hosts = publicHosts publicHosts :: [Host] publicHosts = [ ara, lyra ] ++ m31 @@ -80,32 +77,6 @@ sAraSshPubKey = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDTn+zicq75blG6yWY0GIkba93 sLyraSshPubKey :: [Char] sLyraSshPubKey = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0UdjqvAo5lICg0BwGv6aQVSO+Ew6ZXFwbwpZiXhZ03+P/Wk98mJJUln+NaKC9lbjQnAShviBy5BIPbexQJ21vvP6mh13Z6xPPtHWRYUy+Y0GYvnc8yKfsnJ2bDaXobpAprfwWpwhW01ZC2xehaZxE+w8dwdAP4v53w5XlLU733f19vRqis4Y0/jyse2BMpsVGzWiLRLprjeLOgdcDB+yLP+EnM46Yj5z0xchbO2uCozloX1yhExDJ2Z4MITx397+/3GYaPEytcMVD/YmIScU4y4nqwa8O/sg5miamD6HUzAWKOHkHgf1HosDbz4JHcEwJqgSvqTeVJ5UWWuPK7YfJ s@cygnus.ricketyspace.net" --- configure crux -crux :: Host -crux = host "crux.ricketyspace.net" $props - & osDebian (Stable "stretch") X86_64 - & File.hasContent "/etc/motd" (["At crux."]) - -- apt - & Apt.stdSourcesList - & Apt.unattendedUpgrades - & Apt.safeUpgrade - -- s config. - & User.accountFor (User "s") - & User.hasLoginShell (User "s") "/bin/bash" - & User.hasSomePassword (User "s") - & Ssh.userKeyAt (Just sCruxSshKeyPath) (User "s") - hostContext (SshRsa, sCruxSshKeyPub) - -- system config. - & Cron.job "etc-push" (Cron.Times "15 00 * * *") (User "root") - "/etc" "git push" - & Fail2Ban.installed - -sCruxSshKeyPath :: [Char] -sCruxSshKeyPath = "/home/s/.ssh/id_rsa" - -sCruxSshKeyPub :: [Char] -sCruxSshKeyPub = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC7uhKZgiMr0G0NDUQBz/3AOJNzPeq3EZS8y62rvAHt8Mc7qvjjLjW/rNmPRDMU+6y0RcbKiZfzyUdPHYddD73iftFQs8PkAkKbgjCKZus+Id+/Q6gjSmn9LMHDbyAcy6QpADIfZDm2k0cKuNNlnj4xGtSkxnzGnw+bR0oFmvCM+bDEq3Vz7b0hJYCQqPsUVEOw0SNHGtMa9y6iqpuuN/HSYainsjviDvReuo5qUOY7tmygx/6uge13BjKhhsTvg5KQkgtTYvSo+pxdO4Jgk60wnmFGK93+WoJBD2A0KRhOaelQ5SkgDv9sKf4Uhtb8ANCuneMBRBPHjlaMk59JzVUCHS8qSXYvklFkwUahqwUsd3TOfc93tNAnv90hJkzm4PtkjmC4iWMDNmjIflulKh2v6ul7ZJ/appHUrqM3qJVYTV+MXB1jduw90dR+K9ThroeSSw1aKUW1ijkgjFEt+l6R4CLHvBbfdYt4EbKU/v+GJlP5aQbUT0PGAotqeyX58L6iOCTlRRUm94uVjtakoiBAAZi1m0z0/AEMRxtc8Eym8vXiNcULeConcn+rMm5fYdC9NysPJcEu6P+ycx74Klw82sBvWMS/oek/Tn/B2WRwRbPVl3rxz1gwDDA/sE3UKnj04LCQXRdYMKEndPqsA8eD/WgWXBubxj6ThoAtSV7Czw== s@cygnus" - -- configure ara ara :: Host @@ -295,7 +266,6 @@ lyra = host "lyra.ricketyspace.net" $props & User.accountFor (User "w") & User.hasGroup (User "w") (Group "pubs") & Ssh.authorizedKey (User "w") sCanonicalSshPubKey - & Ssh.authorizedKey (User "w") sCruxSshKeyPub --- pub dir config & File.dirExists "/home/w/pub" & File.ownerGroup "/home/w/pub" (User "w") (Group "pubs")