dev/provisioning/modules/apache/manifests/namevirtualhost.pp
author Chloe Laisne <chloe.laisne@gmail.com>
Mon, 26 Sep 2016 20:17:26 +0200
changeset 297 50c80dda4fb8
parent 28 b0b56e0f8c7f
permissions -rw-r--r--
Hide filter-component if empty

define apache::namevirtualhost {
  $addr_port = $name

  # Template uses: $addr_port
  concat::fragment { "NameVirtualHost ${addr_port}":
    ensure  => present,
    target  => $::apache::ports_file,
    content => template('apache/namevirtualhost.erb'),
  }
}