diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-01-04 07:03:07 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-01-04 07:03:07 +0000 |
| commit | a0ab35b3f2c9be0e7e0fa8abf38b044b952e2847 (patch) | |
| tree | 7e413563910bcce6cdfdf11eb462ef27ba3d6bbd /dev | |
| parent | 6bd5b80959c525e2a320dd3178546719829b282c (diff) | |
| parent | f7c196281cae4bd94e06f5d282a01c8ca3110984 (diff) | |
| download | kolla-a0ab35b3f2c9be0e7e0fa8abf38b044b952e2847.tar.gz kolla-a0ab35b3f2c9be0e7e0fa8abf38b044b952e2847.zip | |
Merge "Remove docker version pinning for vagrant envs"
Diffstat (limited to 'dev')
| -rw-r--r-- | dev/vagrant/bootstrap.sh | 13 | ||||
| -rw-r--r-- | dev/vagrant/ubuntu-bootstrap.sh | 2 |
2 files changed, 6 insertions, 9 deletions
diff --git a/dev/vagrant/bootstrap.sh b/dev/vagrant/bootstrap.sh index bc3d6c2f4..90866afe6 100644 --- a/dev/vagrant/bootstrap.sh +++ b/dev/vagrant/bootstrap.sh @@ -29,8 +29,10 @@ function prep_work { # resolve to the public IP instead of localhost. sed -i -r "s/^(127\.0\.0\.1\s+)(.*) `hostname` (.+)/\1 \3/" /etc/hosts - yum install -y http://mirror.nl.leaseweb.net/epel/7/x86_64/e/epel-release-7-5.noarch.rpm - yum install -y MySQL-python vim-enhanced python-pip python-devel gcc openssl-devel libffi-devel libxml2-devel libxslt-devel && yum clean all + yum install -y epel-release + rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 + yum install -y MySQL-python vim-enhanced python-pip python-devel gcc openssl-devel libffi-devel libxml2-devel libxslt-devel + yum clean all pip install --upgrade docker-py } @@ -49,11 +51,6 @@ enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg EOF - # Pin Docker version to 1.8.2 before including this change - # https://github.com/ansible/ansible-modules-core/pull/2258 - # in some tagged version of Ansible. - yum install -y yum-plugin-versionlock - yum versionlock add docker-engine-1.8.2-1.el7.centos.* # Also upgrade device-mapper here because of: # https://github.com/docker/docker/issues/12108 yum install -y docker-engine device-mapper @@ -85,7 +82,7 @@ function configure_kolla { # Configure the operator node and install some additional packages. function configure_operator { yum install -y git mariadb && yum clean all - pip install --upgrade ansible python-openstackclient tox + pip install --upgrade "ansible<2" python-openstackclient tox pip install ~vagrant/kolla diff --git a/dev/vagrant/ubuntu-bootstrap.sh b/dev/vagrant/ubuntu-bootstrap.sh index 2f2565030..2c0b2cde7 100644 --- a/dev/vagrant/ubuntu-bootstrap.sh +++ b/dev/vagrant/ubuntu-bootstrap.sh @@ -27,7 +27,7 @@ install_docker() { apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D echo "deb https://apt.dockerproject.org/repo ubuntu-vivid main" > /etc/apt/sources.list.d/docker.list apt-get update - apt-get install -y docker-engine=1.8.2* + apt-get install -y docker-engine sed -i -r "s,(ExecStart)=(.+),\1=/usr/bin/docker daemon -H fd:// -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock --insecure-registry ${REGISTRY}:${REGISTRY_PORT}," /lib/systemd/system/docker.service systemctl daemon-reload systemctl enable docker |
