Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage opsgenie schedule rotations in modules/ #35

Open
nitrocode opened this issue Jun 24, 2022 · 0 comments
Open

Manage opsgenie schedule rotations in modules/ #35

nitrocode opened this issue Jun 24, 2022 · 0 comments

Comments

@nitrocode
Copy link
Member

nitrocode commented Jun 24, 2022

Have a question? Please checkout our Slack Community or visit our Slack Archive.

Slack Community

Describe the Feature

Currently this is managed by modules/config but we want to think of a new interface for this in modules/.

The opsgenie_schedule_rotation resource can be associated multiple times to a single schedule. Seems like a type of user and team can be used with it.

Current implementation modules/config/schedule_rotations.tf

New implementation within modules/schedule or in a new submodule called schedule_rotation

components:
  terraform:
    opsgenie-team-ops:
      metadata:
        component: opsgenie-team
        inherits:
          - opsgenie-team-defaults
      settings:
        spacelift:
          workspace_enabled: true
      vars:
        enabled: true
        name: ops

        schedules:
          minnesota_schedule:
            enabled: false
            description: "Minnesota Schedule"
            timezone: "America/Indianapolis"

            rotations:
              bob_ops:
                # could use the key of the rotation if `name` key is omitted
                name: "bob_ops"
                start_date: "2019-06-18T17:00:00Z"
                end_date: "2019-06-20T17:30:00Z"
                type: "hourly"
                length: 6
                time_restriction:
                  type: "time-of-day"
                  restriction:
                    start_hour: 1
                    start_min: 1
                    end_hour: 10
                    end_min: 1
                participants:
                - type: user
                  user: bob
                - type: team
                  user: ops

or perhaps

            rotations:
              - name: "bob_ops"
                start_date: "2019-06-18T17:00:00Z"
                end_date: "2019-06-20T17:30:00Z"

and/or perhaps

                participants:
                  users:
                    - bob
                  teams:
                    - ops
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant