tripleo-quickstart-extras/roles/undercloud-deploy
Eugene Bagdasaryan 298ef45fe3 Remove unused undercloud_post_install_script and its log
Remove unused undercloud_post_install_script and log from parameters
and documentation since it's not used anymore.

Change-Id: I88de9555b17d83b1359e2d7ca88a99818f3e07a1
2017-01-30 18:19:30 -05:00
..
defaults Remove unused undercloud_post_install_script and its log 2017-01-30 18:19:30 -05:00
meta Ensure that each role in extras has a dependency on extras-common 2017-01-18 09:32:16 -05:00
tasks virtualbmc setup is not working in devmode.sh 2017-01-24 19:57:00 +00:00
templates Use new parameters for the undercloud public/admin hostnames 2017-01-24 21:31:42 +02:00
README.md Remove unused undercloud_post_install_script and its log 2017-01-30 18:19:30 -05:00

undercloud-deploy

An Ansible role to execute the deployment of the tripleo undercloud

Requirements

This requires a running host to deploy the undercloud.

Role Variables

  • undercloud_config_file: <'undercloud.conf.j2'> -- the name of the jinja template used as the base for the undercloud.conf
  • undercloud_install_script: <'undercloud-install.j2'> -- the name of the jinja template used as the base for the undercloud-install bash script
  • undercloud_install_log: <'{{ working_dir }}/undercloud_install.log'> -- the full path to the undercloud install log file.
  • network_environment_file: <'network-environment.yaml.j2'> -- the name of the jinja template used as the base for the network-environment for tripleo.
  • undercloud_hieradata_override_file: <'quickstart-hieradata-overrides.yaml.j2'> -- the name of jinja template used to override the undercloud's install hieradata
  • step_introspect: <'false'> -- boolean value to enable/disable ironic introspection
  • bash_deploy_ramdisk: <'false'> -- the variable allows older versions of tripleo to upload images properly with the option --old-deploy-image
  • step_install_undercloud: <'true'> -- turn on/off the undercloud deployment
  • libvirt_uri: <'qemu:///session'> -- the URI used by libvirt, by default tripleo-quickstart uses user sessions to provide greater flexixiblity to our users. ** additional documentation ** is at http://docs.openstack.org/developer/tripleo-quickstart/accessing-libvirt.html
  • undercloud_conf_extra: "" -- extra options to be added to ~/undercloud.conf
  • undercloud_undercloud_public_host: Sets up the 'undercloud_public_host' parameter from undercloud.conf.
  • undercloud_undercloud_admin_host: Sets up the 'undercloud_admin_host' from undercloud.conf.

Role Network Variables

  • undercloud_network_cidr: <'192.168.24.0/24'> -- the network cidr for the undercloud, note this also currently the default cidr used in other CI environments for tripleo.

The following variables are nested under network_environment_args. The values are calculated at run time using ansible jinja filters.

Note: See additional documentation at http://docs.ansible.com/ansible/playbooks_filters_ipaddr.html and the ansible code base ansible/plugins/filter/ipaddr.py

network_environment_args:
  ExternalNetCidr: "{{ undercloud_external_network_cidr }}"
  ExternalAllocationPools: >
    [{'start': '{{ undercloud_external_network_cidr|nthhost(4) }}',
    'end': '{{ undercloud_external_network_cidr|nthhost(250) }}'}]
  NeutronExternalNetworkBridge: ""
  ControlPlaneSubnetCidr: "{{ undercloud_network_cidr|ipaddr('prefix') }}"
  ControlPlaneDefaultRoute: "{{ undercloud_network_cidr|nthhost(1) }}"
  EC2MetadataIp: "{{ undercloud_network_cidr|nthhost(1) }}"
  DnsServers: [ '{{ external_network_cidr|nthhost(1) }}' ]

Example Playbook

Sample playbook to call the role

# Deploy the undercloud
- name:  Install undercloud
  hosts: undercloud
  gather_facts: no
  roles:
    - undercloud-deploy