TripleO Operator Ansible project repository. Contains playbooks that can be used to automate TripleO OpenStack deployments.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zuul d72f3c97ee Merge "Add role for tripleo_overcloud_network_provision" 4 months ago
..
test_molecule_prep Pin ansible <2.10 12 months ago
tripleo_config_generate_ansible trivial: fix spelling mistakes 1 year ago
tripleo_container_image_build Add retries option for containers build role 11 months ago
tripleo_container_image_delete Add ability to write scripts 1 year ago
tripleo_container_image_list Ensure we export result only if we have an stdout 1 year ago
tripleo_container_image_prepare Generate reproducer script for container image prepare 1 year ago
tripleo_container_image_prepare_default Ensure we export result only if we have an stdout 1 year ago
tripleo_container_image_push trivial: fix spelling mistakes 1 year ago
tripleo_container_image_show Ensure we export result only if we have an stdout 1 year ago
tripleo_deploy Drop *update_plan_only ansible var 8 months ago
tripleo_overcloud_admin_authorize trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_backup Create tripleo_overcloud_backup role 7 months ago
tripleo_overcloud_cell_export trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_config_download trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_container_image_build trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_container_image_prepare trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_container_image_tag_discover trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_container_image_upload trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_credentials trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_delete Add --skip-ipa-cleanup to overcloud delete 1 year ago
tripleo_overcloud_deploy Drop *update_plan_only ansible var 8 months ago
tripleo_overcloud_export trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_external_update_run Add yes overrides to the minor update roles 8 months ago
tripleo_overcloud_external_upgrade_run trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_failures trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_ffwd_upgrade_converge Drop *update_plan_only ansible var 8 months ago
tripleo_overcloud_ffwd_upgrade_prepare Drop *update_plan_only ansible var 8 months ago
tripleo_overcloud_ffwd_upgrade_run trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_generate_fencing trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_image_build trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_image_upload trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_netenv_validate trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_network_provision Add role for tripleo_overcloud_network_provision 4 months ago
tripleo_overcloud_node_bios_configure Ensure we export result only if we have an stdout 1 year ago
tripleo_overcloud_node_bios_reset Ensure we export result only if we have an stdout 1 year ago
tripleo_overcloud_node_clean Ensure we export result only if we have an stdout 1 year ago
tripleo_overcloud_node_configure Ensure we export result only if we have an stdout 1 year ago
tripleo_overcloud_node_delete Add comment specifying tripleo_overcloud_node_delete_nodes as a list 1 year ago
tripleo_overcloud_node_discover Update introspection and discovery with latest options 1 year ago
tripleo_overcloud_node_extract_provisioned Pin ansible <2.10 12 months ago
tripleo_overcloud_node_import trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_node_introspect trivial: document undocumented debug parameter 1 year ago
tripleo_overcloud_node_provide trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_node_provision '--network-ports' support in overcloud node (un)provison 7 months ago
tripleo_overcloud_node_unprovision '--network-ports' support in overcloud node (un)provison 7 months ago
tripleo_overcloud_profiles_list trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_profiles_match trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_raid_create trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_roles_generate trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_roles_list trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_roles_show trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_status trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_support_report_collect trivial: fix spelling mistakes 1 year ago
tripleo_overcloud_update_converge Add yes overrides to the minor update roles 8 months ago
tripleo_overcloud_update_prepare Add yes overrides to the minor update roles 8 months ago
tripleo_overcloud_update_run Add yes overrides to the minor update roles 8 months ago
tripleo_overcloud_upgrade_converge Drop *update_plan_only ansible var 8 months ago
tripleo_overcloud_upgrade_prepare Drop *update_plan_only ansible var 8 months ago
tripleo_overcloud_upgrade_run trivial: fix spelling mistakes 1 year ago
tripleo_repos tripleo_repo: add missing >- to remove trailing \n 4 months ago
tripleo_undercloud_backup Merge "Update tripleo_undercloud_backup role" 7 months ago
tripleo_undercloud_install trivial: fix spelling mistakes 1 year ago
tripleo_undercloud_minion_install trivial: fix spelling mistakes 1 year ago
tripleo_undercloud_minion_upgrade trivial: fix spelling mistakes 1 year ago
tripleo_undercloud_upgrade trivial: fix spelling mistakes 1 year ago
tripleo_validator_group_info add role to gather info of tripleo validation group 7 months ago
tripleo_validator_list add role to list available tripleo validations 8 months ago
tripleo_validator_run trivial: fix spelling mistakes 1 year ago
tripleo_validator_show add role to show tripleo validation 7 months ago
tripleo_validator_show_parameter add role to show tripleo validation parameter 7 months ago
.gitkeep Add initial structure 2 years ago
README.md Enabled markdownlint 2 years ago

README.md

tripleo-operator-ansible roles

These roles wrap tripleo cli functions for use in automation.

Requirements

None.

Global Variables

Accross the roles, there are a few variables that can be defined and would be consumed by default.

  • tripleo_os_cloud: (String) OS_CLOUD name to use when a command requires authentication. By default this will be used to populate any role specific os_cloud variable that may be defined. If this is defined, it will take precedence over tripleo_rc_file.
  • tripleo_rc_file: (String) File path on the remote system that contains the authentication environment variables that will be used to perform actions that require authentication.

Dependencies

None.

Example Playbooks

Example undercloud installation

---
- hosts: undercloud
  gather_facts: true
  collections:
    - tripleo.operator
  tasks:
    - name: Create dummy interface
      command: ip link add prov type dummy
      become: true
      when: not 'prov' in ansible_facts.interfaces

    - name: Set hostname
      hostname:
        name: 'undercloud.localdomain'
      become: true

    - name: Configure tripleo repositories
      import_role:
        name: tripleo_repos

    - name: Install python2 tripleoclient
      package:
        name: python2-tripleoclient
        state: present
      become: true
      when: ansible_distribution_major_version|int <= 7

    - name: Install python3 tripleoclient
      package:
        name: python3-tripleoclient
        state: present
      become: true
      when: ansible_distribution_major_version|int >= 8

    # This uses https://opendev.org/openstack/ansible-config_template
    - name: Generate undercloud.conf
      become: True
      config_template:
        src: /usr/share/python-tripleoclient/undercloud.conf.sample
        dest: "{{ ansible_env.HOME }}/undercloud.conf"
        remote_src: true
        render_template: false
        config_overrides:
          'DEFAULT':
              undercloud_debug: true
              enable_telemetry: false
              local_mtu: 1400
              local_interface: prov
              undercloud_enable_selinux: false
          'ctlplane-subnet':
              masquerade: true
        config_type: ini

    - name: Install undercloud
      import_role:
        name: tripleo_undercloud_install
      vars:
        tripleo_undercloud_install_debug: true

License

Apache-2.0