Don't remove default package files instead of empty them
Change-Id: I6e06552d44f1b81fc18b944e05d94065fbfc77ea Closes-Bug: #1626468 Signed-off-by: Maksim Malchuk <mmalchuk@mirantis.com>
This commit is contained in:
parent
e245904062
commit
c19aa7525a
@ -8,9 +8,10 @@ class fuel::nginx inherits fuel::params {
|
|||||||
file { ['/etc/nginx/conf.d/default.conf',
|
file { ['/etc/nginx/conf.d/default.conf',
|
||||||
'/etc/nginx/conf.d/virtual.conf',
|
'/etc/nginx/conf.d/virtual.conf',
|
||||||
'/etc/nginx/conf.d/ssl.conf']:
|
'/etc/nginx/conf.d/ssl.conf']:
|
||||||
ensure => 'absent',
|
ensure => 'file',
|
||||||
notify => Service['nginx'],
|
content => "# This file managed by Puppet\n# and should exists to prevent fail on package upgrade\n",
|
||||||
before => File["/etc/nginx/nginx.conf"],
|
notify => Service['nginx'],
|
||||||
|
before => File["/etc/nginx/nginx.conf"],
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $service_enabled == false ){
|
if ( $service_enabled == false ){
|
||||||
|
Loading…
Reference in New Issue
Block a user