Commit d726b4c5 authored by nanahira's avatar nanahira

fix

parent 140c04a5
...@@ -108,7 +108,7 @@ class InventoryBuilder { ...@@ -108,7 +108,7 @@ class InventoryBuilder {
// wg: { hosts } // wg: { hosts }
//})); //}));
await fs.promises.writeFile('result/global-vars.yaml', YAML.stringify(this.vars)); await fs.promises.writeFile('result/global-vars.yaml', YAML.stringify(this.vars));
await Promise.all(hosts.map(host => fs.promises.writeFile(`result/vars-${host[0]}.yaml`, YAML.stringify(host[1])))); await Promise.all(hosts.map(host => fs.promises.writeFile(`result/vars-${host.name}.yaml`, YAML.stringify(host.vars))));
} }
async loadUtilities() { async loadUtilities() {
...@@ -174,6 +174,7 @@ class InventoryBuilder { ...@@ -174,6 +174,7 @@ class InventoryBuilder {
const null_connection = '10000,null'; const null_connection = '10000,null';
const lanInterfaces = host.lanInterfaces; const lanInterfaces = host.lanInterfaces;
const localSubnets = host.subnets; const localSubnets = host.subnets;
console.log(localSubnets);
const masqInterfaces = host.masqInterfaces.length > 0 ? host.masqInterfaces.split(',') : []; const masqInterfaces = host.masqInterfaces.length > 0 ? host.masqInterfaces.split(',') : [];
const routePlans = []; const routePlans = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment