1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-12 09:17:41 +03:00

Bug #2624: Add --admin_resources option

This commit is contained in:
Tino Vazquez 2014-01-13 11:37:52 +01:00
parent e6acfb4d6d
commit 1010a9ed94
2 changed files with 13 additions and 3 deletions

View File

@ -159,7 +159,16 @@ EOT
'Which resources can be created by group users "\
"(VM+NET+IMAGE+TEMPLATE by default)',
:format => String
}
},
{
:name => 'admin_resources',
:large => '--admin_resources resources_str',
:short => "-o",
:description =>
'Which resources can be created by group users "\
"(VM+NET+IMAGE+TEMPLATE by default)',
:format => String
}
]
#NOTE: Other options defined using this array, add new options at the end

View File

@ -84,9 +84,10 @@ cmd=CommandParser::CmdParser.new(ARGV) do
onegroup create group_description.tmpl
- create a group with admin group, admin user and allow group users
to only create new templates and VMs
to only create new templates and VMs, and group admins to manage
templates, vms, images and virtual networks
onegroup create -name groupA -admin_group admin_groupA
onegroup create --name groupA --admin_group admin_groupA
--admin_user admin_userA --admin_password somestr
--resource TEMPLATE+VM
--admin_resources TEMPLATE+VM+IMAGE+NET