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 <[email protected]<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 [email protected].
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.

Reply via email to