jakauppila / terraform-github-org

For managing the Sous Chefs Github Organisation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-github-org

Backers on Open Collective Sponsors on Open Collective

For managing the Sous Chefs Github Organisation

Usage

Becoming A Member

Add yourself to modules/org_membership/main.tf

Adding a Repository

Create a file called repository.tf where repository is the name of your repository e.g. foodcritic.tf

Example repository with one maintainer.

module "bsdcpio" {
  source         = "./modules/repository"
  name           = "bsdcpio"
  description    = "Development repository for the bsdcpio cookbook"
  cookbook_team  = "${github_team.bsdcpio.id}"

}

resource "github_team" "bsdcpio" {
  name        = "bsdcpio"
  description = "BSDCPIO Cookbook Maintainers"
  privacy     = "closed"
}

resource "github_team_membership" "bsdcpio-maintainer-1" {
  team_id  = "${github_team.bsdcpio.id}"
  username = "josephholsten"
  role     = "maintainer"
}

Becoming a Cookbook maintainer

Add yourself to the repository file e.g. ruby_rbenv.tf

All terraform resource names must be unique. The easiest way to do this is

  • copy the previous resource,
  • increment the number in the name e.g. bsdcpio-maintainer-1 --> bsdcpio-maintainer-2
  • change their name to yours.

Importing a repository

Note: Board Members only Create the terraform file for the repository import the state file using:

terraform import module.memcached.github_repository.repository memcached

Then get the PR merged in, not merging in the PR will result in terraform deleting the repo on next run

Contributors

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

About

For managing the Sous Chefs Github Organisation


Languages

Language:HCL 100.0%