You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by mc...@apache.org on 2013/09/19 18:48:54 UTC
git commit: updated refs/heads/rbac to 7b358ec
Updated Branches:
refs/heads/rbac b367a62a8 -> 7b358ec0d
Populate default out-of-box acl roles, converted from ACCOUNT_TYPE
enum.
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/7b358ec0
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/7b358ec0
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/7b358ec0
Branch: refs/heads/rbac
Commit: 7b358ec0df942e6b0868531452787c74fea36dd9
Parents: b367a62
Author: Min Chen <mi...@citrix.com>
Authored: Thu Sep 19 09:48:26 2013 -0700
Committer: Min Chen <mi...@citrix.com>
Committed: Thu Sep 19 09:48:26 2013 -0700
----------------------------------------------------------------------
setup/db/db/schema-420to430.sql | 7 +++++++
1 file changed, 7 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/7b358ec0/setup/db/db/schema-420to430.sql
----------------------------------------------------------------------
diff --git a/setup/db/db/schema-420to430.sql b/setup/db/db/schema-420to430.sql
index 3c75278..5a8566f 100644
--- a/setup/db/db/schema-420to430.sql
+++ b/setup/db/db/schema-420to430.sql
@@ -314,6 +314,13 @@ CREATE TABLE `cloud`.`acl_role` (
CONSTRAINT `uc_acl_role__uuid` UNIQUE (`uuid`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
+
+INSERT IGNORE INTO `cloud`.`acl_role` (name, uuid, created) VALUES ('NORMAL', UUID(), Now());
+INSERT IGNORE INTO `cloud`.`acl_role` (name, uuid, created) VALUES ('ADMIN', UUID(), Now());
+INSERT IGNORE INTO `cloud`.`acl_role` (name, uuid, created) VALUES ('DOMAIN_ADMIN', UUID(), Now());
+INSERT IGNORE INTO `cloud`.`acl_role` (name, uuid, created) VALUES ('RESOURCE_DOMAIN_ADMIN', UUID(), Now());
+INSERT IGNORE INTO `cloud`.`acl_role` (name, uuid, created) VALUES ('READ_ONLY_ADMIN', UUID(), Now());
+
CREATE TABLE `cloud`.`acl_api_permission` (
`id` bigint unsigned NOT NULL UNIQUE auto_increment,
`role_id` bigint unsigned NOT NULL,