From: Justin Wind Date: Fri, 10 Mar 2017 20:27:15 +0000 (-0800) Subject: update management bits X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=7e77e2c8be9edb0b1b6d05ff7594ff2978334063;p=awsible update management bits --- diff --git a/group_vars/management b/group_vars/management index 98a2263..ed97d53 100644 --- a/group_vars/management +++ b/group_vars/management @@ -1,6 +1 @@ -MANAGEMENT_DATA_ROOT: /data/management -MANAGEMENT_EVENT_QUEUE: management-events -MANAGEMENT_EVENT_FAILURE_QUEUE: management-events-failed -MANAGEMENT_NOTICE_ARN: arn:aws:sns:us-east-1:123456789012:management-alerts -MANAGEMENT_BACKUP_S3_BUCKET: backups -MANAGEMENT_SUBNET: "subnet-1234abcd" +--- diff --git a/init_management.yml b/init_management.yml new file mode 100644 index 0000000..97302ba --- /dev/null +++ b/init_management.yml @@ -0,0 +1,7 @@ +--- +- hosts: localhost + connection: local + gather_facts: False + become: no + roles: + - aws-management-infrastructure diff --git a/init_vpc.yml b/init_vpc.yml new file mode 100644 index 0000000..ad7f39a --- /dev/null +++ b/init_vpc.yml @@ -0,0 +1,7 @@ +--- +- hosts: localhost + connection: local + gather_facts: False + become: no + roles: + - aws-vpc-infrastructure diff --git a/management.yml b/management.yml index 912a673..a6ce26a 100644 --- a/management.yml +++ b/management.yml @@ -3,4 +3,4 @@ become: true roles: - common -# - management + - management diff --git a/roles/management/defaults/main.yml b/roles/management/defaults/main.yml new file mode 100644 index 0000000..6538c24 --- /dev/null +++ b/roles/management/defaults/main.yml @@ -0,0 +1,2 @@ +--- +MANAGEMENT_DATA_ROOT: /data/management diff --git a/roles/management/meta/main.yml b/roles/management/meta/main.yml new file mode 100644 index 0000000..f4f0c2a --- /dev/null +++ b/roles/management/meta/main.yml @@ -0,0 +1,3 @@ +--- +dependencies: + - { role: aws-management-queues } diff --git a/roles/management/templates/sqs-poll.cron.j2 b/roles/management/templates/sqs-poll.cron.j2 index 98a4b1f..872c7ba 100644 --- a/roles/management/templates/sqs-poll.cron.j2 +++ b/roles/management/templates/sqs-poll.cron.j2 @@ -1 +1 @@ -* * * * * ec2-user {{ MANAGEMENT_DATA_ROOT }}/sqs-action.py {{ MANAGEMENT_DATA_ROOT }} {{ MANAGEMENT_EVENT_QUEUE }} {{ MANAGEMENT_NOTICE_ARN }} +* * * * * ec2-user {{ MANAGEMENT_DATA_ROOT }}/sqs-action.py {{ MANAGEMENT_DATA_ROOT }} {{ MANAGEMENT_EVENT_QUEUE }} {{ management_notice_topic.sns_arn }}