bartavelle / language-puppet

A library to work with Puppet manifests, test them and eventually replace everything ruby.
BSD 3-Clause "New" or "Revised" License
51 stars 8 forks source link

Add a rule to refuse `->` between 2 exported resources #129

Open PierreR opened 9 years ago

PierreR commented 9 years ago

This is rather peculiar but I have just noticed that puppet (3.8.2) refuses -> between two exported resources.

If it is indeed intended (not a puppet bug), we might want to add a rule to refuse such syntax:

  @@postgresql::server::pg_hba_rule { 'pg_hba open local access for salt':
    description => 'MD5 access to the puppetdb database',
    type        => 'local',
    database    => $db_name,
    user        => $db_user,
    auth_method => 'trust',
  } ->
  @@postgresql_psql {'create table jids':
    db          => $db_name,
   ......
bartavelle commented 9 years ago

Can you try the following cases too ?

@@foo -> bar
foo -> @@bar