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

resource attribute access

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Compiler
    • Template:

      Description

      Based on a post to the development mailing list, it may be useful to add attribute access to the language.

      Use case scenario:

      • a resource has a certain attribute
      • the attribute needs to be accessed from else where (e.g. another resource, template etc.)

      Sample code:
      <pre>
      $cacert_path = Base::X509::Cert["cacert"].path
      </pre>
      Where the Base::X509::Cert resource is a custom define instantiated
      e.g. as:
      <pre>
      base::x509::cert

      { "cacert": path => "/etc/ssl/$name", source => "puppet:///profiles/cacert.pem", }


      </pre>

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            redmine.exporter redmine.exporter
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support