Popularity
4.4
Declining
Activity
0.0
Stable
3
4
0

Monthly Downloads: 16
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Network     Cloud     Distributed Computing    

linode alternatives and similar packages

Based on the "Cloud" category.
Alternatively, view linode alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of linode or a related project?

Add another 'Cloud' Package

README

haskell-linode

Build Status

Haskell bindings to the Linode API. Rent servers hourly or monthly.

This package contains some helpers to create and configure Linode instances. The API key can be created on the Linode website.

Usage example. We want to create one Linode instance in Atlanta with 1GB of RAM:

import Network.Linode
import Data.List (find)
import qualified System.Process as P
import Data.Foldable (traverse_)
import Data.Monoid ((<>))

main :: IO()
main = do
  apiKey <- fmap (head . words) (readFile "apiKey")
  sshPublicKey <- readFile "id_rsa.pub"
  let options = defaultLinodeCreationOptions {
    datacenterChoice = "atlanta",
    planChoice = "Linode 1024",
    sshKey = Just sshPublicKey
  }
  c <- createLinode apiKey True options
  case c of
    Left err -> print err
    Right linode -> do
      traverse_ (\a -> waitForSSH a >> setup a) (publicAddress linode)
      print linode

setup address = P.callCommand $ "scp TODO [email protected]" <> ip address <> ":/root"