Disable host key checking for 10.0.0.* subnet

This commit is contained in:
Dmitry Shulyak 2015-12-10 12:52:45 +02:00
parent 1e199b6acd
commit 5a1676f08c
5 changed files with 13 additions and 3 deletions

View File

@ -3,10 +3,12 @@
- name: Main build script
hosts: all
sudo: yes
vars:
ssh_ip_mask: "10.0.0.*"
tasks:
- include: tasks/base.yaml
- include: tasks/puppet.yaml
- include: tasks/docker.yaml
#- include: celery.yaml tags=['master'] celery_dir=/var/run/celery
- include: tasks/cloud_archive.yaml
#- include: tasks/mos.yaml
- include: tasks/ssh_conf.yaml

View File

@ -0,0 +1,2 @@
Host {{ssh_ip_mask}}
StrictHostKeyChecking no

View File

@ -2,12 +2,15 @@
- hosts: all
sudo: yes
vars:
ssh_ip_mask: "10.0.0.*"
tasks:
# upgrade pbr first, old version throws strange errors
- shell: pip install pbr -U
# Setup development env for solar
- shell: pip install -e . chdir=/vagrant
- shell: pip install git+git://github.com/Mirantis/solar-agent.git
- include: tasks/ssh_conf.yaml
- hosts: all
tasks:

View File

@ -0,0 +1,3 @@
---
- template: src=files/ssh_conf dest=/root/.ssh/config

View File

@ -8,7 +8,7 @@ solar-celery:
- /vagrant/templates:/vagrant/templates
- /vagrant/resources:/vagrant/resources
- /vagrant/library:/vagrant/library
- ~/.ssh/known_hosts:/root/.ssh/known_hosts
- ~/.ssh:/root/.ssh
- ./bootstrap/playbooks/celery.yaml:/celery.yaml
environment:
- REDIS_HOST=redis