Q: execute a working manifest with modules

47 views
Skip to first unread message

Frans Thamura

unread,
Aug 19, 2014, 12:34:43 PM8/19/14
to puppet...@googlegroups.com
hi all

i have a working puppet modules with init , run well on vagrant

now i want to run the modules inside my ubuntu box

and try puppet apply --modulepath=/vagrant/data/puppet/modules/ manifest/init.pp

but got this error
Warning: Could not retrieve fact fqdn
Error: Failed to parse template /vagrant/puppet/modules/tomcat/templates/tomcat-users.xml.erb:
  Filepath: /usr/lib/ruby/vendor_ruby/puppet/parser/templatewrapper.rb
  Line: 100
  Detail: No such file or directory - /vagrant/puppet/modules/tomcat/templates/tomcat-users.xml.erb
 at /vagrant/data/puppet/modules/tomcat/manifests/init.pp:24 on node vagrant-ubuntu-trusty-64


can help me?

the puppet modele are in github.com/meruvian/vagrant-puppet

i want to make exactly apps installer in my ubuntu box, same as in vagrant box


F

Yanis Guenane

unread,
Aug 19, 2014, 1:58:02 PM8/19/14
to puppet...@googlegroups.com
Hi Frans,

--modulepath should not specify the init.pp, but the path where all the
modules reside

From the doc :

*nix (open source) $confdir/modules:/usr/share/puppet/modules

So in your case it would be --modulepath=/vagrant/data/puppet/modules.

Hope it helps,

--
Yanis Guenane

Frans Thamura

unread,
Aug 20, 2014, 5:23:50 PM8/20/14
to puppet...@googlegroups.com
> From the doc :
>
> *nix (open source) $confdir/modules:/usr/share/puppet/modules
>


> So in your case it would be --modulepath=/vagrant/data/puppet/modules.
>

I try the

puppet apply --modulepath=/vagrant/data/puppet/modules

the console like do nothing

can help?

F


> Hope it helps,
>
> --
> Yanis Guenane
>
> On 08/19/2014 12:34 PM, Frans Thamura wrote:
>> hi all
>>
>> i have a working puppet modules with init , run well on vagrant
>>
>> now i want to run the modules inside my ubuntu box
>>
>> and try puppet apply --modulepath=/vagrant/data/puppet/modules/
>> manifest/init.pp
>>
>> but got this error
>> Warning: Could not retrieve fact fqdn
>> Error: Failed to parse template
>> /vagrant/puppet/modules/tomcat/templates/tomcat-users.xml.erb:
>> Filepath: /usr/lib/ruby/vendor_ruby/puppet/parser/templatewrapper.rb
>> Line: 100
>> Detail: No such file or directory -
>> /vagrant/puppet/modules/tomcat/templates/tomcat-users.xml.erb
>> at /vagrant/data/puppet/modules/tomcat/manifests/init.pp:24 on node
>> vagrant-ubuntu-trusty-64
>>
>>
>> can help me?
>>
>> the puppet modele are in github.com/meruvian/vagrant-puppet
>>
>> i want to make exactly apps installer in my ubuntu box, same as in vagrant
>> box
>>
>>
>> F
>>
>
> --
> 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/53F39010.7030305%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.

Felix Frank

unread,
Aug 25, 2014, 5:44:33 PM8/25/14
to puppet...@googlegroups.com
On 08/20/2014 11:23 PM, Frans Thamura wrote:
> I try the
>
> puppet apply --modulepath=/vagrant/data/puppet/modules
I think Yanis just misread your original invocation, which was fine.

The error message is quite obvious: The file
/vagrant/puppet/modules/tomcat/templates/tomcat-users.xml.erb does not
exist. You will need to research the reason for that.

Cheers,
Felix
Reply all
Reply to author
Forward
0 new messages