Permalink
Browse files

Convert maven::settings into a definition to allow managing more than…

… one user settings.xml
  • Loading branch information...
carlossg committed Mar 26, 2012
1 parent 6d4197c commit a3907293304384543026628f3d011d420c37f211
Showing with 4 additions and 4 deletions.
  1. +1 −1 README.rdoc
  2. +2 −2 manifests/settings.pp
  3. +1 −1 tests/init.pp
View
@@ -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
}
View
@@ -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":
View
@@ -8,7 +8,7 @@
#class { 'maven::maven':
# version => '2.2.1',
#} ->
-#class { 'maven::settings' :
+#maven::settings { 'root' :
# servers => [$repo1],
#}

0 comments on commit a390729

Please sign in to comment.