For managing the Sous Chefs Github Organisation
HCL
Switch branches/tags
Nothing to show
Clone or download
damacus Simplify workflow (#102)
* Simplify workflow

Only run the plan on non-master
Only run apply on master (no plan)
Latest commit 9f6917e Aug 15, 2018
Permalink
Failed to load latest commit information.
.circleci Simplify workflow (#102) Aug 15, 2018
.github Add github templates and lock bot Jul 24, 2018
modules Remove TheMusicalDevOps as that github memeber no longer exists Aug 15, 2018
.gitignore Ignore terraform state May 7, 2018
README.md Add circleci (#87) May 26, 2018
apache2.tf Remove myself from Sous Chefs (#93) Jun 20, 2018
board.tf Add circleci (#87) May 26, 2018
bsdcpio.tf Tidy up homepage_url and description (#59) Sep 30, 2017
chef-compliance.tf Tidy up homepage_url and description (#59) Sep 30, 2017
chef_de_partie.tf Remove myself from Sous Chefs (#93) Jun 20, 2018
confluence.tf Add missing repos Jul 18, 2018
dhcp.tf REmove jmccann Mar 12, 2018
edelight-chef-mongodb-transition.tf Add Board, chef-de-partie, mongodb-transition, apache2, meta, Jan 7, 2017
filesystem.tf Tidy up homepage_url and description (#59) Sep 30, 2017
gpg.tf Add missing repos Jul 18, 2018
grafana.tf Add missing repos Jul 18, 2018
graphite.tf Add abilun user to the graphite maintainers (#92) Jun 13, 2018
haproxy.tf More changes to pull terraform back into line with github Mar 13, 2018
java.tf Don't archive/deprecate java Jul 18, 2018
kismet.tf Add missing repos Jul 18, 2018
language-chef.tf Add missing repos Jul 18, 2018
line.tf Add circleci (#87) May 26, 2018
mac_os_x.tf Add myself to mac_os_x Jul 18, 2018
main.tf Add circleci (#87) May 26, 2018
mariadb.tf mariadb : add sinfomicien as a maintainer (#83) May 14, 2018
meta.tf FMT Jan 7, 2017
mongodb.tf Adding myself as a maintainer (#86) May 25, 2018
mysql.tf Add missing repos Jul 18, 2018
mysql_database.tf Refactor Members & repositories (#56) Sep 30, 2017
nagios.tf Refactor Members & repositories (#56) Sep 30, 2017
nano.tf Tidy up homepage_url and description (#59) Sep 30, 2017
nginx_simplecgi.tf Add missing repos Jul 18, 2018
npm_lazy.tf Add missing repos Jul 18, 2018
nrpe.tf Update nrpe description Jul 18, 2018
openvpn.tf Add @jeffbyrnes to @sous-chefs & openvpn cookbook (#76) Mar 13, 2018
ossec.tf Remove Joshua from ossec Jul 18, 2018
owners.tf Add circleci (#87) May 26, 2018
percona.tf Add missing repos Jul 18, 2018
postgresql.tf Swap myself for damacus on postgresql Jul 18, 2018
pulledpork.tf Add missing repos Jul 18, 2018
reprepro.tf Add missing repos Jul 18, 2018
ruby_build.tf Refactor Members & repositories (#56) Sep 30, 2017
ruby_rbenv.tf Rename Jul 18, 2018
rundeck.tf Refactor Members & repositories (#56) Sep 30, 2017
samba.tf Refactor Members & repositories (#56) Sep 30, 2017
sc-foodcritic-rules.tf Tidy up homepage_url and description (#59) Sep 30, 2017
sc-generator.tf Refactor Members & repositories (#56) Sep 30, 2017
sc-mysql.tf Refactor Members & repositories (#56) Sep 30, 2017
selinuxpolicy.tf Refactor Members & repositories (#56) Sep 30, 2017
sensors.tf Add missing repos Jul 18, 2018
smartmontools.tf Refactor Members & repositories (#56) Sep 30, 2017
snort.tf Remove joshua from snort Jul 18, 2018
swap.tf Refactor Members & repositories (#56) Sep 30, 2017
sysctl.tf Remove myself from Sous Chefs (#93) Jun 20, 2018
unbound.tf More changes to pull terraform back into line with github Mar 13, 2018
unifi.tf Add missing repos Jul 18, 2018
variables.tf variables: fix defaults Feb 4, 2017
varnish.tf Refactor Members & repositories (#56) Sep 30, 2017
website.tf Remove generic access :shrugs: why it wont apply on the github side May 18, 2017
winrm.tf Add winrm homepage Jul 18, 2018

README.md

terraform-github-org

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}"
  chef_de_partie = "${github_team.Chef_de_partie.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.