on-http-y1
Version:
OnRack Http Server
36 lines (30 loc) • 850 B
JavaScript
// Copyright 2015, EMC, Inc.
;
var command = process.argv[2];
switch (command) {
case '--list':
console.log(
JSON.stringify(
{
'_meta': {
'hostvars': {
'<%=ipaddress%>': {
'ansible_ssh_user': '<%=username%>',
'ansible_sudo_pass': '<%=password%>'
}
}
},
'<%=identifier%>': {
'hosts': [
'<%=ipaddress%>'
]
}
}
)
);
break;
default:
console.log('Missing required argument --host');
break;
}