Tungsten fabric deploy

 

1.

https://github.com/Juniper/contrail-ansible-deployer

Deploy 节点:

yum -y install epel-release 
yum install -y python-pip
pip install requests
yum -y install git
pip install ansible==2.5.2.0

 其他节点:yum -y install epel-release

git clone http://github.com/Juniper/contrail-ansible-deployer
cd contrail-ansible-deployer
ssh-copy-id 192.168.1.100
yum install -y ansible-2.4.2.0 #注意版本号,来用deploy当前r5.1
#For Contrail R5.0 use 
git clone -b R5.0 http://github.com/Juniper/contrail-ansible-deployer
#For master branch use
git clone http://github.com/Juniper/contrail-ansible-deployer
cd contrail-ansible-deployer
ansible-playbook -i inventory/ -e orchestrator=kubernetes -e '{"instances":{"bms1":{"ip":"192.168.1.100","provider":"bms"}}}' playbooks/configure_instances.yml
ansible-playbook -i inventory/ -e orchestrator=kubernetes -e '{"instances":{"bms1":{"ip":"192.168.1.100","provider":"bms"}}}' playbooks/install_contrail.yml
ansible-playbook -i inventory/ -e orchestrator=kubernetes -e '{"instances":{"bms1":{"ip":"192.168.1.100","provider":"bms"}}}' playbooks/install_k8s.yml

 

单节点instance.yaml配置:
provider_config:
  bms:
    ssh_pwd: contrail123
    ssh_user: root
    ntpserver: pool.ntp.org
    domainsuffix: local
instances:
  bms1:
    provider: bms
    ip: 172.xx.xx.240
    roles:
      config_database:
      config:
      control:
      analytics_database:
      analytics:
      webui:
      vrouter:
      openstack:
      openstack_compute:
global_configuration:
  CONTAINER_REGISTRY: opencontrailnightly
  REGISTRY_PRIVATE_INSECURE: True
contrail_configuration:
  CLOUD_ORCHESTRATOR: openstack
  OPENSTACK_VERSION: queens
  CONTRAIL_VERSION: r5.1
  VROUTER_GATEWAY: 192.168.1.1
  AUTH_MODE: keystone
  KEYSTONE_AUTH_URL_VERSION: /v3
kolla_config:
  kolla_globals:
    enable_haproxy: no
    enable_ironic: no
    enable_swift: no
  kolla_passwords:
    keystone_admin_password: contrail123

 

 

 

 

 

 

 

你可能感兴趣的:(Tungsten fabric deploy)