Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-5647

Resource is stored by path and not by $name

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Incomplete
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Types and Providers
    • Labels:
      None
    • Template:

      Description

      file { 'symlink_test122':
        path    => '/tmp/test',
        ensure  => 'link',
        target  => '/tmp/test122',
      } ->
      file { "symlink_test123":
        path    => "/tmp/test",
        force   => true,
        replace => true,
        ensure  => 'link',
        target  => "/tmp/test123",
      }
      

      Results in:

      Error: Evaluation Error: Error while evaluating a Resource Statement, Cannot alias File[symlink_test123] to ["/tmp/test"] at /tmp/test2.pp:7; resource ["File", "/tmp/test"] already declared at /tmp/test2.pp:1 at /tmp/test2.pp:7:1 on node
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            bobvanbokkem Bob van Bokkem
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support