add file absence control - https://gitlab.confdroid.com/internal/confdroid_management/-/issues/292
This commit is contained in:
@@ -32,7 +32,7 @@ class puppet_cd::main::files (
|
|||||||
}
|
}
|
||||||
|
|
||||||
if $pt_use_puppetdb == true {
|
if $pt_use_puppetdb == true {
|
||||||
# puppetdb.conf
|
# puppetdb
|
||||||
file { $pt_puppetdb_conf_file:
|
file { $pt_puppetdb_conf_file:
|
||||||
ensure => file,
|
ensure => file,
|
||||||
path => $pt_puppetdb_conf_file,
|
path => $pt_puppetdb_conf_file,
|
||||||
@@ -53,5 +53,14 @@ class puppet_cd::main::files (
|
|||||||
notify => Service[$pt_server_service],
|
notify => Service[$pt_server_service],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if $pt_use_puppetdb != true {
|
||||||
|
file { $pt_puppetdb_conf_file:
|
||||||
|
ensure => absent,
|
||||||
|
}
|
||||||
|
file { $pt_routes_file:
|
||||||
|
ensure => absent,
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user