{"action":"created","issue":{"url":"https://api.github.com/repos/mietek/halcyon/issues/35","labels_url":"https://api.github.com/repos/mietek/halcyon/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/mietek/halcyon/issues/35/comments","events_url":"https://api.github.com/repos/mietek/halcyon/issues/35/events","html_url":"https://github.com/mietek/halcyon/issues/35","id":57593542,"number":35,"title":"Wierd error when trying an install with puppet","user":{"login":"PierreR","id":93115,"avatar_url":"https://avatars.githubusercontent.com/u/93115?v=3","gravatar_id":"","url":"https://api.github.com/users/PierreR","html_url":"https://github.com/PierreR","followers_url":"https://api.github.com/users/PierreR/followers","following_url":"https://api.github.com/users/PierreR/following{/other_user}","gists_url":"https://api.github.com/users/PierreR/gists{/gist_id}","starred_url":"https://api.github.com/users/PierreR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PierreR/subscriptions","organizations_url":"https://api.github.com/users/PierreR/orgs","repos_url":"https://api.github.com/users/PierreR/repos","events_url":"https://api.github.com/users/PierreR/events{/privacy}","received_events_url":"https://api.github.com/users/PierreR/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mietek/halcyon/labels/question","name":"question","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-13T12:31:38Z","updated_at":"2015-02-17T21:00:55Z","closed_at":"2015-02-17T21:00:55Z","body":"I am trying to install `halcyon` using `puppet` and I have quite a wicket issue ... It is `puppet` related so I am just submit it here just in case you have an idea ...\r\n\r\nI have tried this using a root user or an unprivilege one but it makes not difference.\r\n\r\nEverything works fine without `puppet`. The same command works perfectly  if I use manually on a shell but when `puppet` try to install cabal I have got:\r\n\r\n```\r\nDebug: Exec[install-ghc](provider=posix): Executing '/bin/bash --login -c 'source <( /app/halcyon/halcyon paths ); halcyon install''\r\nDebug: Executing '/bin/bash --login -c 'source <( /app/halcyon/halcyon paths ); halcyon install''\r\nNotice: /Stage[main]/Profile::Jenkins::Slave::Halcyon/Exec[install-ghc]/returns: -----> Installing bashmenot... done, e2f1a00\r\nNotice: /Stage[main]/Profile::Jenkins::Slave::Halcyon/Exec[install-ghc]/returns: -----> Installing GHC and Cabal\r\nNotice: /Stage[main]/Profile::Jenkins::Slave::Halcyon/Exec[install-ghc]/returns:        External storage:                         public\r\nNotice: /Stage[main]/Profile::Jenkins::Slave::Halcyon/Exec[install-ghc]/returns:        GHC version:                              7.8.4\r\nNotice: /Stage[main]/Profile::Jenkins::Slave::Halcyon/Exec[install-ghc]/returns:        Cabal version:                            1.20.0.3\r\nNotice: /Stage[main]/Profile::Jenkins::Slave::Halcyon/Exec[install-ghc]/returns:        Cabal repository:                         Hackage\r\nNotice: /Stage[main]/Profile::Jenkins::Slave::Halcyon/Exec[install-ghc]/returns: \r\nNotice: /Stage[main]/Profile::Jenkins::Slave::Halcyon/Exec[install-ghc]/returns: -----> Restoring GHC directory\r\nNotice: /Stage[main]/Profile::Jenkins::Slave::Halcyon/Exec[install-ghc]/returns:        Downloading https://halcyon.global.ssl.fastly.net/linux-centos-6-x86_64/halcyon-ghc-7.8.4.tar.gz... done\r\nNotice: /Stage[main]/Profile::Jenkins::Slave::Halcyon/Exec[install-ghc]/returns:        Extracting halcyon-ghc-7.8.4.tar.gz... done, 699MB\r\nNotice: /Stage[main]/Profile::Jenkins::Slave::Halcyon/Exec[install-ghc]/returns: \r\nNotice: /Stage[main]/Profile::Jenkins::Slave::Halcyon/Exec[install-ghc]/returns: -----> Locating Cabal directories\r\nNotice: /Stage[main]/Profile::Jenkins::Slave::Halcyon/Exec[install-ghc]/returns:        Listing https://halcyon.global.ssl.fastly.net/?prefix=linux-centos-6-x86_64/halcyon-cabal-1.20.0.3-hackage-... done\r\nNotice: /Stage[main]/Profile::Jenkins::Slave::Halcyon/Exec[install-ghc]/returns: -----> Restoring base Cabal directory\r\nNotice: /Stage[main]/Profile::Jenkins::Slave::Halcyon/Exec[install-ghc]/returns:        Downloading https://halcyon.global.ssl.fastly.net/linux-centos-6-x86_64/halcyon-cabal-1.20.0.3.tar.gz... done\r\nNotice: /Stage[main]/Profile::Jenkins::Slave::Halcyon/Exec[install-ghc]/returns:        Extracting halcyon-cabal-1.20.0.3.tar.gz... done, 13MB\r\nNotice: /Stage[main]/Profile::Jenkins::Slave::Halcyon/Exec[install-ghc]/returns: -----> Updating Cabal directory\r\nNotice: /Stage[main]/Profile::Jenkins::Slave::Halcyon/Exec[install-ghc]/returns:        Updating Cabal package database... error\r\n\r\n```\r\nThis is strange because I do force a bash shell (login or not it makes no difference) by asking `puppet` to do the following:\r\n```\r\n  exec { 'install-ghc':\r\n    user    => $jenkins_user,\r\n    command => \"/bin/bash --login -c 'source <( /app/halcyon/halcyon paths ); halcyon install'\",\r\n    creates => \"${halcyon_base}/ghc\",\r\n    logoutput => on_failure,\r\n    require => Exec['clone-halcyon']\r\n  } \r\n\r\n```\r\n\r\nAny idea ?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mietek/halcyon/issues/comments/74752220","html_url":"https://github.com/mietek/halcyon/issues/35#issuecomment-74752220","issue_url":"https://api.github.com/repos/mietek/halcyon/issues/35","id":74752220,"user":{"login":"mietek","id":166207,"avatar_url":"https://avatars.githubusercontent.com/u/166207?v=3","gravatar_id":"","url":"https://api.github.com/users/mietek","html_url":"https://github.com/mietek","followers_url":"https://api.github.com/users/mietek/followers","following_url":"https://api.github.com/users/mietek/following{/other_user}","gists_url":"https://api.github.com/users/mietek/gists{/gist_id}","starred_url":"https://api.github.com/users/mietek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mietek/subscriptions","organizations_url":"https://api.github.com/users/mietek/orgs","repos_url":"https://api.github.com/users/mietek/repos","events_url":"https://api.github.com/users/mietek/events{/privacy}","received_events_url":"https://api.github.com/users/mietek/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T21:00:54Z","updated_at":"2015-02-17T21:00:54Z","body":"Cabal wants the user home directory to exist.  Please read the Puppet documentation for [`user`](https://docs.puppetlabs.com/references/latest/type.html#exec-attribute-user), [`home`](https://docs.puppetlabs.com/references/latest/type.html#user-attribute-home), [`managehome`](https://docs.puppetlabs.com/references/latest/type.html#user-attribute-managehome), and [`environment`](https://docs.puppetlabs.com/references/latest/type.html#cron-attribute-environment)."}}