I have puppet code for nginx.conf .
The file is created by source => puppet://path to file
which contain the required file contents.
I don't want to disturb this file because it is for default setting.
I have to append this nginx.conf
file which can be deployed on
specific node where it is required.
So I have written the separate module which is responsible for new changes.
But this module is dependent on previous module which contain the nginx.conf
file.
if ! defined(File['/etc/nginx/nginx.conf']) {
file { '/etc/nginx/nginx.conf' :
ensure => present,
owner => root,
group => root,
mode => '0644',
source => 'puppet:///modules/path/to/file/nginx_default.conf',
require => Package[ 'nginx' ],
notify => Service[ 'nginx'],
}
}
How could I append the nginx.conf file without disturbing above code?