{"action":"created","issue":{"url":"https://api.github.com/repos/luxflux/puppet-openvpn/issues/142","labels_url":"https://api.github.com/repos/luxflux/puppet-openvpn/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/luxflux/puppet-openvpn/issues/142/comments","events_url":"https://api.github.com/repos/luxflux/puppet-openvpn/issues/142/events","html_url":"https://github.com/luxflux/puppet-openvpn/issues/142","id":60128715,"number":142,"title":"Autostart template","user":{"login":"gingaz","id":2790514,"avatar_url":"https://avatars.githubusercontent.com/u/2790514?v=3","gravatar_id":"","url":"https://api.github.com/users/gingaz","html_url":"https://github.com/gingaz","followers_url":"https://api.github.com/users/gingaz/followers","following_url":"https://api.github.com/users/gingaz/following{/other_user}","gists_url":"https://api.github.com/users/gingaz/gists{/gist_id}","starred_url":"https://api.github.com/users/gingaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gingaz/subscriptions","organizations_url":"https://api.github.com/users/gingaz/orgs","repos_url":"https://api.github.com/users/gingaz/repos","events_url":"https://api.github.com/users/gingaz/events{/privacy}","received_events_url":"https://api.github.com/users/gingaz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/luxflux/puppet-openvpn/labels/waiting%20for%20OP","name":"waiting for OP","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-06T17:00:12Z","updated_at":"2015-04-02T09:47:48Z","closed_at":"2015-04-02T09:47:48Z","body":"Hi,\r\n\r\nWhen I install openvpn server it fails to start. The cause is in the generated /etc/default/openvpn file [1].\r\nMore specifically:\r\n\r\n* Line 2 prevents openvpn from starting (\"AUTOSTART=\"$AUTOSTART client1\"\"). \r\n * If I modify the line to \"AUTOSTART=\"client1\"\" it successfully starts the server.\r\n* Line 2 and the last line are duplicate parameter options \"AUTOSTART\". \r\n\r\nSystem:\r\n* Puppet 3.7\r\n* parser=future\r\n* Ubuntu 14.04.1 LTS\r\n\r\nI am not familiar with the module yet, therefore I can't suggest a fix.\r\n\r\nCheers,\r\nGin\r\n\r\n[1] /etc/default/openvpn.\r\n````\r\n# This file is managed by Puppet. DO NOT EDIT.\r\nAUTOSTART=\"$AUTOSTART client1\"\r\n# This is the configuration file for /etc/init.d/openvpn\r\n\r\n#\r\n# Start only these VPNs automatically via init script.\r\n# Allowed values are \"all\", \"none\" or space separated list of\r\n# names of the VPNs. If empty, \"all\" is assumed.\r\n#\r\n#AUTOSTART=\"all\"\r\n#AUTOSTART=\"none\"\r\n#AUTOSTART=\"home office\"\r\n#\r\n# Refresh interval (in seconds) of default status files\r\n# located in /var/run/openvpn.$NAME.status\r\n# Defaults to 10, 0 disables status file generation\r\n#\r\n#STATUSREFRESH=10\r\n#STATUSREFRESH=0\r\n# Optional arguments to openvpn's command line\r\nOPTARGS=\"\"\r\nAUTOSTART=\"\"\r\n````"},"comment":{"url":"https://api.github.com/repos/luxflux/puppet-openvpn/issues/comments/88851484","html_url":"https://github.com/luxflux/puppet-openvpn/issues/142#issuecomment-88851484","issue_url":"https://api.github.com/repos/luxflux/puppet-openvpn/issues/142","id":88851484,"user":{"login":"gingaz","id":2790514,"avatar_url":"https://avatars.githubusercontent.com/u/2790514?v=3","gravatar_id":"","url":"https://api.github.com/users/gingaz","html_url":"https://github.com/gingaz","followers_url":"https://api.github.com/users/gingaz/followers","following_url":"https://api.github.com/users/gingaz/following{/other_user}","gists_url":"https://api.github.com/users/gingaz/gists{/gist_id}","starred_url":"https://api.github.com/users/gingaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gingaz/subscriptions","organizations_url":"https://api.github.com/users/gingaz/orgs","repos_url":"https://api.github.com/users/gingaz/repos","events_url":"https://api.github.com/users/gingaz/events{/privacy}","received_events_url":"https://api.github.com/users/gingaz/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T09:47:48Z","updated_at":"2015-04-02T09:47:48Z","body":"Sorry for the belated reply. The script now works as you specified. \r\nThanks!"}}