[Puppet Users] Re: Debugging execution error with vcsrepo
Does anyone have any advice on simulating the environment and conditions under which processes are run by Puppet? I'd really like to get the bottom of this, as other commands I'm running via other classes are working fine. Thanks, Patrick On Monday, 23 December 2013 12:12:40 UTC-8, Patrick Gibson wrote: If I manually clone the repo, I get a similarly puzzling error: Error: /Stage[main]/myuser/Vcsrepo[/home/myuser/myrepo]: Could not evaluate: Execution of '/usr/bin/su myuser -c /usr/local/bin/git config remote.origin.url' returned 127: -su: /usr/local/bin/git config remote.origin.url: No such file or directory On Saturday, 21 December 2013 18:33:45 UTC-8, Patrick Gibson wrote: I'm using the vcsrepo module to clone a git repo as a particular user, and I'm getting a puzzling error: Debug: Executing '/usr/bin/su myuser -c /usr/local/bin/git clone g...@git.myhostname.com:repos/myrepo.git /home/myuser/myrepo' Error: Execution of '/usr/bin/su myuser -c /usr/local/bin/git clone g...@git.myhostname.com:repos/myrepo.git /home/myuser/myrepo' returned 127: su: /usr/local/bin/git clone g...@git.myhostname.com:repos/myrepo.git /home/myuser/myrepo: No such file or directory When I copy and paste the exact command and run it, it works fine. I can't figure out what would be complaining about No such file or directory. Every executable and path mentioned in the command exists. My relevant classes look like this: class sshd { file { /etc/ssh/sshd_config: source = puppet:///modules/sshd/sshd_config, notify = Service[sshd] } file { /etc/ssh/ssh_config: source = puppet:///modules/sshd/ssh_config, notify = Service[sshd] } service { sshd: ensure = running, } } class myuser { file { /home/myuser/.ssh: ensure = directory, mode = 0700, owner = myuser, group = myuser, } file { /home/myuser/.ssh/known_hosts: source = puppet:///modules/myuser/.ssh/known_hosts, owner = myuser, group = myuser, } file { /home/myuser/.ssh/id_rsa: source = puppet:///modules/myuser/.ssh/id_rsa, mode = 0600, owner = myuser, group = myuser, } vcsrepo { /home/myuser/myrepo: require = Class[sshd], ensure = present, provider = git, source = 'g...@git.myhostname.com:repos/myrepo.git', revision = 'master', user = 'myuser' } } Any pointers? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/8bb3247d-b2e1-4e98-aa39-8a11c49c2760%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Debugging execution error with vcsrepo
If I manually clone the repo, I get a similarly puzzling error: Error: /Stage[main]/myuser/Vcsrepo[/home/myuser/myrepo]: Could not evaluate: Execution of '/usr/bin/su myuser -c /usr/local/bin/git config remote.origin.url' returned 127: -su: /usr/local/bin/git config remote.origin.url: No such file or directory On Saturday, 21 December 2013 18:33:45 UTC-8, Patrick Gibson wrote: I'm using the vcsrepo module to clone a git repo as a particular user, and I'm getting a puzzling error: Debug: Executing '/usr/bin/su myuser -c /usr/local/bin/git clone g...@git.myhostname.com:repos/myrepo.git /home/myuser/myrepo' Error: Execution of '/usr/bin/su myuser -c /usr/local/bin/git clone g...@git.myhostname.com:repos/myrepo.git /home/myuser/myrepo' returned 127: su: /usr/local/bin/git clone g...@git.myhostname.com:repos/myrepo.git /home/myuser/myrepo: No such file or directory When I copy and paste the exact command and run it, it works fine. I can't figure out what would be complaining about No such file or directory. Every executable and path mentioned in the command exists. My relevant classes look like this: class sshd { file { /etc/ssh/sshd_config: source = puppet:///modules/sshd/sshd_config, notify = Service[sshd] } file { /etc/ssh/ssh_config: source = puppet:///modules/sshd/ssh_config, notify = Service[sshd] } service { sshd: ensure = running, } } class myuser { file { /home/myuser/.ssh: ensure = directory, mode = 0700, owner = myuser, group = myuser, } file { /home/myuser/.ssh/known_hosts: source = puppet:///modules/myuser/.ssh/known_hosts, owner = myuser, group = myuser, } file { /home/myuser/.ssh/id_rsa: source = puppet:///modules/myuser/.ssh/id_rsa, mode = 0600, owner = myuser, group = myuser, } vcsrepo { /home/myuser/myrepo: require = Class[sshd], ensure = present, provider = git, source = 'g...@git.myhostname.com:repos/myrepo.git', revision = 'master', user = 'myuser' } } Any pointers? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/d0efd577-e9f7-432d-bef4-cb388bc526a0%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Debugging execution error with vcsrepo
I'm using the vcsrepo module to clone a git repo as a particular user, and I'm getting a puzzling error: Debug: Executing '/usr/bin/su myuser -c /usr/local/bin/git clone g...@git.myhostname.com:repos/myrepo.git /home/myuser/myrepo' Error: Execution of '/usr/bin/su myuser -c /usr/local/bin/git clone g...@git.myhostname.com:repos/myrepo.git /home/myuser/myrepo' returned 127: su: /usr/local/bin/git clone g...@git.myhostname.com:repos/myrepo.git /home/myuser/myrepo: No such file or directory When I copy and paste the exact command and run it, it works fine. I can't figure out what would be complaining about No such file or directory. Every executable and path mentioned in the command exists. My relevant classes look like this: class sshd { file { /etc/ssh/sshd_config: source = puppet:///modules/sshd/sshd_config, notify = Service[sshd] } file { /etc/ssh/ssh_config: source = puppet:///modules/sshd/ssh_config, notify = Service[sshd] } service { sshd: ensure = running, } } class myuser { file { /home/myuser/.ssh: ensure = directory, mode = 0700, owner = myuser, group = myuser, } file { /home/myuser/.ssh/known_hosts: source = puppet:///modules/myuser/.ssh/known_hosts, owner = myuser, group = myuser, } file { /home/myuser/.ssh/id_rsa: source = puppet:///modules/myuser/.ssh/id_rsa, mode = 0600, owner = myuser, group = myuser, } vcsrepo { /home/myuser/myrepo: require = Class[sshd], ensure = present, provider = git, source = 'g...@git.myhostname.com:repos/myrepo.git', revision = 'master', user = 'myuser' } } Any pointers? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/e0dbbc3b-1377-4b3b-8e04-76aebfa26e38%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Debugging execution error with vcsrepo
(I should mention this is on FreeBSD 9.2.) On Saturday, 21 December 2013 18:33:45 UTC-8, Patrick Gibson wrote: I'm using the vcsrepo module to clone a git repo as a particular user, and I'm getting a puzzling error: Debug: Executing '/usr/bin/su myuser -c /usr/local/bin/git clone g...@git.myhostname.com:repos/myrepo.git /home/myuser/myrepo' Error: Execution of '/usr/bin/su myuser -c /usr/local/bin/git clone g...@git.myhostname.com:repos/myrepo.git /home/myuser/myrepo' returned 127: su: /usr/local/bin/git clone g...@git.myhostname.com:repos/myrepo.git /home/myuser/myrepo: No such file or directory When I copy and paste the exact command and run it, it works fine. I can't figure out what would be complaining about No such file or directory. Every executable and path mentioned in the command exists. My relevant classes look like this: class sshd { file { /etc/ssh/sshd_config: source = puppet:///modules/sshd/sshd_config, notify = Service[sshd] } file { /etc/ssh/ssh_config: source = puppet:///modules/sshd/ssh_config, notify = Service[sshd] } service { sshd: ensure = running, } } class myuser { file { /home/myuser/.ssh: ensure = directory, mode = 0700, owner = myuser, group = myuser, } file { /home/myuser/.ssh/known_hosts: source = puppet:///modules/myuser/.ssh/known_hosts, owner = myuser, group = myuser, } file { /home/myuser/.ssh/id_rsa: source = puppet:///modules/myuser/.ssh/id_rsa, mode = 0600, owner = myuser, group = myuser, } vcsrepo { /home/myuser/myrepo: require = Class[sshd], ensure = present, provider = git, source = 'g...@git.myhostname.com:repos/myrepo.git', revision = 'master', user = 'myuser' } } Any pointers? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/bfccfbf4-ddfd-435a-98da-e54e43272537%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Process hang on FreeBSD
Thanks, all. I was originally hoping to just be able to build ports the old fashioned way, but have abandoned that route. I've upgraded to pkgng and am successfully using the zleslie/pkgng provider. Things are going well and I'm already very excited at how easy it's going to be to setup new systems. I'm at a point where the prebuilt packages weren't compiled with the options I needed, so I'm quickly learning all about poudriere and setting up a build machine. One minor thing I've noticed whose only impact is cluttering up the important output is warning messages like: /usr/local/lib/ruby/site_ruby/2.0/puppet/provider/package/freebsd.rb:18: warning: class variable access from top-level Looking through the bug tracker, it seems there's been discussion and proposed solutions over the years, though perhaps they've not been applied globally? Do people see this on other platforms? Looking through some of the other providers, it seems like freebsd.rb is alone in its @@ usage. Patrick On Wednesday, 18 December 2013 20:59:16 UTC-8, Derek Cole wrote: Just wanted to throw in that you should update to pkgng. pkg_add isnt even going to be an option in FreeBSD10. I have been using https://forge.puppetlabs.com/zleslie/pkgng successfully with FreeBSD10 Beta 3 and puppet. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ff432291-4c54-41e7-a8d0-8abb3639b649%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Process hung on FreeBSD
This is my first attempt with Puppet, and I'm working on FreeBSD 9.2 with Puppet 3.3.1 and Ruby 2.0. I'm starting with just a very simple example to get my feet wet: node 'myhost' { package { 'devel/jsmin': ensure = 'installed', provider = 'ports' } } When I apply this with: puppet apply -v --debug manifests/site.pp I get a bunch of output about selinux and other Linuxisms (making think that I should be specifying that 'myhost' is FreeBSD?), and finally it starts to install the port I want: Debug: Prefetching ports resources for package Debug: Executing '/usr/sbin/pkg_info -aoQ' Debug: Executing '/usr/sbin/pkg_info -aoQ' Debug: Executing '/usr/local/sbin/portupgrade -N -M BATCH=yes devel/jsmin' It seems like it's working, but it actually just stalls here. Running that last command by hand finishes in a few seconds, and the BATCH=yes option in there ensures that user input is never needed. I'm kind of stuck at this point, as beyond adding -v and --debug, I don't know how to further diagnose things. I can see that the process is running in my `ps` output, but I can't think of why it would be stalled. Any thoughts would be appreciated. Am I crazy for using Puppet on FreeBSD? It seems like very few other people must be based on my Google searches and available documentation. Thanks, Patrick -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/b3d68bfc-fe3e-478e-a719-bfa14b9b9336%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Process hang on FreeBSD
I'm a first-time Puppet user, working with FreeBSD 9.2, Puppet 3.3.1, and Ruby 2.0. I'm starting out with a very simple setup to test the waters: node 'myhost' { package { 'devel/jsmin': ensure = 'installed', provider = 'ports' } } When I run: puppet apply -v --debug manifests/site.pp I get a bunch of output with various Linuxisms like selinux, rpm, apt-get, dpkg, etc (making me think I need to specify that this is a FreeBSD host?), and then: Debug: Prefetching ports resources for package Debug: Executing '/usr/sbin/pkg_info -aoQ' Debug: Executing '/usr/sbin/pkg_info -aoQ' Debug: Executing '/usr/local/sbin/portupgrade -N -M BATCH=yes devel/jsmin' It all looks good, except that the process seems to stall out here. Running '/usr/local/sbin/portupgrade -N -M BATCH=yes devel/jsmin' manually works fine and completes in a few seconds. I can see from the `ps` listing that command is active, but it just sits there, not completing. I'm not sure how to debug this any further. Is it considered a bad idea to run Puppet on a FreeBSD host? Based on my Google searches and amount of discussion around it, it seems like there are very few people who are doing this. Any insight would be greatly appreciated. Thanks, Patrick -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5f2d0086-69b5-4a5e-8d36-419e294f1695%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.