Correct. When you use that syntax in the source parameter, it looks for the 
file specified, in a directory called files, in the module specified.

On Thursday, January 17, 2013 9:44:39 PM UTC-8, Brigzzy Briggs wrote:
>
> Thanks for the reply :)  I got it to work by adding a path to the 
> fileserver.conf file as follows:  path /etc/puppet/files
>
> and put my config file in there, but if I am reading your reply correctly, 
> I can just create a folder called files in /etc/puppet/modules/ntp, and it 
> will be read when the module is loaded, correct?  This way I can keep my 
> config files with their respective modules and not need a separate folder 
> for them?
>
> Thanks so much for your reply :)
>
> Brigzzy
>
> On Thursday, 17 January 2013 21:21:57 UTC-8, Brian Mathis wrote:
>>
>> Where does the file exist on the filesystem? 
>>
>> This is somewhat counter-intuitive until you do it a few times.  The 
>> source path in the manifest is: 
>>     puppet:///modules/ntp/ntp.conf 
>> but in the filesystem, the file should be under 
>>     modules/ntp/files/ntp.conf 
>>
>> You may have missed the "files" in there on the filesystem.  At first 
>> glance the URL is just a straight path, but Puppet treats it more like 
>> a list of arguments that it processes. 
>>
>> Also, you might find clues in the log files on the master, probably in 
>> syslog somewhere. 
>>
>>
>> ❧ Brian Mathis 
>>
>>
>> On Thu, Jan 17, 2013 at 7:11 PM, Brigzzy Briggs <bri...@gmail.com> 
>> wrote: 
>> > Hi All, 
>> > 
>> > Sorry if this is a really remedial question, but I cannot find the 
>> answer to 
>> > my problem anywhere else.  I am trying to learn puppet, and am creating 
>> a 
>> > basic ntp module, that should install the ntp package (Which it does), 
>> then 
>> > copy the ntp.conf file (Which it does not) and then start the service 
>> (Which 
>> > it does).  Could someone please look at the init.pp file below and tell 
>> me 
>> > what I am doing wrong?  Is there a line or a parameter that I missed in 
>> > there somewhere? 
>> > 
>> > It is worth noting that both the client and server are Ubuntu 12.10. 
>> > 
>> > Thanks :) 
>> > 
>> > class ntp { 
>> > package { 'ntp': 
>> > ensure => latest, 
>> > } 
>> > 
>> > file { '/etc/ntp.conf': 
>> > ensure => file, 
>> > source => 'puppet:///modules/ntp/ntp.conf', 
>> > owner => root, 
>> > group => root, 
>> > mode => 0444, 
>> > require => Package['ntp'], 
>> > notify => Service['ntp'], 
>> > } 
>> > 
>> > service { 'ntp': 
>> > ensure => 'running', 
>> > enable => 'true', 
>> > } 
>> > } 
>> > 
>> > -- 
>> > You received this message because you are subscribed to the Google 
>> Groups 
>> > "Puppet Users" group. 
>> > To view this discussion on the web visit 
>> > https://groups.google.com/d/msg/puppet-users/-/9hPmf0chP2wJ. 
>> > To post to this group, send email to puppet...@googlegroups.com. 
>> > To unsubscribe from this group, send email to 
>> > puppet-users...@googlegroups.com. 
>> > For more options, visit this group at 
>> > http://groups.google.com/group/puppet-users?hl=en. 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/Z-NXbJZqls0J.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to