X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6d2128ae15825ef03472897e09710b176e3cc1d9..5141c3ee23e89696773e227a93236ef2a51543c2:/doc/install/create-standard-objects.html.textile.liquid diff --git a/doc/install/create-standard-objects.html.textile.liquid b/doc/install/create-standard-objects.html.textile.liquid index eb25136973..92b0aded5c 100644 --- a/doc/install/create-standard-objects.html.textile.liquid +++ b/doc/install/create-standard-objects.html.textile.liquid @@ -6,53 +6,40 @@ title: Create standard objects ... +Next, we're going to use the Arvados CLI tools on the shell server to create some standard objects. h3. "All users" group The convention is to add every active user to this group. We give it a distinctive UUID that looks like an IP broadcast address. -
-prefix=`arv --format=uuid user current | cut -d- -f1`
-read -rd $'\000' newgroup <
+
~$ prefix=`arv --format=uuid user current | cut -d- -f1`
+~$ echo "Site prefix is '$prefix'"
+~$ read -rd $'\000' newgroup <<EOF; arv group create --group "$newgroup"
+{
  "uuid":"$prefix-j7d0g-fffffffffffffff",
  "name":"All users"
-}
+}
 EOF
-
+
h3. "arvados" repository This will be readable by the "All users" group, and therefore by every active user. This makes it possible for users to run the bundled Crunch scripts by specifying @"script_version":"master","repository":"arvados"@ rather than pulling the Arvados source tree into their own repositories. -
-prefix=`arv --format=uuid user current | cut -d- -f1`
-all_users_group_uuid="$prefix-j7d0g-fffffffffffffff"
-repo_uuid=`arv --format=uuid repository create --repository '{"name":"arvados"}'`
-echo "Arvados repository uuid is $repo_uuid"
-
-read -rd $'\000' newlink <
+
~$ prefix=`arv --format=uuid user current | cut -d- -f1`
+~$ echo "Site prefix is '$prefix'"
+~$ all_users_group_uuid="$prefix-j7d0g-fffffffffffffff"
+~$ repo_uuid=`arv --format=uuid repository create --repository '{"name":"arvados"}'`
+~$ echo "Arvados repository uuid is '$repo_uuid'"
+~$ read -rd $'\000' newlink <<EOF; arv link create --link "$newlink"
+{
  "tail_uuid":"$all_users_group_uuid",
  "head_uuid":"$repo_uuid",
  "link_class":"permission",
  "name":"can_read" 
 }                                         
-EOF
-
- -h3. Keep disks +EOF +
-Currently, you need to tell Arvados about Keep disks manually. - -
-secret=`ruby -e 'print rand(2**512).to_s(36)[0..49]'`
-read -rd $'\000' keepdisk <