Bugfixes in ccp playbooks
This commit is contained in:
parent
8b3112d287
commit
e6358d825e
2 changed files with 6 additions and 7 deletions
2
Vagrantfile
vendored
2
Vagrantfile
vendored
|
@ -14,6 +14,7 @@ $user = ENV["USER"]
|
||||||
$public_subnet = prefix.to_s + ".0"
|
$public_subnet = prefix.to_s + ".0"
|
||||||
$private_subnet = prefix.to_s + ".1"
|
$private_subnet = prefix.to_s + ".1"
|
||||||
$mgmt_cidr = prefix.to_s + ".2.0/24"
|
$mgmt_cidr = prefix.to_s + ".2.0/24"
|
||||||
|
$neutron_subnet = "172.30.250"
|
||||||
|
|
||||||
$instance_name_prefix = "#{$user}-k8s"
|
$instance_name_prefix = "#{$user}-k8s"
|
||||||
|
|
||||||
|
@ -91,6 +92,7 @@ Vagrant.configure("2") do |config|
|
||||||
:libvirt__forward_mode => "none"
|
:libvirt__forward_mode => "none"
|
||||||
# "neutron" isolated network
|
# "neutron" isolated network
|
||||||
test_vm.vm.network :private_network,
|
test_vm.vm.network :private_network,
|
||||||
|
:ip => "#{$neutron_subnet}.#{i+10}",
|
||||||
:model_type => "e1000",
|
:model_type => "e1000",
|
||||||
:libvirt__network_name => "#{$instance_name_prefix}-neutron",
|
:libvirt__network_name => "#{$instance_name_prefix}-neutron",
|
||||||
:libvirt__dhcp_enabled => false,
|
:libvirt__dhcp_enabled => false,
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
- hosts: kube-master
|
- hosts: kube-master
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: Download fuel-ccp
|
- name: Download fuel-ccp
|
||||||
shell: git clone https://git.openstack.org/openstack/fuel-ccp
|
git:
|
||||||
args:
|
repo: https://git.openstack.org/openstack/fuel-ccp
|
||||||
chdir: /usr/local/src
|
dest: /usr/local/src/fuel-ccp
|
||||||
creates: /usr/local/src/fuel-ccp/setup.py
|
version: master
|
||||||
- name: Upload ccp configs to master nodes
|
- name: Upload ccp configs to master nodes
|
||||||
synchronize:
|
synchronize:
|
||||||
src: ../ccp/
|
src: ../ccp/
|
||||||
|
@ -36,10 +36,7 @@
|
||||||
when: get_svc.stdout.find('registry') == -1
|
when: get_svc.stdout.find('registry') == -1
|
||||||
- name: Fetch CCP images
|
- name: Fetch CCP images
|
||||||
shell: mcp-microservices --config-file=/root/ccp/ccp.conf fetch
|
shell: mcp-microservices --config-file=/root/ccp/ccp.conf fetch
|
||||||
chdir: /usr/local/src
|
|
||||||
run_once: true
|
run_once: true
|
||||||
- name: Build CCP images
|
- name: Build CCP images
|
||||||
shell: mcp-microservices --config-file=/root/ccp/ccp.conf build
|
shell: mcp-microservices --config-file=/root/ccp/ccp.conf build
|
||||||
args:
|
|
||||||
chdir: /root/ccp
|
|
||||||
run_once: true
|
run_once: true
|
||||||
|
|
Loading…
Reference in a new issue