Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

berks cookbook does not download the latest version of openvpn #47

Closed
chrisduong opened this issue Feb 23, 2015 · 2 comments
Closed

berks cookbook does not download the latest version of openvpn #47

chrisduong opened this issue Feb 23, 2015 · 2 comments

Comments

@chrisduong
Copy link

Hi,
My berksfile is:
`
source "https://supermarket.chef.io"

metadata

cookbook 'openvpn', '~> 2.1.0'
`

However, during berks install I don't have the latest template file: server.conf.erb.
I logged into my test kitchen, it is a different file

`

OpenVPN server config file

Generated by Chef - local changes will be overwritten

port <%= @PORT %>
proto <%= @proto %>
<% if @type == "server-bridge" -%>
dev tap<%= @interface_num %>
<% else -%>
dev tun<%= @interface_num %>
The problem with this old file is that if the 'plugins' is empty as default, it would bring the error - Nomethod each for Nil:NilClass
<% @plugins.each do |p| -%>
plugin <%= p %>
`
<% end -%>

@flaccid
Copy link
Contributor

flaccid commented Feb 24, 2015

@chrisduong as you probably would of noticed the config file is now dynamically configured in the master branch, see https://github.com/xhost-cookbooks/openvpn/blob/master/templates/default/server.conf.erb.
I added in a Rakefile and a few more little enhancements to help with testing.

@flaccid flaccid reopened this Feb 24, 2015
@flaccid flaccid closed this as completed Feb 24, 2015
@lock
Copy link

lock bot commented Jul 24, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants