hi all ,
priorly , i deployed puppet as..
/etc/puppet/
--/puppet.conf
--/modules (all modules here)
--/manifests
i want to use environment option to select module according to
environment given.
now to use environment option , changerd puppet.conf .
# /etc/puppet/puppet.conf
[development]
modulepath = /etc/puppetmodules/development/modules/
[production]
modulepath = /etc/puppetmodules/production/modules/
In manifest there is an entry....like following..
.
.
.
file { "/var/lib/conf/my.xml":
owner => ''root'',
source => "puppet://puppet/<moduleanme>/my.xml" ,
}
.
..
when i run puppetd at client :
$ puppetd --test --debug --environment production
then it is using file source
to /etc/puppet/modules/<modulename>/files/
but expected is ....
/etc/puppetmodules/production/modules/<modulename>/files/
what should i do, to choose file within module ?
means relative path of file?
and
how to use source to specify obsolute path like
"/etc/lib/puppet/myfile/my.xml"
file{ "/path/to/file":
source => ........,
}
thanks in advance :)
--
sanjiv Singh (iLabs)
Impetus Infotech india .
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
> # /etc/puppet/puppet.conf > > [development] > modulepath = /etc/puppetmodules/development/modules/ > [production] > modulepath = /etc/puppetmodules/production/modules/ > > In manifest there is an entry....like following.. > . > . > . > file { "/var/lib/conf/my.xml": > owner => ''root'', > source => "puppet://puppet/<moduleanme>/my.xml" , > }What version is the puppetmaster? I faintly remember that "modules" used to be a component of the path at some point...> .. > when i run puppetd at client : > > $ puppetd --test --debug --environment production > > then it is using file source > to /etc/puppet/modules/<modulename>/files/ > but expected is .... > /etc/puppetmodules/production/modules/<modulename>/files/ > > > what should i do, to choose file within module ?This is actually supposed to work as you described. Silly question: Have you reloaded the master configuration?> how to use source to specify obsolute path like > "/etc/lib/puppet/myfile/my.xml" > > file{ "/path/to/file": > source => ........, > }You just specify it. But it''s not a path on the puppetmaster then. The source is local to the system running puppetd. To use a file on your puppetmaster, use "content => file(...)" instead. Cheers, Felix -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.