Ask Your Question
0

puppet agent file source

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

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
3

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

lavaman gravatar image

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

Stefan gravatar image

The docs describe this:

http://docs.puppetlabs.com/references/latest/type.html#file-attribute-source

The correct format is

puppet:///modules/name_of_module/filename

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

Stats

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

Seen: 36 times

Last updated: Feb 13 '14