modularizing struct access and building, fixing pointer references
modularizing struct access and building, fixing pointer references

mattwilmott/terraform-foreman,lunuslovesgreat/terraform-provider-foreman