[chef] Specifying templates with non-OS criteria


Chronological Thread 
  • From: Guy Matz < >
  • To:
  • Subject: [chef] Specifying templates with non-OS criteria
  • Date: Tue, 3 Dec 2013 12:16:58 -0500

The docs regarding template specificity indicate the OS is the only criteria that can be used for dynamically choosing a template:

The pattern for file specificity is as follows:

  1. host-node[:fqdn]
  2. node[:platform]-node[:platform_version]
  3. node[:platform]-version_components: The version string is split on decimals and searched from greatest specificity to least; for example, if the location from the last rule was centos-5.7.1, then centos-5.7 and centos-5 would also be searched.
  4. node[:platform]
  5. default
Can I use other criteria?  I would like to choose a template based on metal vs VM.

Thanks a lot,
Guy



Archive powered by MHonArc 2.6.16.

§