Hi, please forgive the total newbie question. I've had some success with Puppet and have a basic master/agent setup working, but I am having trouble getting maven to install. I got the puppet-model installed with:
puppet install puppet-maven
which installed the 1.1.2 version with no errors.
Now I have /etc/puppet/manifests/maven.pp file (based off the docs) that looks like this:
$snapshots = {
active => true, #Defaults to true
protocol => 'http', #Defaults to 'http'
host => 'https://myrepo.com/snapshot',
username => 'myuser', #Optional if proxy does not require
password => 'mypassword', #Optional if proxy does not require
}
# Install Maven
class { "maven::maven":
version => "3.0.5", # version to install
# you can get Maven tarball from a Maven repository instead than from Apache servers, optionally with a user/password
repo => {
#url => "http://repo.maven.apache.org/maven2",
#username => "",
#password => "",
},
maven_opts => "FOO=bar", # anything to add to MAVEN_OPTS in ~/.mavenrc
#maven_path_additions => "", # anything to add to the PATH in ~/.mavenrc
} ->
# Create a settings.xml with the repo credentials
maven::settings { 'maven-user-settings' :
servers => [$snapshots], # servers entry in settings.xml, uses id, username, password from the hash passed
}
In my site.pp I have:
import "maven"
import "nodes"
And then in nodes.pp I have:
node appserver inherits staging {
include maven
}
node 'host.domain.net' inherits appserver {
}
When I run puppet on host.domain.net, I see Maven downloaded and stored in /tmp, and I think it was correctly installed, (mvn at the command line works), but I don't see /root/.mavenrc or /root/.m2/settings.xml created.
Can you help me figure out what I'm doing wrong?
Thanks.