How to run these samples:
- Clone this repo yo your machine.
- Run TeamCity in a docker container and wait for it to initialize. One simple way to do is by using
docker-compose
from this repo:
> docker-compose up -d
- Navigate to http://localhost:8112 and setup an initial admin user.
- Set teamcity credentials, matching the user created in the environment:
> export TEAMCITY_USER=admin
> export TEAMCITY_PASSWORD=admin
- Install the
terraform-provider-teamcity
as per instructions. cd
into the sample folder and runterraform init
terraform plan
to preview changesterraform apply
to apply the configuration.
If variables are needed for samples, you can also export them for your convenience in the environment directly by the following pattern:
> export TF_VAR_variable_name=foo
Before running plan/apply cycles.
Please file in an issue on the repo :)