@@ -121,21 +121,21 @@ bundle agent cfe_internal_update_processes
121121 comment => "CFE processes that should not be enabled",
122122 handle => "cfe_internal_update_processes_vars_agents_to_be_disabled",
123123 slist => { @(def.agents_to_be_disabled) },
124- ifvarclass => isvariable( "def.agents_to_be_disabled" );
124+ if => isvariable( "def.agents_to_be_disabled" );
125125
126126 "agents_to_be_disabled"
127127 comment => "The default agents that should not be enabled.",
128128 handle => "cfe_internal_update_processes_vars_default_agents_to_be_disabled",
129129 slist => { },
130- ifvarclass => not( isvariable("def.agents_to_be_disabled") );
130+ if => not( isvariable("def.agents_to_be_disabled") );
131131
132132 # An agent is disabled if there is a persistently defined disablement
133133 # class OR if the agent is found in a list of agents to be specifically
134134 # disabled.
135135
136136 "disabled[$(all_agents)]"
137137 string => "$(all_agents)",
138- ifvarclass => or( canonify( "persistent_disable_$(all_agents)" ),
138+ if => or( canonify( "persistent_disable_$(all_agents)" ),
139139 some( "$(all_agents)", agents_to_be_disabled ));
140140
141141 systemd_supervised.policy_server.enterprise.hub_passive|(ha_replication_only_node.!failover_to_repliacation_node_enabled)::
@@ -193,7 +193,7 @@ bundle agent cfe_internal_update_processes
193193
194194 "CHECKING FOR PERSISTENTLY DISABLED CFE AGENTS"
195195 usebundle => disable_cfengine_agents($(all_agents)),
196- ifvarclass => canonify("persistent_disable_$(all_agents)"),
196+ if => canonify("persistent_disable_$(all_agents)"),
197197 comment => "Call a bundle to disable CFEngine given processes if persistent_disable_x is set",
198198 handle => "cfe_internal_update_processes_methods_maybe_disabling_cfe_agents";
199199
@@ -254,7 +254,7 @@ bundle agent maintain_cfe_hub_process
254254 restart_class => "no_vacuumdb",
255255 comment => "Monitor vacuumdb process",
256256 handle => "cfe_internal_maintain_cfe_hub_process_processes_check_vacuumdb",
257- ifvarclass => "nova|enterprise";
257+ if => "nova|enterprise";
258258
259259 am_policy_hub.cfredis_in_enterprise::
260260
@@ -263,27 +263,27 @@ bundle agent maintain_cfe_hub_process
263263 restart_class => "start_redis_server",
264264 comment => "Monitor redis-server process",
265265 handle => "cfe_internal_maintain_cfe_hub_process_processes_redis",
266- ifvarclass => "nova|enterprise";
266+ if => "nova|enterprise";
267267
268268 am_policy_hub.cfconsumer_in_enterprise::
269269 "$(cfe_internal_process_knowledge.bindir)/cf-consumer" -> { "ENT-2797" }
270270 restart_class => "start_cf_consumer",
271271 comment => "Monitor cf-consumer process",
272272 handle => "cfe_internal_maintain_cfe_hub_process_processes_cf_consumer",
273- ifvarclass => "(nova|enterprise).no_vacuumdb";
273+ if => "(nova|enterprise).no_vacuumdb";
274274
275275 am_policy_hub.!enable_cfengine_enterprise_hub_ha::
276276 "$(cfe_internal_process_knowledge.bindir)/postgres"
277277 restart_class => "start_postgres_server",
278278 comment => "Monitor postgres process",
279279 handle => "cfe_internal_maintain_cfe_hub_process_processes_postgres",
280- ifvarclass => "nova|enterprise";
280+ if => "nova|enterprise";
281281
282282 am_policy_hub.!enable_cfengine_enterprise_hub_ha.files_ok.!windows|ha_run_hub_process::
283283 "cf-hub" restart_class => "start_hub",
284284 comment => "Monitor cf-hub process",
285285 handle => "cfe_internal_maintain_cfe_hub_process_processes_cf_hub",
286- ifvarclass => and( "(nova|enterprise).no_vacuumdb",
286+ if => and( "(nova|enterprise).no_vacuumdb",
287287 "!persistent_disable_cf_hub" ); # Don't start it if it's persistently disabled
288288
289289 am_policy_hub.ha_kill_hub_process::
@@ -373,7 +373,7 @@ bundle agent disable_cfengine_agents(process)
373373 signals => { "term" },
374374 comment => "Terminate $(process)",
375375 handle => "cfe_internal_disable_cfengine_agents_processes_terminate_process",
376- ifvarclass => "disable_$(cprocess)";
376+ if => "disable_$(cprocess)";
377377
378378}
379379
@@ -410,7 +410,7 @@ bundle agent enable_cfengine_agents(process)
410410 restart_class => "restart_$(cprocess)",
411411 comment => "Create a class to restart a process",
412412 handle => "cfe_internal_enable_cfengine_agents_processes_restart_process",
413- ifvarclass => "enable_$(cprocess)";
413+ if => "enable_$(cprocess)";
414414
415415 #
416416
@@ -422,21 +422,21 @@ bundle agent enable_cfengine_agents(process)
422422 comment => "Restart a process",
423423 handle => "cfe_internal_enable_cfengine_agents_commands_restart_process",
424424 classes => u_kept_successful_command,
425- ifvarclass => and( "restart_$(cprocess)",
425+ if => and( "restart_$(cprocess)",
426426 isvariable( "sys.$(cprocess)" ) );
427427
428428 reports:
429429 "The process $(process) is persistently disabled. Run with '-Dclear_persistent_disable_$(cprocess)' to re-enable it."
430- ifvarclass => and( "persistent_disable_$(cprocess)",
430+ if => and( "persistent_disable_$(cprocess)",
431431 isvariable( "sys.$(cprocess)" ));
432432
433433 "The process $(process) has been re-enabled. Run with '-Dset_persistent_disable_$(cprocess)' to disable it persistently again."
434- ifvarclass => and( "clear_persistent_disable_$(cprocess)",
434+ if => and( "clear_persistent_disable_$(cprocess)",
435435 isvariable( "sys.$(cprocess)" )),
436436 classes => u_clear_always("persistent_disable_$(cprocess)");
437437
438438 "The process $(process) has been disabled persistently. Run with '-Dclear_persistent_disable_$(cprocess)' to re-enable it."
439- ifvarclass => "set_persistent_disable_$(cprocess)",
439+ if => "set_persistent_disable_$(cprocess)",
440440 classes => u_always_forever("persistent_disable_$(cprocess)");
441441}
442442
0 commit comments