Skip to content

Instantly share code, notes, and snippets.

@webframp
Created December 7, 2011 04:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webframp/1441451 to your computer and use it in GitHub Desktop.
Save webframp/1441451 to your computer and use it in GitHub Desktop.
execute "create-tunnelblick-#{u['id']}" do
cwd node["openvpn"]["key_dir"]
command <<-EOH
mkdir #{u['id']}.tblk; cp ca.crt #{u['id']}.{crt,key,conf,ovpn} #{u['id']}.tblk
EOH
not_if { ::File.directory?("#{u['id']}.tblk") }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment