云计算

ansible inventory 中划线问题

2020-12-08  本文已影响0人  cloudFans

为了配置nova numa的绑核区间 将vcpu_pin_set="1to23,25to47,49to71,73to95" 设置到 inventory中

vcpu_pin_set = {{ vcpu_pin_set | replace('to','-') }}

直接用中划线,jinja渲染到nova.conf中的内容是错误的。

上一篇 下一篇

猜你喜欢

热点阅读