Skip to content

Commit

Permalink
Add github_enterpise block, update documentation, update provider v…
Browse files Browse the repository at this point in the history
…ersion.
  • Loading branch information
nikitabarskov authored and jmfontaine committed May 23, 2023
1 parent 8c43378 commit c5043bb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ When the Terraform code is ready, commit it to a repository.

### Create a manager Spacelift stack

> :warning: **Check out the VCS system integation**
> If you were using https://docs.spacelift.io/integrations/source-control/github#setting-up-the-custom-application
> set a correct `namespace` variable in `manager-stack/terraform.tfvars`
> and uncomment `github_enterpise` block in `manager-stack/main.tf` file.
It is now time to create a Spacelift stack that will point to the commited Terraform code that manages your Spacelift resources.

- Copy the example `manager-stack.example.tfvars` file into `manager-stack.tfvars` .
Expand Down
3 changes: 3 additions & 0 deletions manager-stack.example.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ stack_name = "Spacelift Manager"
# Description for the stack
stack_description = "Spacelift resources manager"

# Name of your GitHub Enterprise organisation or GitHub account
# namespace = "change-me-to-your-organisation-or-account-name"

# Name of the repository to associate with the stack
repository = "spacelift"

Expand Down
7 changes: 6 additions & 1 deletion manager-stack/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
spacelift = {
source = "spacelift-io/spacelift"
version = "~> 0.1"
version = "~> 1.0"
}
}
}
Expand All @@ -28,6 +28,11 @@ resource "spacelift_stack" "manager" {
name = var.stack_name
project_root = var.project_root
repository = var.repository
# If you are using GitHub custom app installation https://docs.spacelift.io/integrations/source-control/github#setting-up-the-custom-application
# uncomment the following lines
# github_enterprise {
# namespace = var.namespace
# }
}

resource "spacelift_run" "manager" {
Expand Down

0 comments on commit c5043bb

Please sign in to comment.