|
| 1 | +--- |
| 2 | + ### Requirements |
| 3 | + # inputs from parent - {{login_token}}, |
| 4 | + # inputs from inventory - {{baseurl}}, {{master}}, {{vcenter}} |
| 5 | + # outputs {{slo_create}} |
| 6 | + - name: SLO Create |
| 7 | + uri: |
| 8 | + url: "{{baseurl}}servicecatalog/slos" |
| 9 | + method: POST |
| 10 | + body_format: json |
| 11 | + status_code: 201 |
| 12 | + headers: |
| 13 | + authorization: "{{login_token}}" |
| 14 | + content-type: "{{contenttype}}" |
| 15 | + body: |
| 16 | + data: |
| 17 | + type: slov3 |
| 18 | + attributes: |
| 19 | + name: "ams03_{{item.seg}}v_{{item.type}}_fr_{{item.time}}_{{item.ret}}_ansible_test" |
| 20 | + description: "ansible testing protection plans" |
| 21 | + policyNamePrefix: "dc01_{{item.seg}}v_{{item.type}}_fr_{{item.time}}_{{item.ret}}_ansible_test" |
| 22 | + workloadType: VMWARE |
| 23 | + schedules: |
| 24 | + - scheduleType: FULL |
| 25 | + frequencySeconds: 604800 |
| 26 | + retention: |
| 27 | + value: 30 |
| 28 | + unit: DAYS |
| 29 | + backupStorageUnit: dc01nbumed01_dpm_su |
| 30 | + backupWindows: |
| 31 | + - dayOfWeek: 6 |
| 32 | + durationSeconds: 28800 |
| 33 | + startSeconds: 64800 |
| 34 | + - scheduleType: DIFFERENTIAL_INCREMENTAL |
| 35 | + frequencySeconds: 86400 |
| 36 | + retention: |
| 37 | + value: 30 |
| 38 | + unit: DAYS |
| 39 | + backupStorageUnit: dc01nbumed01_dpm_su |
| 40 | + backupWindows: |
| 41 | + - dayOfWeek: 1 |
| 42 | + durationSeconds: 28800 |
| 43 | + startSeconds: 64800 |
| 44 | + - dayOfWeek: 2 |
| 45 | + durationSeconds: 28800 |
| 46 | + startSeconds: 64800 |
| 47 | + - dayOfWeek: 3 |
| 48 | + durationSeconds: 28800 |
| 49 | + startSeconds: 64800 |
| 50 | + - dayOfWeek: 4 |
| 51 | + durationSeconds: 28800 |
| 52 | + startSeconds: 64800 |
| 53 | + - dayOfWeek: 5 |
| 54 | + durationSeconds: 28800 |
| 55 | + startSeconds: 64800 |
| 56 | + - dayOfWeek: 7 |
| 57 | + durationSeconds: 28800 |
| 58 | + startSeconds: 64800 |
| 59 | + policyDefinition: |
| 60 | + policy: |
| 61 | + policyName: "dc1_{{item.seg}}v_{{item.type}}_fr_{{item.time}}_{{item.ret}}_ansible_test" |
| 62 | + policyType: VMware |
| 63 | + policyAttributes: |
| 64 | + active: false |
| 65 | + jobLimit: 2147483647 |
| 66 | + snapshotMethodArgs: "skipnodisk=0,post_events=1,multi_org=0,Virtual_machine_backup=2,continue_discovery=1,nameuse=4,exclude_swap=1,tags_unset=0,ignore_irvm=1,rLim=10,snapact=2,enable_quiesce_failover=1,file_system_optimization=1,drive_selection=0,disable_quiesce=0,enable_vCloud=0,trantype=nbdssl,rHz=10,rTO=0" |
| 67 | + useAccelerator: true |
| 68 | + autoManagedType: 2 |
| 69 | + backupHost: MEDIA_SERVER |
| 70 | + blockIncremental: true |
| 71 | + dataClassification: |
| 72 | + disableClientSideDeduplication: false |
| 73 | + discoveryLifetime: 28800 |
| 74 | + mediaOwner: "*ANY*" |
| 75 | + priority: 0 |
| 76 | + storage: |
| 77 | + storageIsSLP: false |
| 78 | + useReplicationDirector: false |
| 79 | + volumePool: NetBackup |
| 80 | + schedules: |
| 81 | + - backupType: Full Backup |
| 82 | + backupCopies: |
| 83 | + copies: |
| 84 | + - retentionPeriod: |
| 85 | + value: 1 |
| 86 | + unit: DAYS |
| 87 | + storage: SLO_UUID_bd72e69e-c3d4-4446-8273-4646b1f5d614_Backup_Only_29d7ad56-1ab7-4876-a00f-4868433ea149 |
| 88 | + priority: -1 |
| 89 | + frequencySeconds: 604800 |
| 90 | + mediaMultiplexing: 1 |
| 91 | + retriesAllowedAfterRunDay: false |
| 92 | + scheduleName: Full |
| 93 | + scheduleType: Frequency |
| 94 | + snapshotOnly: false |
| 95 | + storageIsSLP: true |
| 96 | + startWindow: |
| 97 | + - dayOfWeek: 6 |
| 98 | + durationSeconds: 28000 |
| 99 | + startSeconds: 64800 |
| 100 | + - backupType: "Differential Incremental Backup" |
| 101 | + backupCopies: |
| 102 | + copies: |
| 103 | + - retentionPeriod: |
| 104 | + value: 1 |
| 105 | + unit: DAYS |
| 106 | + storage: SLO_UUID_bd72e69e-c3d4-4446-8273-4646b1f5d614_Backup_Only_29d7ad56-1ab7-4876-a00f-4868433ea149 |
| 107 | + priority: -1 |
| 108 | + frequencySeconds: 86400 |
| 109 | + mediaMultiplexing: 1 |
| 110 | + retriesAllowedAfterRunDay: false |
| 111 | + scheduleName: DIFF_INC |
| 112 | + scheduleType: Frequency |
| 113 | + snapshotOnly: false |
| 114 | + storageIsSLP: true |
| 115 | + startWindow: |
| 116 | + - dayOfWeek: 1 |
| 117 | + durationSeconds: 28800 |
| 118 | + startSeconds: 64800 |
| 119 | + - dayOfWeek: 2 |
| 120 | + durationSeconds: 28800 |
| 121 | + startSeconds: 64800 |
| 122 | + - dayOfWeek: 3 |
| 123 | + durationSeconds: 28800 |
| 124 | + startSeconds: 64800 |
| 125 | + - dayOfWeek: 4 |
| 126 | + durationSeconds: 28800 |
| 127 | + startSeconds: 64800 |
| 128 | + - dayOfWeek: 5 |
| 129 | + durationSeconds: 28800 |
| 130 | + startSeconds: 64800 |
| 131 | + - dayOfWeek: 7 |
| 132 | + durationSeconds: 28800 |
| 133 | + startSeconds: 64800 |
| 134 | + validate_certs: no |
| 135 | + return_content: yes |
| 136 | + |
| 137 | + with_items: |
| 138 | + - { seg: 'e', time: '1800', type: 'wi', ret: '30' } |
| 139 | + - { seg: 'i', time: '1800', type: 'wi', ret: '30' } |
| 140 | + - { seg: 's', time: '1800', type: 'wi', ret: '30' } |
| 141 | + |
| 142 | +# validate_certs: no |
| 143 | +# return_content: yes |
| 144 | + register: slo_create |
| 145 | + - name: debug vmware_resource |
| 146 | + debug: |
| 147 | + msg: "{{slo_create}}" |
0 commit comments