'my_cookbook':
'files_copy_to_guest':
-
'home/kevin/bin/script.sh' : '/vagrant/unix_scripts/script.sh'
'home/kevin/script2.sh' : '/vagrant/unix_scripts/script2.sh'
It looks to me like the problem is with your YAML. You have a -
line which denotes the beginning of an array, so your object is coming out looking like this:
{
'my_cookbook' => {
'files_copy_to_guest' => [
{
'home/kevin/bin/script.sh' => '/vagrant/unix_scripts/script.sh',
'home/kevin/script2.sh' => '/vagrant/unix_scripts/script2.sh'
}
]
}
}
I think if you ditch the -
it should work. You can test the output of your YAML with a tool like this: http://yaml-online-parser.appspot.com/