Weird Error From Running Puppet

108 views
Skip to first unread message

MM

unread,
Nov 21, 2013, 11:43:59 AM11/21/13
to puppet...@googlegroups.com
So I had this confuse error message when running puppet via Vagrant puppet provisioner with Puppet 3.3.2 and Data in Module

Error: Could not run: Could not find file true
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

puppet apply --binder true --ordering manifest --modulepath '/etc/puppet/modules:/tmp/vagrant-puppet/modules-0' --manifestdir /tmp/vagrant-puppet/manifests --detailed-exitcodes /tmp/vagrant-puppet/manifests/default.pp || [ $? -eq 2 ]

Stdout from the command:



Stderr from the command:

Error: Could not run: Could not find file true

Here my file layout,

.
├── Gemfile
├── Gemfile.lock
├── Rakefile
├── Vagrantfile
├── data
│   ├── environment
│   └── node
├── hiera.yaml
├── puppet
│   ├── Puppetfile
│   ├── manifests
│   └── modules
└── r10k.yaml

Vagrant is configured to run puppet as following,

  config.vm.define 'mysql_server' do | mysql |
    mysql.vm.hostname = 'mysql-server.local'
    mysql.vm.provision :puppet do | puppet |
      puppet.options = [
        '--binder true',
        '--ordering manifest',
      ]
      puppet.manifests_path = 'puppet/manifests'
      puppet.manifest_file  = 'default.pp'
      puppet.module_path    = 'puppet/modules'
    end

So my question is what does error message mean?  Do I need to tell puppet where to look hiera.yaml anywhere in host or guest?

Thanks,
-wd

Denmat

unread,
Nov 21, 2013, 5:02:30 PM11/21/13
to puppet...@googlegroups.com
Two things, look at disabling detailed-exitcodes and use --hiera_conf to declare the path to the hiera.yaml file.

That should get you further.
Den
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5a33e4a4-b341-4250-bbfb-5fb7a98674b5%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

chengkai liang

unread,
Nov 22, 2013, 3:06:46 PM11/22/13
to puppet...@googlegroups.com
I suppose in the latest puppet 3.x implementation if you specify --binder true, you don't necessary need to have hiera.yaml exists.  Is that not a case?

-Chengkai


--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/ShzTKgDl7_s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/57836F99-7247-4EAA-86FE-E338B385DF1D%40gmail.com.
Reply all
Reply to author
Forward
0 new messages