propellor spin

This commit is contained in:
Joey Hess 2015-04-21 23:08:10 -04:00
parent dc22e14341
commit d3dbdb1f4d
Failed to extract signature
1 changed files with 4 additions and 1 deletions

View File

@ -39,8 +39,11 @@ registrationServer knownhosts = propertyList "iabak registration server" $ props
& Git.cloned "registrar" userrepo "/home/registrar/users" (Just "master") & Git.cloned "registrar" userrepo "/home/registrar/users" (Just "master")
& Apt.serviceInstalledRunning "apache2" & Apt.serviceInstalledRunning "apache2"
& Apt.installed ["perl", "perl-modules"] & Apt.installed ["perl", "perl-modules"]
& cmdProperty "ln" ["-sf", "/home/registrar/IA.BAK/registrar/register.cgi", "/usr/lib/cgi-bin/register.cgi"] & cmdProperty "ln" ["-sf", "/home/registrar/IA.BAK/registrar/register.cgi", link]
& cmdProperty "chown" ["-h", "registrar:registrar", link]
& File.containsLine "/etc/sudoers" "www-data ALL=(registrar) NOPASSWD:/home/registrar/IA.BAK/registrar/register.pl" & File.containsLine "/etc/sudoers" "www-data ALL=(registrar) NOPASSWD:/home/registrar/IA.BAK/registrar/register.pl"
where
link = "/usr/lib/cgi-bin/register.cgi"
graphiteServer :: Property HasInfo graphiteServer :: Property HasInfo
graphiteServer = propertyList "iabak graphite server" $ props graphiteServer = propertyList "iabak graphite server" $ props