Ask Your Question

puppet agent file source

asked 2014-02-13 07:35:23 -0600

Hey guys,

I've got a key file in $module/files/ and I want to copy it to /some/user/.ssh during provisioning...

How do I use the source property to achieve this?

I'm currently using:

  file { '/some/user/.ssh/id_rsa':
    ensure => file,
    source => "puppet:///modules/files/id_pub",
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-02-13 11:25:04 -0600

lavaman gravatar image

updated 2014-02-13 12:51:02 -0600

Stefan gravatar image

The docs describe this:

The correct format is


edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2014-02-13 07:35:23 -0600

Seen: 37 times

Last updated: Feb 13 '14