-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
72 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
-----BEGIN PGP SIGNATURE----- | ||
|
||
iQGzBAABCAAdFiEE/bJvyFHKKJdaZDOLTiIiIXrUDNEFAmUui6wACgkQTiIiIXrU | ||
DNE/Cgv5AWZpBWCadMSI6oZGUEwiTMfL6dd7/vdjKdTFjE/AewhNELGKexkZREQT | ||
+k6M5Uocyuk5VmDxDLr8S5VwgswPRhYxvUSgrMPu02v0eA3WZm0uuEXXbp2MDRZw | ||
YJ0kp5QDcrzQPUWOf2JBTWj9cfu8p4VEnmQozCr6I2lj/NVpH8WE5+lc1IwigdSE | ||
2VKo4OV5zZIpFV5kK8bLUp+6jvURUJLMYEiRDDaj07E7JVkxdIXL8eNLHCyKKx3j | ||
Uma10GvCGpiwmgKgBmoNm5xuzWp2RSuK3gD53ffIoUEZnNaPy5qls53DLlg7weuy | ||
VgOgLNJB+DnnjLv1IXS05f4KO2JBXb86HsZLjDHWzxvVhuOISSZb9JlW5LL4Ios5 | ||
73DXUCl6d5Wqzf3BRTykY5PNOEvMoHo9hHa6y3ghhk9RU2GHa8B07yTBml36L1ri | ||
ZcEyxxstJcka+dtVA5/GkAL/ODpusSrUOvjCd+7WTCX6d94XYwUKplzPILyvmHgX | ||
QqtZUMP9 | ||
=ghvq | ||
iQGzBAABCAAdFiEE/bJvyFHKKJdaZDOLTiIiIXrUDNEFAmVOLfwACgkQTiIiIXrU | ||
DNHFgAwAt1cW8XJFkJrjFCBf9E11yNzUZT2DxVewDMF1Nv0TZ1fyphxueZ2XzE7J | ||
HOMZbqL9gx10QVFGnsYos0wyXOYRzsed9PWj2b0bDaDH+KkRrXxRtZOBv3wNhEeF | ||
Iiv8ozdxRc2nrRiJn45cf0ZdP2t3CiHkqxrbE/S58f/PLcghAvLqmlqHZLugjo4Z | ||
1NYl2bRfg4D4ehdUaW+8PU6zo4SnfXHD/UPJRSfXftxm5uKXJKyUddbv3io9TU+U | ||
gGA2K7DtlyhUiuBBEw2jrwhWXp6eir6jEIl6O8fpfi0WezCyzUdkbbClM6b1Ojfe | ||
QANDN+N/b+4CUKQt3OzlvQw8f1u5OCZ/bRmGne16fbADTOUfiJkfzI1+vUWTmRYu | ||
3VOVLFNhqpxW9uSA1ZlMUihWZ2kYr3/NkvwjdwGtNEHtQ8uHP59t7oy4ae73+NBc | ||
JXq4nMaiv9KeAIPnI0GPrvH+JHgwZGGbp0Fbo5wMqGn0T52JZpT6BnHhj6gbOoMC | ||
6dxUp2fv | ||
=Al0r | ||
-----END PGP SIGNATURE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- name: AWS Scheduler for Parking | ||
hosts: localhost | ||
connection: local | ||
gather_facts: false | ||
|
||
roles: | ||
- azure_schedule_parking |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- name: AWS Start VMs | ||
hosts: localhost | ||
connection: local | ||
gather_facts: false | ||
|
||
roles: | ||
- aws_opt_in_start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- name: AWS Stop VMs | ||
hosts: localhost | ||
connection: local | ||
gather_facts: false | ||
|
||
roles: | ||
- aws_opt_in_stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
- name: Start EC2 Instances based on tag | ||
amazon.aws.ec2_instance: | ||
filters: | ||
"tag:owner": "{{ owner }}" | ||
"tag:env": "{{ env }}" | ||
state: started |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
- name: Stop EC2 Instances based on tag | ||
amazon.aws.ec2_instance: | ||
filters: | ||
"tag:owner": "{{ owner }}" | ||
"tag:env": "{{ env }}" | ||
state: stopped |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
- name: Build the Schedule for Stopping AWS instances for {{ owner }} in {{ env }} | ||
ansible.controller.schedule: | ||
name: Park AWS instances for {{ owner }} in {{ env }} | ||
state: present | ||
unified_job_template: AWSParking-Stop | ||
rrule: "{{ query('ansible.controller.schedule_rrule', frequency, start_date=stop_date_time, timezone='GMT', every=repetition | int) }}" | ||
extra_data: | ||
owner: "{{ owner }}" | ||
env: "{{ env }}" | ||
|
||
- name: Build the Schedule for Starting AWS instances for {{ owner }} in {{ env }} | ||
ansible.controller.schedule: | ||
name: UnPark AWS instances for {{ owner }} in {{ env }} | ||
state: present | ||
unified_job_template: AWSParking-Start | ||
rrule: "{{ query('ansible.controller.schedule_rrule', frequency, start_date=start_date_time, timezone='GMT', every=repetition | int) }}" | ||
extra_data: | ||
owner: "{{ owner }}" | ||
env: "{{ env }}" |