Managing Symlinks

Create a symlink using puppet.

1

Votes

class symlinker {

  # preferred symlink syntax
  file { '/tmp/link-to-motd':
    ensure => 'link',
    target => '/etc/motd',
  }

  # older, less clear syntax
  file { '/tmp/link-to-motd':
    ensure => '/etc/motd',
  }

}

Vote Here

You must earn at least 1 vote on your snippets to be allowed to vote

Terms Of Use

Privacy Policy

Featured snippets are MIT license

Gears & Masters

Advertise

DevOpsnipp.com © 2020

medium.png