Closed onsails closed 11 years ago
Hi, thanks for bug filing. I've just pushed some commits that should fix the issue (and eventually leave you the option to provide the jboss user out of the module). The versions/installation method matrix is somehow tricky and actually, to be honest, I just tested the source installation for version 7 (by default it makes a source installation of version 6). Please submit any other problem or suggestion you may find for the module.
Thanks for fast reply! The problem has gone but now I have another: again on clean ubuntu 12.04 I get this error:
Notice: /Stage[main]/Puppi::Extras/Puppi::Info[network]/File[/etc/puppi/info/network]/ensure: created
Debug: /Stage[main]/Puppi::Extras/Puppi::Info[network]/File[/etc/puppi/info/network]: The container Puppi::Info[network] will propagate my refresh event
Debug: Puppi::Info[network]: The container Class[Puppi::Extras] will propagate my refresh event
Debug: Exec[Run_Puppi_jboss](provider=posix): Executing 'puppi deploy jboss && touch /var/lib/puppi/archive/puppirun_jboss'
Debug: Executing 'puppi deploy jboss && touch /var/lib/puppi/archive/puppirun_jboss'
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[ OK ]Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns: ci.onsails.com Deploy: 20-jboss-Retrieve_Archive
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[jboss]/Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns: stdin: is not a tty
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[jboss]/Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns:
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[ OK ]Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns: ci.onsails.com Deploy: 25-jboss-PreDeploy_Archive
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[jboss]/Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns: stdin: is not a tty
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[jboss]/Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns:
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[ OK ]Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns: ci.onsails.com Deploy: 30-jboss-Backup_existing_Files
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[jboss]/Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns: stdin: is not a tty
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[jboss]/Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns: /etc/puppi/scripts/archive.sh: line 113: rsync: command not found
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[jboss]/Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns:
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[FAILED]Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns: ci.onsails.com Deploy: 40-jboss-Deploy
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[jboss]/Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns: stdin: is not a tty
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[jboss]/Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns: /etc/puppi/scripts/deploy_files.sh: line 63: rsync: command not found
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[jboss]/Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns:
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[jboss]/Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns: Reporting: 20-jboss-Mail_Notification
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[jboss]/Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns: REPORT FOR PUPPI - STATUS ERROR
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[jboss]/Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns: Summary of operations is: /var/log/puppi/jboss/20130111-175353/summary
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[jboss]/Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns: Details are in: /var/log/puppi/jboss/20130111-175353/
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[jboss]/Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns: Temporary workdir has been: /tmp/puppi/jboss/ (Will be rewritten at the next puppi run)
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[jboss]/Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns: Runtime config file is: /tmp/puppi/jboss/config
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[jboss]/Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns: Files have been archived in: /var/lib/puppi/archive/jboss/20130111-175353
Error: puppi deploy jboss && touch /var/lib/puppi/archive/puppirun_jboss returned 1 instead of one of [0]
Error: /Stage[main]/Jboss::Install/Puppi::Project::Archive[jboss]/Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns: change from notrun to 0 failed: puppi deploy jboss && touch /var/lib/puppi/archive/puppirun_jboss returned 1 instead of one of [0]
Seems module's manifest need to specify dependence on rsync
That's a puppi dependency. Let me sugget you to use install => source as installation method (which is actually the default).
In case you want to use puppi as installation method and have rsync (and a lot of other stuff) provided, you can just add an include puppi in your manifest (suppose that's something that the jboss module should do by itself, but I preferred to avoid the inclusion of the whole puppi stuff).
I want to use puppi (2 gen) but still getting some errors. Am I doing something wrong?
class { 'puppi':
version => '2',
}
class { 'jboss':
install => 'puppi',
require => Class['puppi']
}
Notice: /Stage[main]/Puppi::Extras/Puppi::Info[network]/File[/etc/puppi/info/network]/ensure: created
Debug: /Stage[main]/Puppi::Extras/Puppi::Info[network]/File[/etc/puppi/info/network]: The container Puppi::Info[network] will propagate my refresh event
Debug: Puppi::Info[network]: The container Class[Puppi::Extras] will propagate my refresh event
Error: Could not find command 'puppi'
Error: /Stage[main]/Jboss::Install/Puppi::Project::Archive[jboss]/Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns: change from notrun to 0 failed: Could not find command 'puppi'
Notice: /File[/etc/puppi/scripts/git.sh]/ensure: defined content as '{md5}9276bb790bf1e35266b20e30a6418ea9'
one more error at the end of puppet agent
output:
Debug: Puppet::Type::Package::ProviderGem: file gem does not exist
Error: /Stage[main]/Puppi::Two/Package[puppi]: Provider gem is not functional on this host
Puppi 2 (the gem) is still VERY experimental , you can hardly do useful things with it at the moment. The problem anyway is that you probably don't have rubygems installed on your host, so Puppet can't install gems. I'll probably add this dependency when the gem will be more usable but I'm also consider to provide puppi 2 as a Puppet face, that's definitively a work in progress, sorry.
Thanks! I have just installed jboss without any errors. Thank you and all example42 team for your awesome works in puppet community!
Ah, crap. My fault. There still are errors. puppi didn't installed rsync by itself:
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[jboss]/Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns:
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[FAILED]Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns: ci.onsails.com Deploy: 40-jboss-Deploy
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[jboss]/Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns: stdin: is not a tty
Notice: /Stage[main]/Jboss::Install/Puppi::Project::Archive[jboss]/Puppi::Run[jboss]/Exec[Run_Puppi_jboss]/returns: /etc/puppi/scripts/deploy_files.sh: line 63: rsync: command not found
My manifest is below:
class { 'puppi': }
class { 'jboss':
install => 'puppi',
require => Class['puppi']
}
Should I define rsync dependance by myself?
No, it should be done by puppi here: https://github.com/example42/puppi/blob/master/manifests/dependencies.pp which is included if the install_dependencies parameters is set to true (which is the default). This is strange: Are you using an updated version of puppi?
Yes, I am using latest puppi version from master.
I discovered that rsync is being installed but after puppet-jboss
's error
Ok, I suppose that can be considered more a puppi problem, going to close this ticket...
I am trying to setup jboss on clean machine with Ubuntu 12.04. My manifest is quite simple and contains only emacs install instructions and
Here is output of
puppet agent -t -d -v
command betweenApplying configuration xxxx
and the error: