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_path exists, 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=True on watch.

saltext.vcf.states.vcf_vim_datastore_file.file_absent(name, datacenter, datastore, ds_path, profile=None)[source]

Ensure [datastore] ds_path does not exist.

saltext.vcf.states.vcf_vim_datastore_file.directory_present(name, datacenter, datastore, ds_path, profile=None)[source]

Ensure directory [datastore] ds_path exists (mkdir -p).