brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tbouron <...@git.apache.org>
Subject [GitHub] brooklyn-library pull request: Allow creating roles for PostgreSQL
Date Thu, 05 May 2016 16:49:46 GMT
Github user tbouron commented on a diff in the pull request:

    https://github.com/apache/brooklyn-library/pull/33#discussion_r62215974
  
    --- Diff: software/database/src/main/java/org/apache/brooklyn/entity/database/postgresql/PostgreSqlNode.java
---
    @@ -90,6 +95,17 @@
                 String.class, "postgresql.username", "Username of the database user");
         
         String DEFAULT_USERNAME = "postgresqluser";
    +
    +    @SetFromFlag("roles")
    +    ConfigKey<Map<String, Map>> ROLES = new MapConfigKey(Map.class, "postgresql.roles",
    +            "Set roles with properties and permissions. Shoud be a map with keys equal
to role names and values a map of the type:" +
    +                  "key equal to `properties` and value - the role properties that should
be in the query after `WITH` statement" +
    +                    "key equal to `privileges` and value - the `GRANT` query value between
the `GRANT` and `TO` statements"
    +    );
    --- End diff --
    
    Maybe worth to add an actual example within the description of what the map should look
like?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message