Update lftools repo creation for global_envs 53/14753/2
authorEric Ball <eball@linuxfoundation.org>
Fri, 1 Mar 2019 23:46:46 +0000 (15:46 -0800)
committerEric Ball <eball@linuxfoundation.org>
Thu, 7 Mar 2019 22:29:49 +0000 (14:29 -0800)
"Note" text is also changed. Original text was ambiguously worded,
and should not be necessary.

Issue: RELENG-291
Change-Id: Ibe75322ccb6794d3df9d606cf356a98af2df8059
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
docs/infra/nexus.rst

index d917caf..8faee67 100644 (file)
@@ -244,28 +244,27 @@ The ``lftools nexus create repo`` command needs two files as parameters:
      # Using ONAP as example
 
      base_groupId: 'org.onap'
+     email_domain: 'onap.org'
+     global_privs:
+       - 'LF Deployment Role'
      repositories:
       appc:
         password: 'NjPAd1ZZ5RbDalZy4ROHaApb4Bk3buTU'
         extra_privs:
-          - 'LF Deployment Role'
           - 'Staging: Deployer (autorelease)'
         repositories:
           cdt:
             password: 'NjPAd1ZZ5RbDalZy4ROHaApb4Bk3buTU'
             extra_privs:
-              - 'LF Deployment Role'
               - 'Staging: Deployer (autorelease)'
       aaf:
         password: 'NjPAd1ZZ5RbDalZy4ROHaApb4Bk3buTU'
         extra_privs:
-          - 'LF Deployment Role'
           - 'Staging: Deployer (autorelease)'
         repositories:
           sms:
             password: 'NjPAd1ZZ5RbDalZy4ROHaApb4Bk3buTU'
             extra_privs:
-              - 'LF Deployment Role'
               - 'Staging: Deployer (autorelease)'
 
 appc is the parent for cdt and aaf is the parent of sms.
@@ -273,7 +272,9 @@ The projects created will be: appc, appc-cdt, aaf and aaf-sms.
 
 .. note::
 
-   ``extra_privs`` could have a different name between LF projects.
+   'Staging: Deployer (autorelease)' in the above example is in the
+   ``extra_privs`` section as an example. If it applies to all repos, it can be
+   part of the ``global_privs`` section.
 
 * `-s, --settings` Configuration file with all the admin settings
 
@@ -286,8 +287,6 @@ The projects created will be: appc, appc-cdt, aaf and aaf-sms.
      user: 'admin'
      password: 'admin123'
 
-     email_domain: 'onap.org'
-
 After running `lftools nexus create repo -c <the_repo_config> -s <your_settings_config>`,
 the script will create all repos, users, roles and privileges. Also, the `Repository Targets`
 gets set with the patterns to set restrictions for projects and the location where they