On Monday, January 17, 2011 10:33:33 AM UTC+1, Romain PELISSE wrote:
>
>
> @lab42: Your Puppi module sounds quite interesting indeed. I guess I could
> probably reduce the amount of "junk" in my current puppet configuration
> using it. I'll look into it in the next days.
>
Sweet. If you have any questions about it don't hesitate to ask.
It' currently under active development and things might be tweaked and
refined.
There are also few examples so maybe it's not clear how to use it.
For example you can do things like this (these are real life exaples with
some names changed):
puppi::project::war { "myapp":
source =>
"http://deploy.example42.com/myapp/myapp.war",
user => "myappuser",
init_script => "tomcat-myapp",
deploy_root => "/store/tomcat/myapp/webapps",
report_email => "[email protected]",
enable => "true",
disable_services => "monit puppet apache2",
}
or (the maven project layout to get stuff from a Nexus repo will be
rewritten)
puppi::project::maven { "myapp":
source =>
"http://nexus.${domain}/nexus/it/example42/myapp/",
user => "${apache::params::username}",
deploy_root => "/store/tomcat/myapp/webapps",
init_script => "tomcat-myapp",
firewall_src_ip => $type ? {
dr => "192.168.50.1/30",
prod => "192.168.38.1/30",
},
report_email => "[email protected]",
enable => "true",
}
puppi::project::tar { "myapp":
source =>
"http://release.example42.com/deploy/myapp/release.tgz",
init_source =>
"ssh://deploy@debian.${domain}/var/www/deploy/initdir/myapp/",
init_script => "apache",
deploy_root => "/store/www/myapp/",
report_email => "[email protected]",
enable => "true",
}
Note finally, that during deploys puppi makes pre and post local checks
which are autopopulated if you use the example42 monitor classes. Since you
won't probably have them you might find empty checks (or an error, haven't
tried this condition).
Feedbacks welcomed
Alessandro
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.