Skip to content

ERB support is not working? #58

@walterheck

Description

@walterheck

I can't get the erb parsing support implemented in #24 to work properly, is there something I'm missing?

I have this yaml:

---
roles:
  foss-puppet-master:
    provider:
      type: virtualbox
    provisioners:
      - type: shell
        path: files/setup.sh
        env:
          GIT_BRANCH: <%= ENV['GIT_BRANCH'] >

Which when called like this:

walterheck@walter-envy:~/source/opstheater/deploy/vagrant-oscar$ GIT_BRANCH=test vagrant provision foss-master
 WARN config_builder: The provider attribute, set on vm foss-master, is deprecated and will be removed in an upcoming release. Use the providers attribute instead.
==> foss-master: Running provisioner: hosts...
==> foss-master: Running provisioner: shell...
    foss-master: Running: /tmp/vagrant-shell20161219-24241-19kctso.sh
==> foss-master: blah
==> foss-master: GIT_BRANCH=<%= ENV['GIT_BRANCH'] >
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions