[Puppet Users] Weird Error From Running Puppet

2013-11-21 Thread MM
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 trueThe 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

-- 
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/5a33e4a4-b341-4250-bbfb-5fb7a98674b5%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Re: Unable to specify hierarchy for data-in-modules

2013-11-11 Thread MM
Where can I find this updated examples?

On Thursday, September 19, 2013 1:03:17 PM UTC-7, Rob Reynolds wrote:
>
> Henrik posted some updates/fixes to his examples. Can you check that first?
>
>
> On Wed, Sep 18, 2013 at 10:57 AM, Igor Berger 
> > wrote:
>
>> Any ideas?
>>
>>
>> On Monday, September 16, 2013 11:30:42 AM UTC-4, Igor Berger wrote:
>>>
>>> Hello,
>>>
>>> I'm running Puppet agent stand-alone on Windows.
>>>
>>> I got data-in-modules working. However, no matter what I put into the 
>>> module hiera.yaml,
>>> I can only override the defaults from common.yaml by osfamily (and not, 
>>> e.g., by environment).
>>>
>>> In the setup below the following command outputs:
>>>
>>> >puppet apply --binder -e "notice lookup ('my_key')" --environment=local
>>> Notice: Scope(Class[main]): windows-value
>>> Notice: Compiled catalog for myhostname in environment local in 1.40 
>>> seconds
>>>
>>> And if I delete the osfamily directory, the same command outputs 
>>> "common-value".
>>>
>>> So, even though osfamily is not part of the hierarchy, it's used to 
>>> override the common value.
>>> Conversely, environment is part of the hierarchy, but it's not used.
>>>
>>> Did I miss anything?
>>>
>>> Thanks,
>>> Igor.
>>>
>>>
>>> Module structure:
>>>
>>> my_module/
>>> hiera.yaml
>>> data/
>>> common.yaml
>>> environment/
>>> local.yaml
>>> osfamily/
>>> windows.yaml
>>>
>>>
>>> hiera.yaml contains:
>>>
>>> ---
>>> version: 2
>>> hierarchy:
>>>   [
>>>['environment', '${environment}', 'data/environment/${environment}'],
>>>['common', 'true', 'data/common']
>>>   ]
>>>
>>>
>>> data/common.yaml contains:
>>>
>>> ---
>>> my_key: 'common-value'
>>>
>>>
>>> data/osfamily/windows.yaml contains:
>>>
>>> ---
>>> my_key: 'windows-value'
>>>
>>>
>>> data/environment/local.yaml contains:
>>>
>>> ---
>>> my_key: 'local-value'
>>>
>>>  -- 
>> 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 post to this group, send email to puppet...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/puppet-users.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> -- 
> Rob Reynolds
> Developer, Puppet Labs
>
> Join us at PuppetConf 2014, September 23-24 in San Francisco
>  

-- 
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/96546f73-d70b-4057-99cd-307ffc902ad2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Puppet create_resources function unable to enforce resource order

2013-10-24 Thread MM
So I have a hiera data like this,

org.vim.Vim64:
name: org.vim.Vim64
ensure: installed
provider: npackd
vim-pathogen:
name: vim-pathogen
ensure: installed
provider: npackd
require: org.vim.Vim64

and I feed these data into create_resources function, yet puppet will 
complain cannnot require org.vim.Vim64 as there's no title for it.  Is 
there a way to get this to work?

Thanks,
~MM

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.