Jonathan Proulx
2012-Mar-20 17:23 UTC
[Puppet Users] Odd issue with "puppet apply" in Virtual box
Hi, I have a modules directory that I''ve mounted as a virtualbox shared folder from my workstation (where I''m doing development) on a VirtualBox guest which I hop to make ,many virtual box guests so I can test against a variety of OS versions. Which seemed a good idea at the time, but puppet in the virtual box is telling my I have a syntax error, while the same commanf on the host system pointing at the same modules directory works. On the VM: root@squeeze64:~# puppet --version 2.7.12 root@squeeze64:~# puppet apply --modulepath=$MODPATH -e "class {''motd'':}" Could not parse for environment production: Syntax error at end of file at line 1 on node squeeze64.vagrant.internal root@squeeze64:~# md5sum $MODPATH/motd/manifests/init.pp 8fc4a8457b77b27a864d6f05fbeeed98 /test/motd/manifests/init.pp On the host: kvas:~# puppet --version 2.7.12 kvas:~# puppet apply --modulepath=$MODPATH -e "class {''motd'':}" notice: /Stage[main]/Motd/File[/etc/motd]/content: content changed ''{md5}85e37b9cf2717e67c40cc9d66f68553d'' to ''{md5}febcd2eab62f61888c22406ca1200c17'' notice: Finished catalog run in 0.06 seconds kvas:~# md5sum $MODPATH/motd/manifests/init.pp 8fc4a8457b77b27a864d6f05fbeeed98 <path-to>/git/puppet/modules/motd/manifests/init.pp Both are 64bit Debian 6.0 "Squeeze" systems. the virutal system is from the base image http://puppetlabs.s3.amazonaws.com/pub/squeeze64.box with facter and puppet updated using git to the same versions on the host system (1.6.6 and 2.7.12), packages on the host system are from apt.puppetlabs.com obviously something is different, any clues what or where to start looking? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Nan Liu
2012-Mar-20 17:37 UTC
Re: [Puppet Users] Odd issue with "puppet apply" in Virtual box
On Tue, Mar 20, 2012 at 10:23 AM, Jonathan Proulx <jon@jonproulx.com> wrote:> Hi, > > I have a modules directory that I''ve mounted as a virtualbox shared > folder from my workstation (where I''m doing development) on a > VirtualBox guest which I hop to make ,many virtual box guests so I can > test against a variety of OS versions. Which seemed a good idea at > the time, but puppet in the virtual box is telling my I have a syntax > error, while the same commanf on the host system pointing at the same > modules directory works. > > On the VM: > > root@squeeze64:~# puppet --version > 2.7.12 > root@squeeze64:~# puppet apply --modulepath=$MODPATH -e "class {''motd'':}" > Could not parse for environment production: Syntax error at end of > file at line 1 on node squeeze64.vagrant.internal > root@squeeze64:~# md5sum $MODPATH/motd/manifests/init.pp > 8fc4a8457b77b27a864d6f05fbeeed98 /test/motd/manifests/init.pp > > > On the host: > kvas:~# puppet --version > 2.7.12 > kvas:~# puppet apply --modulepath=$MODPATH -e "class {''motd'':}" > notice: /Stage[main]/Motd/File[/etc/motd]/content: content changed > ''{md5}85e37b9cf2717e67c40cc9d66f68553d'' to > ''{md5}febcd2eab62f61888c22406ca1200c17'' > notice: Finished catalog run in 0.06 seconds > kvas:~# md5sum $MODPATH/motd/manifests/init.pp > 8fc4a8457b77b27a864d6f05fbeeed98 > <path-to>/git/puppet/modules/motd/manifests/init.pp > > Both are 64bit Debian 6.0 "Squeeze" systems. the virutal system is > from the base image > http://puppetlabs.s3.amazonaws.com/pub/squeeze64.box with facter and > puppet updated using git to the same versions on the host system > (1.6.6 and 2.7.12), packages on the host system are from > apt.puppetlabs.com > > obviously something is different, any clues what or where to start looking?My experience with virtualbox shared folder feature is it''s pretty flaky. Either use a vcs repo and push changes for testing, or use NFS which is not only faster but fairly easy to do with tools like vagrant: http://vagrantup.com/docs/nfs.html. Thanks, Nan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.