title: Using a script that requires user input with chef cookbook with vagrant
body: <p>I'm writing a custom Asterisk chef cookbook where I need to run this script</p>
  
  <pre><code>bash 'create asterisk keys' do
    user 'root'
    cwd File.dirname(source_path)
    code &lt;&lt;-EOH
      cd asterisk-#{node.version}*
      ./contrib/scripts/ast_tls_cert -C #{node.host} -O "#{node.box_name}" -d #{node.keys_dir}
    EOH
    action :nothing
  end
  </code></pre>
  
  <p>This <code>ast_tls_cert</code> script will ask for several password inputs, but when I run this through vagrant the keys never get generated since the passwords never get entered. Is there a way to tell chef that if the script requires user input to just use some ENV variable as the value? I don't really need it to stop and ask the user for the inupt. Actually, I'd rather it didn't do that. I just want to specify some value and tell it to use that value.</p>