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