Hi everyone!
I try to create hosts via cli. like this:
curl -k -s -u 'root' -H 'Accept: application/json' -X PUT 'https://localhost:/api/v1/objects/hosts/stage-db-virtual.example.mydomain' -d '{ "templates": [ "base_host_tmpl", "mysql_tmpl" ], "attrs": { "host_environment": "stage", "host_location": "r3", "host_purpose" : "dbs", "host_hardware": "virtual" }, "pretty": true }'
Host created. But I have 2 problems.
- In /director/dashboard?name=hosts#!/director/hosts - I cant find this host
- And this: check_ping: Invalid hostname/address -
Is this the right way to create hosts like this and what I am doing wrong?
Thanks!