{"action":"created","issue":{"url":"https://api.github.com/repos/jordansissel/puppet-pleaserun/issues/4","labels_url":"https://api.github.com/repos/jordansissel/puppet-pleaserun/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/jordansissel/puppet-pleaserun/issues/4/comments","events_url":"https://api.github.com/repos/jordansissel/puppet-pleaserun/issues/4/events","html_url":"https://github.com/jordansissel/puppet-pleaserun/issues/4","id":59648578,"number":4,"title":"Question on passing args to the program?","user":{"login":"stack72","id":227823,"avatar_url":"https://avatars.githubusercontent.com/u/227823?v=3","gravatar_id":"","url":"https://api.github.com/users/stack72","html_url":"https://github.com/stack72","followers_url":"https://api.github.com/users/stack72/followers","following_url":"https://api.github.com/users/stack72/following{/other_user}","gists_url":"https://api.github.com/users/stack72/gists{/gist_id}","starred_url":"https://api.github.com/users/stack72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stack72/subscriptions","organizations_url":"https://api.github.com/users/stack72/orgs","repos_url":"https://api.github.com/users/stack72/repos","events_url":"https://api.github.com/users/stack72/events{/privacy}","received_events_url":"https://api.github.com/users/stack72/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-03T14:27:16Z","updated_at":"2015-03-04T18:20:37Z","closed_at":null,"body":"Hey\r\n\r\nI'm trying to make changes to the type and provider. In a nutshell, I want to be able to pass args to the program e.g\r\n\r\n```\r\n/usr/local/bin/puppet-forge-server -D -m /opt/forge/modules -x https://forgeapi.puppetlabs.com --log-dir /opt/forge/log --cache-basedir /opt/forge/cache\r\n```\r\n\r\nIn the puppet provider, I am doing the following:\r\n\r\n```\r\npleaserun {'puppet-forge-server':\r\n    ensure          => present,\r\n    name            => 'puppet-forge-server',\r\n    program         => '/usr/local/bin/puppet-forge-server',\r\n    args            => ['--overwrite --install -D -m /opt/forge/modules -x https://forgeapi.puppetlabs.com --log-dir /opt/forge/log --cache-basedir /opt/forge/cache']\r\n  } \r\n```\r\n\r\nOn inspecting the /etc/init.d file, I see the following at the top\r\n\r\n```\r\nname=puppet-forge-server\r\nprogram=/usr/local/bin/puppet-forge-server\r\nargs=--overwrite\\\\\\ --install\\\\\\ -D\\\\\\ -m\\\\\\ /opt/forge/modules\\\\\\ -x\\\\\\ https://forgeapi.puppetlabs.com\\\\\\ --log-dir\\\\\\ /opt/forge/log\\\\\\ --cache-basedir\\\\\\ /opt/forge/cache\r\npidfile=\"/var/run/$name.pid\"\r\n```\r\n\r\nthe file and the service work as expected, but looking via ps ax, I see that no args are attached to the app\r\n\r\n![screen shot 2015-03-03 at 14 26 29](https://cloud.githubusercontent.com/assets/227823/6464314/507e7206-c1b1-11e4-8877-8baafbcff5a6.png)\r\n\r\nThoughts? \r\n\r\nP."},"comment":{"url":"https://api.github.com/repos/jordansissel/puppet-pleaserun/issues/comments/77214359","html_url":"https://github.com/jordansissel/puppet-pleaserun/issues/4#issuecomment-77214359","issue_url":"https://api.github.com/repos/jordansissel/puppet-pleaserun/issues/4","id":77214359,"user":{"login":"jordansissel","id":131818,"avatar_url":"https://avatars.githubusercontent.com/u/131818?v=3","gravatar_id":"","url":"https://api.github.com/users/jordansissel","html_url":"https://github.com/jordansissel","followers_url":"https://api.github.com/users/jordansissel/followers","following_url":"https://api.github.com/users/jordansissel/following{/other_user}","gists_url":"https://api.github.com/users/jordansissel/gists{/gist_id}","starred_url":"https://api.github.com/users/jordansissel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordansissel/subscriptions","organizations_url":"https://api.github.com/users/jordansissel/orgs","repos_url":"https://api.github.com/users/jordansissel/repos","events_url":"https://api.github.com/users/jordansissel/events{/privacy}","received_events_url":"https://api.github.com/users/jordansissel/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T18:20:37Z","updated_at":"2015-03-04T18:20:37Z","body":"I'm trying to do a bit of more learning with test-kitchen (Huge <3 to @fnichol and others who've helped steer me in the right direction).\r\n\r\nOnce I get more comfortable with tk, it'll be easier to automatically test these kinds of things."}}