connect_to.pp 301 B

1234567891011121314151617
  1. # a wrapper define to be able
  2. # to exclude myself from being
  3. # collected
  4. define tinc::connect_to(
  5. $to,
  6. $to_fqdn,
  7. $target,
  8. ){
  9. if $::fqdn != $to_fqdn {
  10. concat::fragment{
  11. $name:
  12. target => $target,
  13. content => "ConnectTo = ${to}\n",
  14. order => '500',
  15. }
  16. }
  17. }