Skip to content
This repository has been archived by the owner on Jun 2, 2019. It is now read-only.

Commit

Permalink
Convert maven::settings into a definition to allow managing more than…
Browse files Browse the repository at this point in the history
… one user settings.xml
  • Loading branch information
Carlos Sanchez committed Mar 26, 2012
1 parent 6d4197c commit a390729
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.rdoc
Expand Up @@ -73,7 +73,7 @@ or
} ->

# Create a settings.xml with the repo credentials
class { "maven::settings" :
maven::settings { 'root' :
mirrors => [$repo1], # mirrors entry in settings.xml, uses id, url, mirrorof from the hash passed
servers => [$repo1], # servers entry in settings.xml, uses id, username, password from the hash passed
}
Expand Down
4 changes: 2 additions & 2 deletions manifests/settings.pp
Expand Up @@ -12,11 +12,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Class: maven::settings
# Define: maven::settings
#
# A puppet recipe to set the contents of the settings.xml file
#
class maven::settings( $home = '/root', $user = 'root',
define maven::settings( $home = '/root', $user = 'root',
$servers = [], $mirrors = [] ) {

file { "${home}/.m2":
Expand Down
2 changes: 1 addition & 1 deletion tests/init.pp
Expand Up @@ -8,7 +8,7 @@
#class { 'maven::maven':
# version => '2.2.1',
#} ->
#class { 'maven::settings' :
#maven::settings { 'root' :
# servers => [$repo1],
#}

Expand Down

0 comments on commit a390729

Please sign in to comment.