@hackage kerry0.1.1
Manage and abstract your packer configurations.
Categories
License
BSD-3-Clause
Maintainer
Nick Hibberd <nhibberd@gmail.com>
Links
Versions
Installation
Dependencies (10)
- aeson >=1.4 && <1.5
- aeson-pretty >=0.8 && <1
- base >=4.5 && <5
- bytestring >=0.10 && <0.11
- containers >=0.5 && <0.7
- errors >=2.0 && <2.4 Show all…
Dependents (0)
kerry
Packer configuration and serialization.
Example
import Kerry
write :: FilePath -> IO ()
write path =
writeFile path (renderPacker example)
example :: Packer
example =
Packer {
variables = [
UserVariable "name" "example-packer"
]
, builders = [
Builder (AmazonEBSBuilder $ aws builder) Nothing ssh
]
, provisioners = []
, postProcessors = []
}
ssh :: Communicator
ssh =
SSH $ defaultSSHCommunicator "ec2-user"
aws :: a -> AWS a
aws builder =
AWS {
awsRegion = "us-west-2"
, awsCredentials = EnvironmentVariables
, awsBuilder = builder
}
builder :: EBS
builder =
ebs
"test"
(SourceAmiId "ami-fred")
"m4.xlarge"