What is the `file` URI scheme in Puppet? -


the documentation source attribute file resource type says:

the available uri schemes puppet , file. puppet uris ...

it explains puppet uri scheme, doesn't file uri scheme. it? mean assign "file://foo/bar/baz" source attribute on file resource?

the file path absolute. refers file on system runs catalog. agent system, or machine on invoke puppet apply.

file {     '/etc/motd':         source => "file:///media/shared-storage0/motd/${fqdn}.motd"; } 

for example, above resource make agent sync motd contents , file metadata shared storage.

you can omit file:// , use full path source.

source => "/media/shared-storage0/motd/${fqdn}.motd"; 

Comments

Post a Comment

Popular posts from this blog

c - CUDA code not processing if block properly -

Android Capture Image From Camera -

oracle11g - get root domain from url Oracle sql regex_substr -