1
我試圖這次在Scaleway VC1服務器(Ubuntu 14.04LTS/2 x86 64位Core/2Go RAM)上部署我的rails應用程序。使用AZK將rails應用程序部署到私有服務器
我使用的是AZK,特別是azukiapp/deploy docker鏡像(版本號爲0.0.7
)。
部署期間我不幸遇到一個問題,因爲這個日誌提示:
| > azk deploy -vvv
PLAY [all] *********************************************************************
TASK [setup] *******************************************************************
Enter passphrase for key '/root/.ssh/xxx':
ok: [default]
TASK [configure : Create user and add him to docker group] *********************
changed: [default]
TASK [configure : Accept azk terms of use] *************************************
changed: [default]
TASK [configure : Ensure /etc/resolver path exists] ****************************
ok: [default]
TASK [configure : Ensure required directories exists] **************************
changed: [default] => (item=/home/git/d1fdb3d.git)
changed: [default] => (item=/home/git/d1fdb3d)
changed: [default] => (item=/home/git/.ssh)
changed: [default] => (item=/home/git/bin)
TASK [configure : Ensure authorized_keys exists] *******************************
changed: [default]
TASK [configure : Create git repository] ***************************************
changed: [default]
TASK [configure : Ensure repository permissions] *******************************
changed: [default]
TASK [configure : Apply templates] *********************************************
changed: [default] => (item={u'dest': u'/home/git/bin/azk-start', u'src': u'azk-start.j2', u'mode': u'0755', u'owner': u'git'})
changed: [default] => (item={u'dest': u'/home/git/bin/git-checkout', u'src': u'git-checkout.j2', u'mode': u'0755', u'owner': u'git'})
changed: [default] => (item={u'dest': u'/home/git/bin/rollback', u'src': u'rollback.j2', u'mode': u'0755', u'owner': u'git'})
changed: [default] => (item={u'dest': u'/home/git/bin/versions', u'src': u'versions.j2', u'mode': u'0755', u'owner': u'git'})
changed: [default] => (item={u'dest': u'/home/git/d1fdb3d.git/hooks/post-receive', u'src': u'post-receive.j2', u'mode': u'0755', u'owner': u'git'})
changed: [default] => (item={u'dest': u'/etc/dbus-1/system.d/Upstart.conf', u'src': u'Upstart.conf.j2', u'mode': u'0644', u'owner': u'root'})
changed: [default] => (item={u'dest': u'/etc/init/azk-agent.conf', u'src': u'azk-agent.conf.j2', u'mode': u'0644', u'owner': u'root'})
changed: [default] => (item={u'dest': u'/etc/init/azk-all.conf', u'src': u'azk-all.conf.j2', u'mode': u'0644', u'owner': u'root'})
changed: [default] => (item={u'dest': u'/etc/init/azk.conf', u'src': u'azk.conf.j2', u'mode': u'0644', u'owner': u'root'})
failed: [default] (item={u'dest': u'/etc/resolver/dev.azk.io', u'src': u'resolver.j2', u'mode': u'0644', u'owner': u'root'}) => {"failed": true, "item": {"dest": "/etc/resolver/dev.azk.io", "mode": "0644", "owner": "root", "src": "resolver.j2"}, "msg": "AnsibleUndefinedVariable: 'ansible_docker0' is undefined"}
NO MORE HOSTS LEFT *************************************************************
to retry, use: --limit @playbooks/configure.retry
PLAY RECAP *********************************************************************
default : ok=8 changed=6 unreachable=0 failed=1
似乎與到Ansible。我應該在部署前在遠程服務器上安裝某些東西嗎?
這裏是我的Azkfile.js的部署部分,如果有幫助:
deploy: {
image: {docker: 'azukiapp/deploy:0.0.7'},
mounts: {
'/azk/deploy/src': path('.'),
'/azk/deploy/.ssh': path('#{env.HOME}/.ssh'), // Required to connect with the remote server
'/azk/deploy/.config': persistent('deploy-config')
},
scalable: {default: 0, limit: 0},
envs: {
GIT_REF: 'azk',
REMOTE_HOST: 'xxx.xxx.xxx.xxx',
SSH_PRIVATE_KEY_FILE: 'xx'
}
}
感謝你的時間/幫助。
不是一個真正的編程相關的問題,嘗試在serverfault ... – mahatmanich