{
    "targets": {
        "aws": {
            "homedir": "/home/ubuntu",
            "managers": [
                {
                    "pem": "../../cirrus-sup.pem",
                    "user": "ubuntu",
                    "machine": "ec2-18-222-125-68.us-east-2.compute.amazonaws.com",
                    "active": true
                },
                {
                    "pem": "../../cirrus-sup.pem",
                    "user": "ubuntu",
                    "machine": "ec2-18-218-20-203.us-east-2.compute.amazonaws.com",
                    "active": false
                }
            ]
        },
        "docker": {
            "username": "dockerhubusername",
            "password": "dockerhubpassword",
            "elb": {
                "comment": "0 - amazon elb, 1 - future cirrus load balancer",
                "type": 0,
                "dns": "mic-783741712.us-east-2.elb.amazonaws.com"
            },
            "managers": [
                {
                    "pem": "../../../cirrus-sup.pem",
                    "user": "ubuntu",
                    "machine": "ec2-18-221-216-37.us-east-2.compute.amazonaws.com",
                    "internalip": "172.31.31.118",
                    "active": true
                },
                {
                    "pem": "../../../cirrus-sup.pem",
                    "user": "ubuntu",
                    "machine": "ec2-18-218-20-203.us-east-2.compute.amazonaws.com",
                    "active": true
                }
            ]
        }
    },
    "npminstall": true,
    "appdir": "./examples",
    "destdir": "/tmp/dest",
    "tmpdir": "/tmp/tmpdir",
    "appserviceconfig": "appserviceconfig.json",
    "deploymentmode": "dev",
    "corsdomains": [
        "https://url.domain.com"
    ],
    "appcopy": [
        {
            "srcdir": ".",
            "path": "./security",
            "destdir": ".",
            "recursive": true,
            "type": "dir"
        }
    ],
    "systemservices": {
        "keymgr": {
            "overrides": {
                "certpath": "security/sampleservice"
            },
            "initoptions": {
                "secret": "helloworld",
                "persistence": {
                    "type": "file",
                    "bucketname": "bucket",
                    "acckey": "acckey",
                    "secret": "secretkey",
                    "region": "region"
                }
            },
            "replicas": 3
        },
        "connector": {
            "overrides": {
                "certpath": "security/sampleservice"
            },
            "initoptions": {
                "workingappdir": ".",
                "appserviceconfigfilename": "appserviceconfig.json",
                "connections": {
                    "s3example": {
                        "service": "nvstore",
                        "enabled": true,
                        "initoptions": {
                            "persistence": {
                                "type": "s3",
                                "bucketname": "bucketname",
                                "acckey": "acckey",
                                "secret": "secret",
                                "region": "region"
                            }
                        }
                    },
                    "mysqlexample": {
                        "service": "relstore",
                        "enabled": true,
                        "initoptions": {
                            "persistence": {
                                "type": "mysql",
                                "host": "host",
                                "user": "mysqluser",
                                "password": "password",
                                "connectionlimit": 10
                            }
                        }
                    },
                    "sfexample": {
                        "service": "snowflake",
                        "enabled": true,
                        "initoptions": {
                            "persistence": {
                                "type": "snowflake",
                                "account": "account.region",
                                "user": "username",
                                "password": "password"
                            }
                        }
                    }
                }
            },
            "replicas": 3
        },
        "workflow": {
            "overrides": {
                "certpath": "security/sampleservice"
            },
            "initoptions": {
                "appdir": ".",
                "appserviceconfig": "appserviceconfig.json",
                "persistence": {
                    "type": "s3",
                    "bucketname": "bucketname",
                    "acckey": "acckey",
                    "secret": "secret",
                    "region": "region"
                }
            },
            "replicas": 3
        },
        "wsocserver": {
            "overrides": {
                "certpath": "security/sampleservice"
            },
            "initoptions": {
                "appdir": ".",
                "appserviceconfig": "appserviceconfig.json",
                "persistence": {
                    "type": "s3",
                    "bucketname": "bucketname",
                    "acckey": "acckey",
                    "secret": "secret",
                    "region": "region"
                }
            },
            "replicas": 3
        },
        "converter": {
            "overrides": {
                "certpath": "security/sampleservice"
            },
            "initoptions": {},
            "replicas": 3
        }
    },
    "appservices": {
        "sampleservice": {
            "replicas": 3,
            "workingdir": "node_modules/cirruswave/examples",
            "exec": "node app_index.js -s sampleservice -c appserviceconfig.json"
        },
        "sampleservicebasic": {
            "replicas": 3,
            "workingdir": "node_modules/cirruswave/examples",
            "exec": "node app_index.js -s sampleservicebasic -c appserviceconfig.json"
        }
    },
    "enterpriseservices": {
        "test_eservice": {
            "replicas": 3,
            "workingdir": "node_modules/cirruswave/examples",
            "exec": "bash testenterprise.sh",
            "ports": [
                {
                    "hostport": 4100,
                    "containerport": 4006
                }
            ]
        }
    }
}