Open congrmuk opened 5 years ago
Well, I used the sample one and it complains about : ip, mac, build, subnet_id, environment_id
resource "foreman_host" "TerraformTest" {
name = "foremanterraformtest.dev.company.com"
ip = "10.228.170.38"
mac = "C0:FF:EE:BA:BE:00"
build = "true"
domain_id = "${data.foreman_domain.dev.id}"
environment_id = "${data.foreman_environment.production.id}"
hostgroup_id = "${data.foreman_hostgroup.DC1VM.id}"
operatingsystem_id = "${data.foreman_operatingsystem.Centos74.id}"
subnet_id = "${data.foreman_subnet.app1.id}"
}
Hi, i'm trying to create new host using resource foreman_host, but it complains about invalid or unkown keys. Any ideas what might be wrong ?