{"action":"created","issue":{"url":"https://api.github.com/repos/puphpet/puphpet/issues/2627","repository_url":"https://api.github.com/repos/puphpet/puphpet","labels_url":"https://api.github.com/repos/puphpet/puphpet/issues/2627/labels{/name}","comments_url":"https://api.github.com/repos/puphpet/puphpet/issues/2627/comments","events_url":"https://api.github.com/repos/puphpet/puphpet/issues/2627/events","html_url":"https://github.com/puphpet/puphpet/issues/2627","id":216703343,"number":2627,"title":"Something is looking for \"/home/root/.ssh\" - bug?","user":{"login":"OsakaWebbie","id":4035163,"avatar_url":"https://avatars2.githubusercontent.com/u/4035163?v=3","gravatar_id":"","url":"https://api.github.com/users/OsakaWebbie","html_url":"https://github.com/OsakaWebbie","followers_url":"https://api.github.com/users/OsakaWebbie/followers","following_url":"https://api.github.com/users/OsakaWebbie/following{/other_user}","gists_url":"https://api.github.com/users/OsakaWebbie/gists{/gist_id}","starred_url":"https://api.github.com/users/OsakaWebbie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OsakaWebbie/subscriptions","organizations_url":"https://api.github.com/users/OsakaWebbie/orgs","repos_url":"https://api.github.com/users/OsakaWebbie/repos","events_url":"https://api.github.com/users/OsakaWebbie/events{/privacy}","received_events_url":"https://api.github.com/users/OsakaWebbie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-24T08:50:38Z","updated_at":"2017-03-25T02:11:54Z","closed_at":"2017-03-25T02:11:54Z","body":"I'm trying to deploy to Linode with CentOS 7. My host machine is Windows 10 and I'm using Cygwin in order to get the rsync and ssh commands needed (I wish I could do it with either the regular command prompt or the bash shell, but I ran into insurmountable problems - I get farther in Cygwin). But this is the output I get:\r\n\r\n```\r\nBringing machine 'linode1' up with 'linode' provider...\r\n==> linode1: Linode has not been created\r\n==> linode1: Creating a new linode...\r\n==> linode1: Created a new linode... 2890386, https://manager.linode.com/linodes/dashboard/linode1-puphpet\r\n==> linode1: Booting Linode 2890386 ...\r\n==> linode1: Assigned IP address: 139.162.117.225\r\n==> linode1: Machine State ID: brand_new\r\n==> linode1: IP Address: 139.162.117.225\r\n==> linode1: Machine State ID: active\r\n==> linode1: IP Address: 139.162.117.225\r\n==> linode1: Machine State ID: active\r\n==> linode1: IP Address: 139.162.117.225\r\n==> linode1: Machine State ID: active\r\n==> linode1: IP Address: 139.162.117.225\r\n==> linode1: Modifying sudoers file to remove tty requirement...\r\n==> linode1: Creating user account: root...\r\nThe following SSH command responded with a non-zero exit status.\r\nVagrant assumes that this means the command failed!\r\n\r\n            if ! grep 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVrA3HwGwxSs64E/hIlTxEjd9K+3E3atKVWIOpnFWEere/99UZZY1rywpg5IsjcNQkM/VB6gqS1Tqkk7yJ4OQ07sw4UilR7R67OtMZjCqaR7CKvRMloPsW38SF2wunR+m2OsnfHD4czssaPqeD11R9CBm2zdImSKv8oBglqkM6HTTp54w+Fuaq1l9OG7LwlVm5XHi1JEihL/vq86d52mMk5xItKjfJ5BZlD1aZWuUnJzy6H0twBiDtxpmpSDaE12pF+fJ2zIkzwLhgLkUiIrh3+0RglnCZXgvjR5qxSkM58TUyniTyXfTiN5+5QmkprYbAXPmSbFor1I8Rk6SRDPf/ root@GIDEON\r\n' /home/root/.ssh/authorized_keys; then\r\n              echo 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDVrA3HwGwxSs64E/hIlTxEjd9K+3E3atKVWIOpnFWEere/99UZZY1rywpg5IsjcNQkM/VB6gqS1Tqkk7yJ4OQ07sw4UilR7R67OtMZjCqaR7CKvRMloPsW38SF2wunR+m2OsnfHD4czssaPqeD11R9CBm2zdImSKv8oBglqkM6HTTp54w+Fuaq1l9OG7LwlVm5XHi1JEihL/vq86d52mMk5xItKjfJ5BZlD1aZWuUnJzy6H0twBiDtxpmpSDaE12pF+fJ2zIkzwLhgLkUiIrh3+0RglnCZXgvjR5qxSkM58TUyniTyXfTiN5+5QmkprYbAXPmSbFor1I8Rk6SRDPf/ root@GIDEON\r\n' >> /home/root/.ssh/authorized_keys;\r\n            fi\r\n\r\nStdout from the command:\r\n\r\nStderr from the command:\r\n\r\ngrep: /home/root/.ssh/authorized_keys: No such file or directory\r\nbash: line 6: /home/root/.ssh/authorized_keys: No such file or directory\r\n```\r\n\r\nWhy in the world is it trying to put `home` on the front of the path? For the root user on CentOS the home directory is `/root`, not `/home/root`. Is this some sort of bug? I did a bit of a search but can't see what code would be making this mistake.\r\n\r\nHere is the first part of my config.yaml - I can share the rest if you need it, but I doubt it's relevant at this stage:\r\n```yaml\r\nvagrantfile:\r\n    target: linode\r\n    vm:\r\n        provider:\r\n            linode:\r\n                token: <redacted>\r\n                ssh_key_name: Vagrant\r\n                distribution: 'CentOS 7'\r\n                machines:\r\n                    vflm_v6ksp2nu3btv:\r\n                        id: linode1\r\n                        hostname: linode1.puphpet\r\n                        label: linode1-puphpet\r\n                        datacenter: shinagawa1\r\n                        plan: '2048'\r\n        provision:\r\n            puppet:\r\n                manifests_path: puphpet/puppet/manifests\r\n                module_path:\r\n                    - puphpet/puppet/modules\r\n                    - puphpet/puppet/manifests\r\n                options:\r\n                    - '--verbose'\r\n                    - '--hiera_config /vagrant/puphpet/puppet/hiera.yaml'\r\n        synced_folder:\r\n            vflsf_89085dqtz84w:\r\n                source: 'c:/dev/www'\r\n                target: /var/www\r\n            vflsf_24inppjui0wn:\r\n                source: ./\r\n                target: /var/www\r\n        post_up_message: ''\r\n    ssh:\r\n        username: root\r\n        private_key_path: c:/dev/linode/root_rsa\r\n        public_key_path: null\r\n```"},"comment":{"url":"https://api.github.com/repos/puphpet/puphpet/issues/comments/289181325","html_url":"https://github.com/puphpet/puphpet/issues/2627#issuecomment-289181325","issue_url":"https://api.github.com/repos/puphpet/puphpet/issues/2627","id":289181325,"user":{"login":"OsakaWebbie","id":4035163,"avatar_url":"https://avatars2.githubusercontent.com/u/4035163?v=3","gravatar_id":"","url":"https://api.github.com/users/OsakaWebbie","html_url":"https://github.com/OsakaWebbie","followers_url":"https://api.github.com/users/OsakaWebbie/followers","following_url":"https://api.github.com/users/OsakaWebbie/following{/other_user}","gists_url":"https://api.github.com/users/OsakaWebbie/gists{/gist_id}","starred_url":"https://api.github.com/users/OsakaWebbie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OsakaWebbie/subscriptions","organizations_url":"https://api.github.com/users/OsakaWebbie/orgs","repos_url":"https://api.github.com/users/OsakaWebbie/repos","events_url":"https://api.github.com/users/OsakaWebbie/events{/privacy}","received_events_url":"https://api.github.com/users/OsakaWebbie/received_events","type":"User","site_admin":false},"created_at":"2017-03-25T02:11:54Z","updated_at":"2017-03-25T02:11:54Z","body":"Okay, that makes sense. Meanwhile, in my case I messed around with a bunch of stuff and did something (not sure what) that caused it to continue without that complaint, so I can't repeat the bug behavior anymore (which would have been necessary to report it to the plugin developer). Also, in light of your reply to my other post (https://github.com/puphpet/puphpet/issues/2626#issuecomment-289124013), I probably won't be using vagrant-linode anyway. But if someone else has the problem and finds this thread, feel free to report to: https://github.com/displague/vagrant-linode/issues"}}
{"actor":{"display_login":"OsakaWebbie"}}