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++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -