User story #12436
Updated by Alexis Mousset over 6 years ago
The following methods are deprecated in 4.3: Renamed methods: directory_create.cf -> directory_present file_copy_from_local_source.cf -> file_from_local_source file_copy_from_local_source_recursion.cf -> file_from_local_source_recursion file_copy_from_local_source_with_check.cf -> file_from_local_source_with_check file_copy_from_remote_source.cf -> file_from_remote_source file_copy_from_remote_source_recursion.cf -> file_from_remote_source_recursion file_create.cf -> file_present file_create_symlink.cf -> file_symlink_present file_create_symlink_enforce.cf -> file_symlink_present_option file_create_symlink_force.cf -> file_symlink_present_force file_download.cf -> file_from_http_server file_enforce_content.cf -> file_content file_ensure_block_in_section.cf -> file_block_present_in_section file_ensure_block_present.cf -> file_block_present file_ensure_keys_values.cf -> file_keys_values_present file_ensure_key_value.cf -> file_key_value_present file_ensure_key_value_option.cf -> file_key_value_present_option file_ensure_key_value_parameter_in_list.cf -> file_key_value_parameter_present_in_list file_ensure_key_value_parameter_not_in_list.cf -> file_key_value_parameter_absent_in_list file_ensure_key_value_present_in_ini_section.cf -> file_key_value_present_in_ini_section file_ensure_line_present_in_ini_section.cf -> file_line_present_in_ini_section file_ensure_line_present_in_xml_tag.cf -> file_line_present_in_xml_tag file_ensure_lines_absent.cf -> file_lines_absent file_ensure_lines_present.cf -> file_lines_present file_remove.cf -> file_absent permissions_dirs_recurse.cf -> permissions_dir_recursive permissions_recurse.cf -> permissions_recursive _service_check_running_smf.cf -> service_check_running _service_check_running_src.cf -> service_check_running service_ensure_disabled_at_boot.cf -> service_disabled_at_boot service_ensure_running.cf -> service_started service_ensure_running_path.cf -> service_started_path service_ensure_started_at_boot.cf -> service_enabled service_ensure_stopped.cf -> service_stopped These are simply renamed, without changes in the arguments, we only need to be careful with the classes from these methods used as conditions. Deprecated with changes in parameters: file_from_template -> This method uses CFEngine's templating which is deprecated and not portable accross agents. file_template_expand -> This method uses CFEngine's templating which is deprecated and not portable accross agents. package_install -> package_present package_install_version -> package_present package_install_version_cmp -> package_present package_install_version_cmp_update -> package_present package_remove -> package_absent service_restart_if -> Use [service_restart](#service_restart) with a condition service_start -> service_started (or service_action) service_stop -> service_stopped (or service_action) user_create -> Please split into calls to other user_* methods