Hi Aviar,
 I think you should try this once.

class test {
        notify { "hello world": }

        file { '/home/puppet/hello':
                owner => "root",
                group => "root",
                mode => 644,
                ensure => present,
                source => "puppet:///fileserver.uc.local/extra_files/hello",
        }
}

Regards, 
Sneha,
NTT DATA GTS. (OSS Centre)


On Friday, July 19, 2013 4:11:24 PM UTC+5:30, Aviar wrote:
>
> my environment:
>
> 192.168.0.13    puppet.uc.local
> 192.168.0.14    puppetca.uc.local
> 192.168.0.15    report.uc.local
> 192.168.0.16    fileserver.uc.local
> 192.168.0.17    agent01.uc.local
>
>
> i want run a master as fileserver (fileserver.uc.local)
> the puppet.uc.local and fileserver.uc.local use one ca.pem
>
> on puppet.uc.local, i wrote a class for test
>
> class test {
>         notify { "hello world": }
>
>         file { '/home/puppet/hello':
>                 owner => "root",
>                 group => "root",
>                 mode => 644,
>                 ensure => "file",
>                 source => "puppet://fileserver.uc.local/extra_files/hello",
>         }
> }
>
> but i found that, the agent fetch file_metadata from fileserver.uc.local 
> and fetch file_content from puppet.uc.local
>
> puppet.uc.local:
> ================================================
> [2013-07-19 18:25:07] DEBUG accept: 192.168.0.17:43547
> [2013-07-19 18:25:07] DEBUG Puppet::Network::HTTP::WEBrickREST is invoked.
> [2013-07-19 18:25:07] 192.168.0.17 - - [19/Jul/2013:18:25:07 CST] "GET 
> /production/node/agent01.uc.local? HTTP/1.1" 200 4032
> [2013-07-19 18:25:07] - -> /production/node/agent01.uc.local?
> [2013-07-19 18:25:07] DEBUG close: 192.168.0.17:43547
> [2013-07-19 18:25:07] DEBUG accept: 192.168.0.17:43549
> [2013-07-19 18:25:07] DEBUG Puppet::Network::HTTP::WEBrickREST is invoked.
> [2013-07-19 18:25:07] 192.168.0.17 - - [19/Jul/2013:18:25:07 CST] "POST 
> /production/catalog/agent01.uc.local HTTP/1.1" 200 1560
> [2013-07-19 18:25:07] - -> /production/catalog/agent01.uc.local
> [2013-07-19 18:25:07] DEBUG close: 192.168.0.17:43549
> [2013-07-19 18:25:07] DEBUG accept: 192.168.0.17:43551
> [2013-07-19 18:25:07] DEBUG Puppet::Network::HTTP::WEBrickREST is invoked.
> [2013-07-19 18:25:07] 192.168.0.17 - - [19/Jul/2013:18:25:07 CST] "GET 
> /production/file_content/extra_files/hello HTTP/1.1" 200 1300
> [2013-07-19 18:25:07] - -> /production/file_content/extra_files/hello
> [2013-07-19 18:25:07] DEBUG close: 192.168.0.17:43551
> [2013-07-19 18:25:07] DEBUG accept: 192.168.0.17:43552
> [2013-07-19 18:25:07] DEBUG Puppet::Network::HTTP::WEBrickREST is invoked.
> [2013-07-19 18:25:07] 192.168.0.17 - - [19/Jul/2013:18:25:07 CST] "GET 
> /production/file_content/extra_files/hello HTTP/1.1" 200 1300
> [2013-07-19 18:25:07] - -> /production/file_content/extra_files/hello
> [2013-07-19 18:25:07] DEBUG close: 192.168.0.17:43552
> ================================================
>
>
> fileserver.uc.local:
> ================================================
> [2013-07-19 18:25:07] DEBUG accept: 192.168.0.17:44945
> [2013-07-19 18:25:07] DEBUG Puppet::Network::HTTP::WEBrickREST is invoked.
> [2013-07-19 18:25:07] 192.168.0.17 - - [19/Jul/2013:18:25:07 CST] "GET 
> /production/file_metadatas/plugins?links=manage&recurse=true&ignore=.svn&ignore=CVS&ignore=.git&checksum_type=md5
>  
> HTTP/1.1" 200 278
> [2013-07-19 18:25:07] - -> 
> /production/file_metadatas/plugins?links=manage&recurse=true&ignore=.svn&ignore=CVS&ignore=.git&checksum_type=md5
> [2013-07-19 18:25:07] DEBUG close: 192.168.0.17:44945
> [2013-07-19 18:25:07] DEBUG accept: 192.168.0.17:44947
> [2013-07-19 18:25:07] DEBUG Puppet::Network::HTTP::WEBrickREST is invoked.
> [2013-07-19 18:25:07] 192.168.0.17 - - [19/Jul/2013:18:25:07 CST] "GET 
> /production/file_metadata/extra_files/hello?links=manage HTTP/1.1" 200 279
> [2013-07-19 18:25:07] - -> 
> /production/file_metadata/extra_files/hello?links=manage
> [2013-07-19 18:25:07] DEBUG close: 192.168.0.17:44947
> ================================================
>
> why? am i make a mistake
> i wish you could understand, english is not my native language
>

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to