Skip to content

Commit

Permalink
Merge pull request #565 from Chassis/add-fqdn-d-network
Browse files Browse the repository at this point in the history
Add the ${name}.d directory when provisioning a network as well
  • Loading branch information
Bronson Quick committed Aug 3, 2018
2 parents 789080a + 7f19d3c commit 825da82
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions puppet/modules/chassis/manifests/network.pp
Expand Up @@ -27,6 +27,12 @@
content => template('chassis/multisite.nginx.conf.erb'),
notify => Service['nginx']
}
if ( ! defined( File["/etc/nginx/sites-available/${name}.d"] ) ) {
file { "/etc/nginx/sites-available/${name}.d":
ensure => directory,
require => Package['nginx']
}
}
file { "/etc/nginx/sites-enabled/${name}":
ensure => link,
target => "/etc/nginx/sites-available/${name}",
Expand Down

0 comments on commit 825da82

Please sign in to comment.