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-composefrom 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-teamcityas per instructions.
cdinto the sample folder and run
terraform planto preview changes
terraform applyto 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 :)