ansble-terraform-jsonnet/lib/deployments.libsonnet

23 lines
631 B
Plaintext
Raw Normal View History

2021-10-12 00:13:21 +02:00
{
Deployment:: {
roles: error "At least one role is required",
variables: error "Deployment variables missing"
},
dockerComposeApp: function (name, domain = null) self.Deployment {
roles: ['reverse-proxy', 'docker', 'docker-compose-app'],
variables: {
docker_compose_app: [ name ],
domains: [ domain ]
},
},
laravelApp: function (name, domain) self.Deployment {
roles: ['reverse-proxy', 'laravel-app'],
variables: {
laravel_apps: [ { name: name, domain: domain } ] ,
domains: [ domain ]
}
}
}