{"action":"created","issue":{"url":"https://api.github.com/repos/dfarrell07/puppet-opendaylight/issues/19","labels_url":"https://api.github.com/repos/dfarrell07/puppet-opendaylight/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/dfarrell07/puppet-opendaylight/issues/19/comments","events_url":"https://api.github.com/repos/dfarrell07/puppet-opendaylight/issues/19/events","html_url":"https://github.com/dfarrell07/puppet-opendaylight/issues/19","id":54938904,"number":19,"title":"Home dir for odl user","user":{"login":"dfarrell07","id":880273,"avatar_url":"https://avatars.githubusercontent.com/u/880273?v=3","gravatar_id":"","url":"https://api.github.com/users/dfarrell07","html_url":"https://github.com/dfarrell07","followers_url":"https://api.github.com/users/dfarrell07/followers","following_url":"https://api.github.com/users/dfarrell07/following{/other_user}","gists_url":"https://api.github.com/users/dfarrell07/gists{/gist_id}","starred_url":"https://api.github.com/users/dfarrell07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfarrell07/subscriptions","organizations_url":"https://api.github.com/users/dfarrell07/orgs","repos_url":"https://api.github.com/users/dfarrell07/repos","events_url":"https://api.github.com/users/dfarrell07/events{/privacy}","received_events_url":"https://api.github.com/users/dfarrell07/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dfarrell07/puppet-opendaylight/labels/info%3Aprogress-0","name":"info:progress-0","color":"009800"},{"url":"https://api.github.com/repos/dfarrell07/puppet-opendaylight/labels/prio%3Anormal","name":"prio:normal","color":"fbca04"},{"url":"https://api.github.com/repos/dfarrell07/puppet-opendaylight/labels/type%3Abug","name":"type:bug","color":"0052cc"}],"state":"open","locked":false,"assignee":{"login":"dfarrell07","id":880273,"avatar_url":"https://avatars.githubusercontent.com/u/880273?v=3","gravatar_id":"","url":"https://api.github.com/users/dfarrell07","html_url":"https://github.com/dfarrell07","followers_url":"https://api.github.com/users/dfarrell07/followers","following_url":"https://api.github.com/users/dfarrell07/following{/other_user}","gists_url":"https://api.github.com/users/dfarrell07/gists{/gist_id}","starred_url":"https://api.github.com/users/dfarrell07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfarrell07/subscriptions","organizations_url":"https://api.github.com/users/dfarrell07/orgs","repos_url":"https://api.github.com/users/dfarrell07/repos","events_url":"https://api.github.com/users/dfarrell07/events{/privacy}","received_events_url":"https://api.github.com/users/dfarrell07/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/dfarrell07/puppet-opendaylight/milestones/1","labels_url":"https://api.github.com/repos/dfarrell07/puppet-opendaylight/milestones/1/labels","id":938760,"number":1,"title":"Release on Forge","description":"OpenDaylight Puppet module released to the Puppet Forge.","creator":{"login":"dfarrell07","id":880273,"avatar_url":"https://avatars.githubusercontent.com/u/880273?v=3","gravatar_id":"","url":"https://api.github.com/users/dfarrell07","html_url":"https://github.com/dfarrell07","followers_url":"https://api.github.com/users/dfarrell07/followers","following_url":"https://api.github.com/users/dfarrell07/following{/other_user}","gists_url":"https://api.github.com/users/dfarrell07/gists{/gist_id}","starred_url":"https://api.github.com/users/dfarrell07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfarrell07/subscriptions","organizations_url":"https://api.github.com/users/dfarrell07/orgs","repos_url":"https://api.github.com/users/dfarrell07/repos","events_url":"https://api.github.com/users/dfarrell07/events{/privacy}","received_events_url":"https://api.github.com/users/dfarrell07/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":7,"state":"open","created_at":"2015-01-16T16:03:40Z","updated_at":"2015-01-20T20:59:56Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-01-20T20:59:56Z","updated_at":"2015-01-20T21:00:41Z","closed_at":null,"body":"The [latest ODL RPM](https://github.com/dfarrell07/odl_rpm) (version 5) has support for using `user:group` `odl:odl`. The creation of the user `odl` is done like this:\r\n\r\n```\r\n%pre\r\n# Create `odl` user/group\r\n# Short circuits if the user/group already exists\r\ngetent passwd odl > /dev/null || useradd odl -M\r\ngetent group odl > /dev/null || groupadd odl\r\n```\r\n\r\nThe `-M` flag should prevent the creation of a home directory. However, the Beaker tests added in 238367923980861faf6279f1be35de35bddf2eff suggest that a home directory is being created anyway:\r\n\r\n```\r\nFailures:\r\n\r\n  1) opendaylight class default parameters User \"odl\" should not have home directory \"/home/odl\"\r\n     Failure/Error: it { should_not have_home_directory '/home/odl' }\r\n       expected #has_home_directory?(\"/home/odl\") to return false, got true\r\n       /bin/sh -c getent\\ passwd\\ odl\\ \\|\\ cut\\ -f\\ 6\\ -d\\ \\':\\'\\ \\|\\ grep\\ -w\\ --\\ /home/odl\r\n       /home/odl\r\n\r\n     # ./spec/acceptance/class_spec.rb:40:in `block (4 levels) in <top (required)>'\r\n```"},"comment":{"url":"https://api.github.com/repos/dfarrell07/puppet-opendaylight/issues/comments/70732305","html_url":"https://github.com/dfarrell07/puppet-opendaylight/issues/19#issuecomment-70732305","issue_url":"https://api.github.com/repos/dfarrell07/puppet-opendaylight/issues/19","id":70732305,"user":{"login":"dfarrell07","id":880273,"avatar_url":"https://avatars.githubusercontent.com/u/880273?v=3","gravatar_id":"","url":"https://api.github.com/users/dfarrell07","html_url":"https://github.com/dfarrell07","followers_url":"https://api.github.com/users/dfarrell07/followers","following_url":"https://api.github.com/users/dfarrell07/following{/other_user}","gists_url":"https://api.github.com/users/dfarrell07/gists{/gist_id}","starred_url":"https://api.github.com/users/dfarrell07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfarrell07/subscriptions","organizations_url":"https://api.github.com/users/dfarrell07/orgs","repos_url":"https://api.github.com/users/dfarrell07/repos","events_url":"https://api.github.com/users/dfarrell07/events{/privacy}","received_events_url":"https://api.github.com/users/dfarrell07/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T21:00:41Z","updated_at":"2015-01-20T21:00:41Z","body":"I built a fresh RPM from the `.spec` file using the scripts in the ODL RPM repo (linked above). Seeing the same behavior."}}