Testing Puppet provisioning scripts with vagrant: puppet scripts are running but not doing anything.

asked 2015-04-26 13:23:09 -0500

I'm trying to provision a virtual machine running Ubuntu with java using Vagrant and Puppet. The VM is starting up fine, but when vagrant starts to run Puppet, everything looks fine but no work gets done. I tried running some tests as described in the PuppetLabs book Learning Puppet, but the --noop option caused vagrant to fail. I've included the --debug output in the code below, but it's not telling me much of anything. I'm too new to puppet to understand much of the debug output.

If anyone can tell me the best way to test Puppet manifests using Vagrant, or clue me in as to what's wrong with my code, I'd really appreciate it. I realize that this isn't strictly a Puppet issue since I'm not using a stand alone installation of Puppet, but Vagrant is working fine. I'm hopefully posting here as well as the Vagrant group and the puppet users group.

Thanks in advance for your help.

Kurt

#-----------------------------------------------------------------------
# Puppet --verbose --debug output:
#
#Kurts-Mac-mini:vagrant kandrews$ vagrant up --provider vmware_fusion
#/opt/vagrant/bin/../embedded/gems/gems/vagrant-1.7.2/lib/vagrant/pre-rubygems.rb:31: warning: Insecure world     writable dir /usr/local in PATH, mode 040777
#/opt/vagrant/embedded/gems/gems/bundler-1.7.11/lib/bundler/runtime.rb:222: warning: Insecure world writable dir /usr/local in PATH, mode 040777
#Bringing machine 'default' up with 'vmware_fusion' provider...
#==> default: Cloning VMware VM: 'hashicorp/precise64'. This can take some time...
#==> default: Checking if box 'hashicorp/precise64' is up to date...
#==> default: Verifying vmnet devices are healthy...
#==> default: Preparing network adapters...
#==> default: Starting the VMware VM...
#==> default: Waiting for machine to boot. This may take a few minutes...
#    default: SSH address: 172.16.71.139:22
#    default: SSH username: vagrant
#    default: SSH auth method: private key
#    default: 
#    default: Vagrant insecure key detected. Vagrant will automatically replace
#    default: this with a newly generated keypair for better security.
#    default: 
#    default: Inserting generated public key within guest...
#    default: Removing insecure key from the guest if its present...
#    default: Key inserted! Disconnecting and reconnecting using new SSH key...
#==> default: Machine booted and ready!
#==> default: Forwarding ports...
#    default: -- 22 => 2222
#==> default: Configuring network adapters within the VM...
#==> default: Waiting for HGFS kernel module to load...
#==> default: Enabling and configuring shared folders...
#    default: -- /Users/kandrews/GitHub/HadoopCourse/vagrant: /vagrant
#    default: -- /Users/kandrews/GitHub/HadoopCourse/vagrant/hadoop/manifests: /tmp/vagrant-puppet/manifests- 13a99a3b458bd3e0d50a9b4bd10cb727
#==> default: Running provisioner: puppet...
#==> default: Running Puppet with init.pp...
#==> default: stdin: is not a tty
#==> default: Debug: Creating default schedules
#==> default: Debug: Failed to load library 'selinux' for feature 'selinux'
#==> default: Debug: Using settings: adding file resource 'confdir': 'File[/etc/puppet]{:path=>"/etc/puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
#==> default: Debug: Using settings: adding file resource 'vardir': 'File[/var/lib/puppet]{:path=>"/var/lib/puppet", :ensure=>:directory, :loglevel=>:debug, :links=>:follow, :backup=>false}'
#==> default: Debug: Failed to load library 'shadow' for feature 'libshadow'
#==> default: Debug: Puppet::Type::User::ProviderDirectoryservice: file /usr/bin/uuidgen does ...
(more)
edit retag flag offensive close merge delete