Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiyerra committed Apr 18, 2024
2 parents f9c6af8 + ae54585 commit 69a4935
Show file tree
Hide file tree
Showing 8 changed files with 76 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ github: [abhiyerra]
# issuehunt: # Replace with a single IssueHunt username
# otechie: # Replace with a single Otechie username
# lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: ["https://www.opszero.com/devops"]
custom: ["https://www.opszero.com"]
23 changes: 23 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "terraform"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
7 changes: 2 additions & 5 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ Ensure the following tasks are completed.
- [ ] Is dependencies added with `poetry add`?
- [ ] Is the README.md updated?
- [ ] Are tests included?
- [ ] Are the tests running?
- [ ] Are the tests running?
- [ ] Are the names of the files correct?
- [ ] Are migrations included? `make makemigrations && make migrate`
- [ ] Does `make up` work?
- [ ] Does `helm template show ./charts/opszero` work?
- [ ] Add PR/Issue to opsZero Project and set to `Review` column

# Reviewer Checklist
Expand All @@ -22,4 +19,4 @@ Ensure the following tasks are completed.

- [ ] Is the marketing landing page updated?
- [ ] Is the sales proposal updated?
- [ ] Is the documentation updated?
- [ ] Is the documentation updated
6 changes: 3 additions & 3 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: hashicorp/setup-terraform@v2
- uses: pre-commit/action@v3.0.0
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v3
- uses: pre-commit/action@v3.0.1
10 changes: 4 additions & 6 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
MIT License

Copyright(c) 2023 opsZero, LLC
Copyright (c) 2016-2024 opsZero, LLC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files(the "Software"), to deal
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

Expand All @@ -18,4 +16,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
3 changes: 3 additions & 0 deletions LICENSE_PRO
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
opsZero customers please contact sales@opszero.com to get a copy of your
commercial license. If you would like a commercial license please also contact
sales@opszero.com.
27 changes: 27 additions & 0 deletions environments/common/artifacts/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
provider "aws" {
profile = "<profile>"
region = "us-west-2"
}

# terraform {
# backend "s3" {
# bucket = "opszero-<profile>-terraform-tfstate"
# region = "us-east-1"
# profile = "<profile>"
# encrypt = "true"

# key = "artifacts"
# }
# }

locals {
repo_names = [
"reponame",
]
}

module "ecr" {
for_each = toset(local.repo_names)
source = "github.com/opszero/terraform-aws-ecr"
name = each.key
}
24 changes: 13 additions & 11 deletions environments/shared/iam/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ provider "aws" {
region = "us-west-2"
}

terraform {
backend "s3" {
bucket = "opszero-<profile>-terraform-tfstate"
region = "us-east-1"
profile = "<profile>"
encrypt = "true"
# terraform {
# backend "s3" {
# bucket = "opszero-<profile>-terraform-tfstate"
# region = "us-east-1"
# profile = "<profile>"
# encrypt = "true"

key = "iam"
}
}
# key = "iam"
# }
# }

resource "aws_iam_policy" "deployer" {
name = "github-deployer-policy"
Expand Down Expand Up @@ -49,9 +49,11 @@ module "users" {
github = {
"deployer" = {
repos = [
"org/repo-name",
"opszero/terraform-aws-mrmgr"
]
policy_arns = [
aws_iam_policy.deployer.arn
]
policy_arns = [aws_iam_policy.deployer.arn]
}
}

Expand Down

0 comments on commit 69a4935

Please sign in to comment.