@fullyint Sorry for the late reply I didn’t get the chance yet to test this out.
EDIT: It worked now. I overlooked that my sshkey wasn’t loaded ssh-add -L … worked now
I merge your known-hosts branch into the actual master branch and tried it.
So i think it will work with bitbucket and github.
But I have problems to get my own bitbucket codebase to work (stash).
I added my the public key to the known hosts file.
known_hosts:
- name: codebase.example.com
key: codebase.example.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQ...
- name: github.com
key: github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAA...
- name: bitbucket.org
key: bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6Vq...
But is this really necessary since there is an accept_hostkeys option:
# Whether `git clone` and `composer install` should accept host keys into known_hosts
# If `no`, manually add host keys to `group_vars/all/known_hosts.yml`
accept_hostkeys: yes
So then I had the problem with this here:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
https://github.com/Varying-Vagrant-Vagrants/VVV/issues/360
https://laracasts.com/discuss/channels/general-discussion/warning-remote-host-identification-has-changed-wtf
So i removed all keys via
vagrant ssh
and cleared the while ~/.ssh/known_hosts file.
Good again I try … now I got again
failed: [default] => ....... The authenticity of host 'codebase.example.com (x.x.x.x)' can't be established.\r\n
RSA key fingerprint is 2c:fe:f1:a9:0a:7a:8c:bc:ca:dc:85:9d:65:24:08:ce.\r\nAre you sure you want to continue
connecting (yes/no)? {\"changed\": true, \"end\": \"2016-02-22 20:24:18.551322\", \"stdout\": \"\", \"cmd\":
[\"composer\", \"install\"], \"rc\": 1, \"start\": \"2016-02-22 20:19:17.015026\", \"stderr\": \"You are running
composer with xdebug enabled. This has a major impact on runtime performance. See
https://getcomposer.org/xdebug\\nLoading composer repositories with package information\\nInstalling
dependencies (including require-dev) from lock file\\n - Installing regenrek/commercial-plugins (dev-master
7f62f3d)\\n Cloning 7f62f3d4fc053eed3ac31aca7382fe15c5c176bd\\n\\n \\n [Symfony\\\\Component\\\\Process\\\\Exception\\\\ProcessTimedOutException] \\n The process \\\"git clone --no-checkout 'ssh://git@codebase.example.com/intp/commercial-plugins.git'
'web/app/plugins/commercial-plugins/' && cd 'web/app/plugins/commercial-plugins/' && git remote add
composer 'ssh://git@codebase.example.com/intp/commercial-plugins.git' && git fetch composer\\\" exceeded the
timeout of 300 seconds. \\n
\\n\\ninstall [--prefer-source]
[--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader]
[--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative]
[--ignore-platform-reqs] [--] [<packages>]...\", \"delta\": \"0:05:01.536296\", \"invocation\": {\"module_args\": {\"warn\": true, \"executable\": null, \"_uses_shell\": false, \"_raw_params\": \"composer install\", \"removes\":
null, \"creates\": null, \"chdir\": \"/srv/www/djf.dev/current/\"}}, \"warnings\": []}\r\n", "msg": "MODULE FAILURE",
"parsed": false}
I dont know… I’m struggling with this thing a long time now… Is there an safe way to disable the composer install via the trellis provision process?
Regards Kevin