diff options
Diffstat (limited to 'deployment/noheat/infra-openstack')
4 files changed, 16 insertions, 2 deletions
diff --git a/deployment/noheat/infra-openstack/ansible/create.yml b/deployment/noheat/infra-openstack/ansible/create.yml index 847efa25f..825bee3a4 100644 --- a/deployment/noheat/infra-openstack/ansible/create.yml +++ b/deployment/noheat/infra-openstack/ansible/create.yml @@ -68,6 +68,7 @@ - openshift - pyyaml - kubernetes + executable: pip3 become: yes - name: Add Ansible collection dependencies command: "ansible-galaxy collection install ansible.posix" diff --git a/deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sample b/deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sample index f0e1b0037..1b03b06d5 100644 --- a/deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sample +++ b/deployment/noheat/infra-openstack/ansible/group_vars/all.yml.sample @@ -2,6 +2,9 @@ network: name: &network_name "onap_ci_lab" cidr: "192.168.1.0/24" + dns_servers: + # - x.x.x.x + # - y.y.y.y keypair: name: &keypair_name "onap_ci_lab" @@ -28,6 +31,8 @@ operation: keypair: *keypair_name network: *network_name securitygroup: *securitygroup_name + boot_from_volume: true + terminate_volume: true volume_size: 5 cluster: @@ -39,4 +44,6 @@ cluster: keypair: *keypair_name network: *network_name securitygroup: *securitygroup_name + boot_from_volume: true + terminate_volume: true volume_size: 5 diff --git a/deployment/noheat/infra-openstack/ansible/roles/create_hosts/tasks/create_host.yml b/deployment/noheat/infra-openstack/ansible/roles/create_hosts/tasks/create_host.yml index c217abaa9..8fa4d0709 100644 --- a/deployment/noheat/infra-openstack/ansible/roles/create_hosts/tasks/create_host.yml +++ b/deployment/noheat/infra-openstack/ansible/roles/create_hosts/tasks/create_host.yml @@ -10,8 +10,8 @@ security_groups: - "{{ host.securitygroup }}" auto_ip: "{{ host.auto_ip | default(true) }}" - boot_from_volume: true - terminate_volume: true + boot_from_volume: "{{ host.boot_from_volume | default(true) }}" + terminate_volume: "{{ host.terminate_volume | default(true) }}" volume_size: "{{ host.volume_size | default(10) }}" userdata: | #cloud-config diff --git a/deployment/noheat/infra-openstack/ansible/roles/create_network/tasks/create_network.yml b/deployment/noheat/infra-openstack/ansible/roles/create_network/tasks/create_network.yml index 5d86858c1..81d8caae1 100644 --- a/deployment/noheat/infra-openstack/ansible/roles/create_network/tasks/create_network.yml +++ b/deployment/noheat/infra-openstack/ansible/roles/create_network/tasks/create_network.yml @@ -4,11 +4,17 @@ name: "{{ net.name }}" state: present +- name: Set nameservers list fact + set_fact: + dns_ips: "{{ network.dns_servers | list }}" + when: network.dns_servers[0] is defined + - name: "Create {{ net.name }} subnet" os_subnet: name: "{{ net.name }}_subnet" network_name: "{{ net.name }}" cidr: "{{ net.cidr }}" + dns_nameservers: "{{ dns_ips if dns_ips is defined else omit }}" state: present - name: "Create {{ net.name }} router" |