mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Default 'created_by' & 'project' tags as 'unknown'
This will allow easier tracking of untagged VMs.
This commit is contained in:
parent
34fd054a48
commit
48c6e92f63
1 changed files with 4 additions and 0 deletions
|
|
@ -189,6 +189,10 @@ module Vmpooler
|
||||||
$redis.hset('vmpooler__vm__' + vm['hostname'], 'clone', Time.now)
|
$redis.hset('vmpooler__vm__' + vm['hostname'], 'clone', Time.now)
|
||||||
$redis.hset('vmpooler__vm__' + vm['hostname'], 'template', vm['template'])
|
$redis.hset('vmpooler__vm__' + vm['hostname'], 'template', vm['template'])
|
||||||
|
|
||||||
|
# Set some default tags
|
||||||
|
$redis.hset('vmpooler__vm__' + vm['hostname'], 'tag:created_by', 'unknown')
|
||||||
|
$redis.hset('vmpooler__vm__' + vm['hostname'], 'tag:project', 'unknown')
|
||||||
|
|
||||||
# Annotate with creation time, origin template, etc.
|
# Annotate with creation time, origin template, etc.
|
||||||
configSpec = RbVmomi::VIM.VirtualMachineConfigSpec(
|
configSpec = RbVmomi::VIM.VirtualMachineConfigSpec(
|
||||||
annotation: JSON.pretty_generate(
|
annotation: JSON.pretty_generate(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue