proxcli invetory

Subsections of proxcli invetory

Show computed proxcli inventory

Options

optiondescriptionAllowed values
filter-namefilter inventory by a regex applyed on virtual machines namesstring
exclude-tagexclude tags from inventory. Comma separated list of tagsstring
output-formatoutput format is one of (json, yaml)string

Examples

  • show computed inventory
proxcli inventory show
  • show computed inventory with only virtual machine names starting by test
proxcli inventory show --filter-name "^test"
  • show computed inventory with only virtual machine names starting by test and exclude production tag
proxcli inventory show --filter-name "^test" --exclude-tag "production"

Save proxcli inventory file

Options

optiondescriptionAllowed values
exclude-tagsa list of coma separated tags to be excluded from the ansible inventory filestring
filter-namea regex applied on host names so only matching host names will be saved in the ansible inventory filestring
output-formatone of json or yamlstring
pathfull path of the ansible inventory filestring

Examples

  • save a proxmox inventory file in yaml format
proxcli inventory create --path ./inventory.yaml
  • save a proxmox inventory file in yaml format with host names matching regex “^test”
proxcli inventory create --path ./inventory.yaml --filter-name "^test"