vcf_vim_datastore_file¶
State module for datastore files + directories.
- saltext.vcf.states.vcf_vim_datastore_file.file_present(name, datacenter, datastore, ds_path, source, profile=None, force=False, match_size=False)[source]¶
Ensure
[datastore] ds_pathexists, uploading from source if missing.force — always re-upload, even if the file already exists.
match_size — treat a size-mismatch (local vs. datastore) as drift and re-upload. Cheaper than a content diff; catches most “regenerated on disk, needs re-upload” cases (ISO rebuilds, kickstart re-renders).
Content drift beyond size is NOT checked — for tight config reconciliation, run this alongside a rendered-file state that detects local changes and set
force=Trueon watch.