fix scaleway user data tests (#46570)

* fix scaleway user data tests

* default values

* pep8
pull/46841/head
abarbare 6 years ago committed by Jordan Borean
parent 1cce11b39c
commit cafed004ad

@ -8,4 +8,8 @@ cloud_init_script: '''
# this message is written by cloud-final when the system is finished # this message is written by cloud-final when the system is finished
# its first boot # its first boot
final_message: "The system is finally up, after $UPTIME seconds" final_message: "The system is finally up, after $UPTIME seconds"
''' '''
scaleway_image_id: 89ee4018-f8c3-4dc4-a6b5-bca14f985ebe
scaleway_organization: '{{ scw_org }}'
scaleway_region: ams1
scaleway_commerial_type: START1-S

@ -4,10 +4,10 @@
scaleway_compute: scaleway_compute:
name: foobar name: foobar
state: present state: present
image: 857de28c-39ce-4b15-9389-b68d8bb1bb51 image: '{{ scaleway_image_id }}'
organization: 951df375-e094-4d26-97c1-ba548eeb9c42 organization: '{{ scaleway_organization }}'
region: par1 region: '{{ scaleway_region }}'
commercial_type: START1-S commercial_type: '{{ scaleway_commerial_type }}'
wait: true wait: true
register: server_creation_task register: server_creation_task
@ -22,7 +22,7 @@
- name: Patch user_data cloud-init configuration (Check) - name: Patch user_data cloud-init configuration (Check)
check_mode: yes check_mode: yes
scaleway_user_data: scaleway_user_data:
region: par1 region: '{{ scaleway_region }}'
server_id: "{{ server_id }}" server_id: "{{ server_id }}"
user_data: user_data:
cloud-init: "{{ cloud_init_script }}" cloud-init: "{{ cloud_init_script }}"
@ -37,7 +37,7 @@
- name: Patch user_data cloud-init configuration - name: Patch user_data cloud-init configuration
scaleway_user_data: scaleway_user_data:
region: par1 region: '{{ scaleway_region }}'
server_id: "{{ server_id }}" server_id: "{{ server_id }}"
user_data: user_data:
cloud-init: "{{ cloud_init_script }}" cloud-init: "{{ cloud_init_script }}"
@ -52,7 +52,7 @@
- name: Patch user_data cloud-init configuration (Confirmation) - name: Patch user_data cloud-init configuration (Confirmation)
scaleway_user_data: scaleway_user_data:
region: par1 region: '{{ scaleway_region }}'
server_id: "{{ server_id }}" server_id: "{{ server_id }}"
user_data: user_data:
cloud-init: "{{ cloud_init_script }}" cloud-init: "{{ cloud_init_script }}"
@ -69,10 +69,10 @@
scaleway_compute: scaleway_compute:
name: foobar name: foobar
state: absent state: absent
region: par1 region: '{{ scaleway_region }}'
image: 857de28c-39ce-4b15-9389-b68d8bb1bb51 image: '{{ scaleway_image_id }}'
organization: 951df375-e094-4d26-97c1-ba548eeb9c42 organization: '{{ scaleway_organization }}'
commercial_type: START1-S commercial_type: '{{ scaleway_commerial_type }}'
wait: true wait: true
register: server_destroy_task register: server_destroy_task

Loading…
Cancel
Save