multiple chef roles with provisioner

528 views
Skip to first unread message

Joshua Seidel

unread,
Jul 8, 2015, 1:51:42 PM7/8/15
to terrafo...@googlegroups.com
how do i specify multiple roles?

it errors out when i have

  provisioner "chef"  {

        environment = "qa"

        run_list = ["role[mr-base]", "role[mr-www]"]



aws_instance.mweb001 (chef): [2015-07-08T17:40:49+00:00] ERROR: Unable to create Chef::RunList::RunListItem from String:"role['mr-base'],role['mr-www']": must be recipe[] or role[]




anyone have ideas?

Sander van Harmelen

unread,
Jul 10, 2015, 7:14:30 AM7/10/15
to terrafo...@googlegroups.com
Is this still a problem for you, or did you manage to get past this?

If I use something like the line below (which looks exactly the same as what you are doing), it works as expected without any errors:

run_list = ["role[test1]", "role[test2]”]

Are you sure `mr-base` and `mr-www` are valid and existing Chef roles?
If you still have this problem, could you post an example config which results in this error?

Sander


--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/1f751708-4063-45c5-baba-1bd0e56e6406%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages