@@ -6,17 +6,16 @@ ongoing configuration of a Sonatype Nexus Repository 3 instance using Chef.
66
77At a high level, this cookbook:
88
9- • Installs Nexus Repository 3
10- • Ensures the Nexus service is running
11- • Bootstraps the admin account (if required)
12- • Accepts the Nexus EULA (if required)
13- • Enforces selected security and access settings (for example, anonymous access)
14- • Ensures the instance is left in a known, converged state
9+ - Installs Nexus Repository 3
10+ - Ensures the Nexus service is running
11+ - Bootstraps the admin account (if required)
12+ - Accepts the Nexus EULA (if required)
13+ - Enforces selected security and access settings (for example, anonymous access)
14+ - Ensures the instance is left in a known, converged state
1515
1616This cookbook is safe to run repeatedly. All configuration steps are
1717idempotent and driven through the Nexus REST API.
1818
19-
2019Usage
2120-----
2221
@@ -48,7 +47,7 @@ The automation looks for Nexus admin password in the following order
4847(highest priority first):
4948
50491 . ` node.run_state['boxcutter_sonatype']['nexus_repository']['admin_password'] `
51- 2 . ` node['boxcutter_sonatype']['nexus_repository']['admin_password'] `
50+ 1 . ` node['boxcutter_sonatype']['nexus_repository']['admin_password'] `
5251
5352If a password is present in ` node.run_state ` , it will always take precedence
5453over any value defined in node attributes.
@@ -58,7 +57,7 @@ over any value defined in node attributes.
5857The recommended approach is to inject the password into ` node.run_state `
5958from a wrapper cookbook at converge time:
6059
61- ```
60+ ``` ruby
6261# Initialize the parent hash if it doesn't exist
6362node.run_state[' boxcutter_sonatype' ] ||= {}
6463node.run_state[' boxcutter_sonatype' ][' nexus_repository' ] ||= {}
@@ -79,4 +78,4 @@ procedure:
7978https://support.sonatype.com/hc/en-us/articles/213467158-How-to-reset-a-forgotten-admin-password-in-Sonatype-Nexus-Repository-3
8079
8180After resetting the password, update the value supplied to this cookbook and
82- re-run Chef.
81+ re-run Chef.
0 commit comments