tripleo-operator-ansible/roles
Zuul 14e275358a Merge "tripleo_overcloud_node_provision - add --network-config" 2021-06-09 10:08:49 +00:00
..
test_molecule_prep Pin ansible <2.10 2020-09-28 08:43:44 -06:00
tripleo_config_generate_ansible trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_container_image_build Add retries option for containers build role 2020-11-05 13:04:38 +02:00
tripleo_container_image_delete Add ability to write scripts 2020-04-15 16:25:27 -06:00
tripleo_container_image_list Ensure we export result only if we have an stdout 2020-05-15 15:43:20 +02:00
tripleo_container_image_prepare Generate reproducer script for container image prepare 2020-09-16 09:36:22 +02:00
tripleo_container_image_prepare_default Ensure we export result only if we have an stdout 2020-05-15 15:43:20 +02:00
tripleo_container_image_push trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_container_image_show Ensure we export result only if we have an stdout 2020-05-15 15:43:20 +02:00
tripleo_deploy Drop *update_plan_only ansible var 2021-01-20 15:14:29 +05:30
tripleo_overcloud_admin_authorize trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_backup Create tripleo_overcloud_backup role 2021-02-09 10:27:01 +00:00
tripleo_overcloud_cell_export trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_config_download trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_container_image_build trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_container_image_prepare trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_container_image_tag_discover trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_container_image_upload trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_credentials trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_delete Add --skip-ipa-cleanup to overcloud delete 2020-08-04 08:22:31 -06:00
tripleo_overcloud_deploy Drop *update_plan_only ansible var 2021-01-20 15:14:29 +05:30
tripleo_overcloud_export trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_external_update_run Add yes overrides to the minor update roles 2021-01-30 17:00:59 -06:00
tripleo_overcloud_external_upgrade_run trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_failures trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_ffwd_upgrade_converge Drop *update_plan_only ansible var 2021-01-20 15:14:29 +05:30
tripleo_overcloud_ffwd_upgrade_prepare Drop *update_plan_only ansible var 2021-01-20 15:14:29 +05:30
tripleo_overcloud_ffwd_upgrade_run trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_generate_fencing trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_image_build trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_image_upload trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_netenv_validate trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_network_provision Add role for tripleo_overcloud_network_provision 2021-06-04 14:07:32 +05:30
tripleo_overcloud_network_vip_provision Add missing "vip" argument to the CLI 2021-06-08 14:21:03 +02:00
tripleo_overcloud_node_bios_configure Ensure we export result only if we have an stdout 2020-05-15 15:43:20 +02:00
tripleo_overcloud_node_bios_reset Ensure we export result only if we have an stdout 2020-05-15 15:43:20 +02:00
tripleo_overcloud_node_clean Ensure we export result only if we have an stdout 2020-05-15 15:43:20 +02:00
tripleo_overcloud_node_configure Ensure we export result only if we have an stdout 2020-05-15 15:43:20 +02:00
tripleo_overcloud_node_delete Add comment specifying tripleo_overcloud_node_delete_nodes as a list 2020-09-09 09:54:14 -07:00
tripleo_overcloud_node_discover Update introspection and discovery with latest options 2020-07-06 12:00:12 +03:00
tripleo_overcloud_node_extract_provisioned Pin ansible <2.10 2020-09-28 08:43:44 -06:00
tripleo_overcloud_node_import trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_node_introspect trivial: document undocumented debug parameter 2020-07-17 14:36:27 -05:00
tripleo_overcloud_node_provide trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_node_provision tripleo_overcloud_node_provision - add --network-config 2021-06-07 15:07:12 +02:00
tripleo_overcloud_node_unprovision '--network-ports' support in overcloud node (un)provison 2021-02-24 13:01:53 +01:00
tripleo_overcloud_profiles_list trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_profiles_match trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_raid_create trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_roles_generate trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_roles_list trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_roles_show trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_status trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_support_report_collect trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_overcloud_update_converge Add yes overrides to the minor update roles 2021-01-30 17:00:59 -06:00
tripleo_overcloud_update_prepare Add yes overrides to the minor update roles 2021-01-30 17:00:59 -06:00
tripleo_overcloud_update_run Add yes overrides to the minor update roles 2021-01-30 17:00:59 -06:00
tripleo_overcloud_upgrade_converge Drop *update_plan_only ansible var 2021-01-20 15:14:29 +05:30
tripleo_overcloud_upgrade_prepare Drop *update_plan_only ansible var 2021-01-20 15:14:29 +05:30
tripleo_overcloud_upgrade_run trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_repos tripleo_repo: add missing >- to remove trailing \n 2021-05-20 11:14:15 -04:00
tripleo_undercloud_backup Merge "Update tripleo_undercloud_backup role" 2021-03-01 23:21:30 +00:00
tripleo_undercloud_install trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_undercloud_minion_install trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_undercloud_minion_upgrade trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_undercloud_upgrade trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_validator_group_info add role to gather info of tripleo validation group 2021-02-25 10:38:11 -05:00
tripleo_validator_list add role to list available tripleo validations 2021-01-14 06:14:45 -05:00
tripleo_validator_run trivial: fix spelling mistakes 2020-07-14 08:45:15 -05:00
tripleo_validator_show add role to show tripleo validation 2021-02-25 10:28:14 -05:00
tripleo_validator_show_parameter add role to show tripleo validation parameter 2021-02-23 10:16:38 -05:00
.gitkeep Add initial structure 2019-12-16 10:36:11 -07:00
README.md Revert "New parameters in order to set how we want to redirect logs" 2020-07-13 15:34:30 +00:00

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