Changeset - 63b4a5ca9bff
[Not reviewed]
0 2 0
Branko Majic (branko) - 3 years ago 2021-01-07 06:16:21
branko@majic.rs
MAR-160: Introduce additional machines for running connectivity tests.
2 files changed with 48 insertions and 0 deletions:
0 comments (0 inline, 0 general)
roles/common/molecule/default/molecule.yml
Show inline comments
 
@@ -23,6 +23,32 @@ platforms:
 
        network_name: private_network
 
        type: static
 

	
 
  - name: client1-stretch64
 
    groups:
 
      - client
 
      - client-allowed
 
    box: debian/contrib-stretch64
 
    memory: 256
 
    cpus: 1
 
    interfaces:
 
      - auto_config: true
 
        ip: 10.31.127.3
 
        network_name: private_network
 
        type: static
 

	
 
  - name: client2-stretch64
 
    groups:
 
      - client
 
      - client-disallowed
 
    box: debian/contrib-stretch64
 
    memory: 256
 
    cpus: 1
 
    interfaces:
 
      - auto_config: true
 
        ip: 10.31.127.4
 
        network_name: private_network
 
        type: static
 

	
 
  - name: parameters-mandatory-stretch64
 
    groups:
 
      - parameters-mandatory
roles/common/molecule/default/prepare.yml
Show inline comments
 
@@ -51,6 +51,28 @@
 
        name: apt-cacher-ng
 
        state: present
 

	
 
- hosts: client
 
  become: true
 
  tasks:
 

	
 
    - name: Install tool for testing TCP connectivity
 
      apt:
 
        name: hping3
 
        state: present
 

	
 
    - name: Set-up /etc/hosts with entries for all servers
 
      lineinfile:
 
        path: /etc/hosts
 
        regexp: "^{{ item.key }}"
 
        line: "{{ item.key }} {{ item.value }}"
 
        owner: root
 
        group: root
 
        mode: 0644
 
        state: present
 
      with_dict:
 
        10.31.127.5: parameters-mandatory-stretch64
 
        10.31.127.6: parameters-optional-stretch64
 

	
 
- hosts: parameters-mandatory,parameters-optional
 
  become: true
 
  tasks:
0 comments (0 inline, 0 general)