Hi devs,

When looking at the format for pson catalogs, I don't exactly understand
what the edges are:

for example, with the following code:

class motd(
  $testdata = 'test'
){
  file { '/etc/motd':
    content => template('motd/motd.erb'),
    mode => '777',
  }
  notify { '/etc/foo':
    tag => 'blah',
  }
  File['/etc/motd']->Notify['/etc/foo']
}

I would expect the pson catalog to look something like:

{
...
   'data':
      edges: {
        source: File['/etc/motd']
        target: Notify['/etc/foo']
}

but the relationships are not stored as edges, I can only find them in the
resource parameters

"resources": [
      {
        "exported": false,
        "line": 7,
        "title": "/etc/motd",
        "parameters": {
          "content": "TestData CentOS\n",
          "before": "Notify[/etc/foo]",
          "mode": "777"
        },
        "tags": [
          "file",
          "class",
          "motd",
          "node",
          "motd-init.pp"
        ],
        "type": "File",
        "file": "/etc/puppet/foo/motd/manifests/init.pp"
      },

The question is why do edges not refer to the edges of the graph? It looks
like they refer to which scopes things are declared in, why are these called
edges?

-Dan

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to