propellor

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

commit 7e58c932f7e91aa61f517237ac904e98f9731a5f
parent 64405a5fffd84f28fe355b343d8c8f5794eca37b
Author: rsiddharth <s@ricketyspace.net>
Date:   Sat, 13 Oct 2018 21:19:53 -0400

propellor spin

Diffstat:
config.hs | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/config.hs b/config.hs @@ -166,6 +166,9 @@ sCanonicalSshKeyPath = "/home/s/.ssh/id_the_rsa" sCanonicalSshPubKey :: [Char] sCanonicalSshPubKey = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDd7kT6tpH4zZ/hFlRmSVH1oJZZJJUvoMd89AiskXAq5rBrvZC90WVOF12OTQVQqslUVV2ze7BCC13UEfK5F2xP+7F6FDqSFApV4lBsJWLNbtDlZY23lTYqi/L6muq3x5tbqJLQjUK5ItORe0Ecqqz1ymSy+Zk+kHmHfnqyoWAQ7Z5GJkRu1B4J9uT3LJDIgLE8m4nJEOoCJ5vnycJfs0LCwHNZ67H38FV3Uw/sGibCNyCSJHQcG+nkKGYzABDcbXmWXedUq0MlRY2TjU22cOzjaAH0mf6M7m6KQCQeXjdxyyLaI3lNOzhBOU7j8/H9GqdRDH8pZ5e4xp+AG3tcrWi2E+47Qp4J9qv0YPgfj7JZ4oJhvCKGkgldOQZ8mkvjDLvAMGte0zpk2SPDlfJeFgfDHMre3nxAAzIfmhaIX2j86LdUh717BmcXDYD//9SubRLdAZrOKh4Iapcotm0STOFUlDa6nvh27DuKIIvq7v/+ID6P4fSNb4h1ktC/3lrhI21ei8ZjBulonJ9XV+BPGlnIzmWL7g5j4dMm90AqZXRRKQMAX9UIizLoCh58KR5gESszQ/8MSrELclI1fUwiY4Wxlvf6ZsGsg3c22xumxlnc85eiAYQ1LEPWNghcyqE96yrIhXrph3unLRsEbZcGxgXw/dcUtjIL9tjDO9zSN6ZuOQ== rsd@grus" +sAraSshPubKey :: [Char] +sAraSshPubKey = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDTn+zicq75blG6yWY0GIkba93FDbWHOo95k2oqrUVr3llmpuRnYCdp6F7LIiRF4NxDA6hBL5JAlxwS0mKgpbzJjbav7S7XxV1HxrtbO/bQqbcH3pvGCuSvltpZg072pB/g1Uhcv9S2FiOHJsedqlGiqUfucuFdRINYk3a8cQVTZ6XB7AxpqGLova3b+1rdhF6c5DSxgMscvZ+zGANN8tmv/0iGERRRdpvePR7iKZp7ZpqrsS4zXHJO537T6Z05lhaD+Fk/sgz5AUT/fkxIVvsNYL23mVS2fQg1htBAZi4vZ7joZn643bc1w6B7oa8nKEagRu4EWw+LbMeKzecIv0pB s@cygnus.ricketyspace.net" + -- start cygnus snafu. sourceCygnusEnv :: [Char] -> [Char] sourceCygnusEnv cmd = ". $HOME/.env; " ++ cmd @@ -609,7 +612,7 @@ ara = host "ara.ricketyspace.net" $props & Sudo.enabledFor (User "s") & Ssh.authorizedKey (User "s") sCanonicalSshPubKey & Ssh.userKeyAt (Just "/homes/s/.ssh/id_rsa") - (User "s") hostContext (SshRsa, "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDTn+zicq75blG6yWY0GIkba93FDbWHOo95k2oqrUVr3llmpuRnYCdp6F7LIiRF4NxDA6hBL5JAlxwS0mKgpbzJjbav7S7XxV1HxrtbO/bQqbcH3pvGCuSvltpZg072pB/g1Uhcv9S2FiOHJsedqlGiqUfucuFdRINYk3a8cQVTZ6XB7AxpqGLova3b+1rdhF6c5DSxgMscvZ+zGANN8tmv/0iGERRRdpvePR7iKZp7ZpqrsS4zXHJO537T6Z05lhaD+Fk/sgz5AUT/fkxIVvsNYL23mVS2fQg1htBAZi4vZ7joZn643bc1w6B7oa8nKEagRu4EWw+LbMeKzecIv0pB s@cygnus.ricketyspace.net") + (User "s") hostContext (SshRsa, sAraSshPubKey) & File.hasContent "/home/s/.tmux.conf" tmuxConf & File.ownerGroup "/home/s" (User "s") (Group "s") -- nginx @@ -748,6 +751,7 @@ lyra = host "lyra.ricketyspace.net" $props & User.accountFor (User "g") & User.hasGroup (User "g") (Group "pubs") & Ssh.authorizedKey (User "g") sCanonicalSshPubKey + & Ssh.authorizedKey (User "g") sAraSshPubKey -- c dir config & File.dirExists "/home/g/c" & File.ownerGroup "/home/g/c" (User "g") (Group "pubs")