Roger Yu
2013-Nov-20 17:01 UTC
[Puppet Users] How come that module is not executed in Windows?
I have the following in vagrantfile in WIndows system. config.vm.provision :puppet do |puppet| puppet.manifests_path = "manifests" puppet.manifest_file = "base-hadoop.pp" puppet.module_path = "modules" end when i run vagrant provision, i do see manifest and module folders are mounted and ssh into vm, I can find files in the following path [default] -- /tmp/vagrant-puppet/manifests [default] -- /tmp/vagrant-puppet/modules-0 I do see base-hadoop.pp is executed and things are installed. But init.pp under module folder is not executed my file structure in windows is %HOME_PATH%\hadoop\ (under this i have vagrant file) \manifests (under this I have base_hadoop.pp) \modules \hadoop \manifests (under this i have a init.pp) any idea? Thanks Roger -- 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+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5c5553f3-7a9a-474a-a13d-e80e68d2c905%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Eugene Vilensky
2013-Nov-20 17:31 UTC
Re: [Puppet Users] How come that module is not executed in Windows?
On Wed, Nov 20, 2013 at 11:01 AM, Roger Yu <rogeryu28@gmail.com> wrote:> when i run vagrant provision, i do see manifest and module folders are > mounted and ssh into vm, I can find files in the following path > > [default] -- /tmp/vagrant-puppet/manifests > [default] -- /tmp/vagrant-puppet/modules-0 > > I do see base-hadoop.pp is executed and things are installed. But init.pp > under module folder is not executedDoes a manifest exist which correctly assigns classes to the machine? Usually the "puppet.manifest_file" setting is used for this purpose, such as including other *.pp files which then assign like so: http://docs.puppetlabs.com/puppet/2.7/reference/lang_node_definitions.html, is one way to do it. -- 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+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAEUKkZ9v0cOoogUGNMuxS5BVTLXRgb2K-ZQfDfhhmsV2DKHSsA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Roger Yu
2013-Nov-21 00:17 UTC
Re: [Puppet Users] How come that module is not executed in Windows?
Yes, if you look at the directory structure above I have base-hadoop.pp under manifests folder and init.pp under modules\hadoop\manifests folder. and init.pp content is listed below class hadoop { $hadoop_home = "/opt/hadoop" exec { "download_hadoop": command => "wget -O /tmp/hadoop.tar.gz http://apache.mirrors.timporter.net/hadoop/common/hadoop-1.0.3/hadoop-1.0.3.tar.gz", path => $path, unless => "ls /opt | grep hadoop-1.0.3", require => Package["openjdk-6-jdk"] } exec { "unpack_hadoop" : command => "tar -zxf /tmp/hadoop.tar.gz -C /opt", path => $path, creates => "${hadoop_home}-1.0.3", require => Exec["download_hadoop"] } } Eugene Vilensky於 2013年11月20日星期三UTC-8上午9時31分30秒寫道:> > On Wed, Nov 20, 2013 at 11:01 AM, Roger Yu <roge...@gmail.com<javascript:>> > wrote: > > when i run vagrant provision, i do see manifest and module folders are > > mounted and ssh into vm, I can find files in the following path > > > > [default] -- /tmp/vagrant-puppet/manifests > > [default] -- /tmp/vagrant-puppet/modules-0 > > > > I do see base-hadoop.pp is executed and things are installed. But > init.pp > > under module folder is not executed > > > > Does a manifest exist which correctly assigns classes to the machine? > Usually the "puppet.manifest_file" setting is used for this purpose, > such as including other *.pp files which then assign like so: > http://docs.puppetlabs.com/puppet/2.7/reference/lang_node_definitions.html, > > is one way to do it. >-- 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+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/44a5744a-6af7-4ca3-89e0-e480b605fa70%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.