cloudera / cm_ext

Cloudera Manager Extensibility Tools and Documentation.
Apache License 2.0
188 stars 133 forks source link

Deploy Client Configuration action not showing up #11

Open pgrandjean opened 8 years ago

pgrandjean commented 8 years ago

I'm developing a custom CSD. Although I have added "gateway" to service.sdl, I do not see a "Deploy Client Configuration" command in the "Action" menu. Could you please help?

alxn commented 8 years ago

@pgrandjean this is the gist of what I've been successfully using if that helps:

    "gateway" : {
        "alternatives" : {
            "name" : "foo-conf",
            "priority" : 50,
            "linkRoot" : "/etc/foo"
        },
        "scriptRunner" : {
            "program" : "scripts/control.sh",
            "args" : ["deploy"],
            "environmentVariables" : {
                "DATA" : "${foo.data}",
                "WEB"  : "${foo.web}"
            }
        },
        "configWriter" : {
            "generators" : [
                {
                    "filename" : "foo-conf/foo.properties",
                    "configFormat" : "properties"
                }
            ]
        },
        "peerConfigGenerators" : [
            {
                "filename" : "foobar.properties",
                "params" : [ "foo.bar.data"],
                "roleName" : "FOOBAR"
            }
        ]
    }