Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using TLS with Bind Port ops file failure #140

Open
king-jam opened this issue Feb 12, 2019 · 2 comments
Open

Using TLS with Bind Port ops file failure #140

king-jam opened this issue Feb 12, 2019 · 2 comments

Comments

@king-jam
Copy link

When trying to use the operation file to override the TLS port, I get the following error that I can resolve by pulling the operations out and hardcoding the port values:

Using deployment 'concourse'

Evaluating manifest:
  Finding variable 'atc_tls.certificate':
    Expected to find a map key 'certificate' for path '/certificate' (found map keys: 'bind_port')

Exit code 1

Failure Scenario Configuration

Deployment Command:

bosh deploy -d concourse concourse-bosh-deployment/cluster/concourse.yml \
  -l concourse-bosh-deployment/versions.yml \
  --vars-store concourse-state/concourse-vars.yml \
  --vars-file=vars/concourse.yml \
  -o concourse-bosh-deployment/cluster/operations/static-web.yml \
  -o concourse-bosh-deployment/cluster/operations/basic-auth.yml \
  -o concourse-bosh-deployment/cluster/operations/tls-vars.yml \
  -o concourse-bosh-deployment/cluster/operations/tls.yml \
  -o concourse-bosh-deployment/cluster/operations/tls-port.yml

with the following vars file:

deployment_name: concourse
local_user:
  username: admin
  password: admin
web_ip: 192.168.1.10
external_url: https://my-url.com
external_host: https://my-url.com
network_name: default
web_vm_type: minimal
db_vm_type: minimal
db_persistent_disk_type: large
worker_vm_type: large

Success Scenario Configuration

Deployment Command:

bosh deploy -d concourse concourse-bosh-deployment/cluster/concourse.yml \
  -l concourse-bosh-deployment/versions.yml \
  --vars-store concourse-state/concourse-vars.yml \
  --vars-file=vars/concourse.yml \
  -o concourse-bosh-deployment/cluster/operations/static-web.yml \
  -o concourse-bosh-deployment/cluster/operations/basic-auth.yml \
  -o concourse-bosh-deployment/cluster/operations/tls-vars.yml \
  -o concourse-bosh-deployment/cluster/operations/tls.yml \
  -o custom/ops/bind-ports.yml

with the following vars file:

deployment_name: concourse
local_user:
  username: admin
  password: admin
web_ip: 192.168.1.10
external_url: https://my-url.com
external_host: https://my-url.com
network_name: default
web_vm_type: minimal
db_vm_type: minimal
db_persistent_disk_type: large
worker_vm_type: large

and this ops file:

- type: replace
  path: /instance_groups/name=web/jobs/name=atc/properties/tls_bind_port?
  value: 443

I'm wondering what the issue is and if we can document this somehow.

@jessedye
Copy link
Contributor

I also had the same problem and worked through it with your help!

@king-jam
Copy link
Author

@jessedye happy to help. I've dove into the job templates but can't figure out what's happening with this. It's very weird.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants