Closed siennathesane closed 6 years ago
To further the mysterious plot of this issue, this command returns no errors:
BOSH_LOG_LEVEL=debug BOSH_LOG_PATH=concourse.log bosh -e home interpolate -d concourse concourse.yml \
-l ../versions.yml \
--vars-store cluster-creds.yml \
-o operations/static-web.yml \
-o operations/github-auth.yml \
--var github_client.username=... \
--var github_client.password=... \
--var atc.properties.main_team.github.orgs='[<org>]' \
--var atc.properties.main_team.github.teams='["<org>:all"]' \
--var atc.properties.main_team.github.users='[mxplusb]' \
--var web_ip=10.0.4.20 \
--var external_url=https://<public-url> \
--var network_name=default \
--var web_vm_type=small \
--var db_vm_type=medium \
--var db_persistent_disk_type=10GB \
--var worker_vm_type=worker \
--var deployment_name=concourse
However, it doesn't properly resolve the variables:
instance_groups:
- azs:
- z1
instances: 1
jobs:
- name: atc
properties:
external_url: https://<public-url>
github_auth:
client_id: ...
client_secret: ...
log_level: debug
main_team:
auth:
github:
orgs: ((main_team.github.orgs))
teams: ((main_team.github.teams))
users: ((main_team.github.users))
Which is a bit strange. @lurraca also ran into this issue and reported it here.
Finding variable 'main_team.github.users':
Expected to find a map key 'users' for path '/github/users' (found map keys: 'teams')
I think github.users
seem to be regarded as a variable type that has orgs
, teams
an users
.
--var atc.properties.main_team.github.orgs='[<org>]' \
--var atc.properties.main_team.github.teams='["<org>:all"]' \
--var atc.properties.main_team.github.users='[mxplusb]' \
These are simply ignored.
The following ops-file works for me
- type: replace
path: /instance_groups/name=web/jobs/name=atc/properties/main_team?/auth/github/users
value: ((main_team.github_users))
- type: replace
path: /instance_groups/name=web/jobs/name=atc/properties/main_team?/auth/github/orgs
value: ((main_team.github_orgs))
- type: replace
path: /instance_groups/name=web/jobs/name=atc/properties/main_team?/auth/github/teams
value: ((main_team.github_teams))
and
--var main_team.github_orgs='["<org>"]' \
--var main_team.github_teams='["<org>:all"]' \
--var main_team.github_users='["mxplusb"]' \
Thanks @making for taking a look! I changed it, and now everything interpolates properly. It also deploys correctly.
This issue is blocking us upgrading to 4.0.0 too. Would love to see the PR merged 👍
@Samze if you could comment on the PR with your blocker, that could help the team when it comes to priority.
// cc @jama-pivotal
oh hey! sorry to hear about the blocker! @vito is master of PRs and community, and we manage our incoming PRs across all repos using this meta view: https://project.concourse-ci.org/pull-requests
Thanks both of you, I've commented on the PR.
Using these versions:
With this command:
Fails with one of:
The error I receive depends on the order of the
main_team.github.x
variables within the command but it is always one of those 3. Looking at the BOSH documentation for the ATC, I am passing properly formatted strings as variables.