{"action":"created","issue":{"url":"https://api.github.com/repos/pivotalservices/cf-mgmt/issues/113","repository_url":"https://api.github.com/repos/pivotalservices/cf-mgmt","labels_url":"https://api.github.com/repos/pivotalservices/cf-mgmt/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/pivotalservices/cf-mgmt/issues/113/comments","events_url":"https://api.github.com/repos/pivotalservices/cf-mgmt/issues/113/events","html_url":"https://github.com/pivotalservices/cf-mgmt/issues/113","id":359214138,"node_id":"MDU6SXNzdWUzNTkyMTQxMzg=","number":113,"title":"cannot unmarshal !!map into string","user":{"login":"akamalov","id":7885257,"node_id":"MDQ6VXNlcjc4ODUyNTc=","avatar_url":"https://avatars2.githubusercontent.com/u/7885257?v=4","gravatar_id":"","url":"https://api.github.com/users/akamalov","html_url":"https://github.com/akamalov","followers_url":"https://api.github.com/users/akamalov/followers","following_url":"https://api.github.com/users/akamalov/following{/other_user}","gists_url":"https://api.github.com/users/akamalov/gists{/gist_id}","starred_url":"https://api.github.com/users/akamalov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akamalov/subscriptions","organizations_url":"https://api.github.com/users/akamalov/orgs","repos_url":"https://api.github.com/users/akamalov/repos","events_url":"https://api.github.com/users/akamalov/events{/privacy}","received_events_url":"https://api.github.com/users/akamalov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-11T20:37:35Z","updated_at":"2018-09-11T20:41:01Z","closed_at":"2018-09-11T20:41:01Z","author_association":"NONE","body":"Greetings,\r\n\r\nTrying to use cf-mgmt pipeline, however, I need to store vars.yml in Vault, which I have. Now, on ldap.yml file, I need to provide password value that is stored in Vault. Hence a problem.\r\n\r\n**File: vars.yml**\r\ngit_repo_uri: ssh://git@bitbucket.localnet.local/cf/cflab02-cg-config.git\r\nsystem_domain: system.cflab02-cg.localnet.local\r\nuser_id: ((deploy_id))\r\nclient_secret: ((deploy_pass))\r\npassword: ((deploy_pass))\r\nlog_level: INFO\r\ngit_private_key: ((private_key))\r\nbind_ldap_pass: ((bind_ldap_pass))\r\n\r\n**File: ldap.yml**\r\n```\r\nenabled: true\r\nldapHost: \"ldap.localnet.local\"\r\nldapPort: 636\r\nuse_tls: true\r\nbindDN: \"DOM\\\\servicelab\"\r\nbindPwd: {{bind_ldap_pass}}\r\nuserSearchBase: \"dc=dom,dc=localnet,dc=local\"\r\nuserNameAttribute: \"sAMAccountName\"\r\nuserMailAttribute: \"mail\"\r\nuserObjectClass: \"\"\r\ngroupSearchBase: \"ou=Groups,dc=dom,dc=localnet,dc=local\"\r\ngroupAttribute: \"member\"\r\norigin: ldap\r\n```\r\n\r\nHowever, the pipeline complains that it cannot unmarshall string to map:\r\n\r\n```\r\nupdate-org-users\r\nerror: yaml: unmarshal errors:\r\n  line 6: cannot unmarshal !!map into string\r\n```\r\n\r\nAny help, please ??"},"comment":{"url":"https://api.github.com/repos/pivotalservices/cf-mgmt/issues/comments/420418029","html_url":"https://github.com/pivotalservices/cf-mgmt/issues/113#issuecomment-420418029","issue_url":"https://api.github.com/repos/pivotalservices/cf-mgmt/issues/113","id":420418029,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDQxODAyOQ==","user":{"login":"calebwashburn","id":16271787,"node_id":"MDQ6VXNlcjE2MjcxNzg3","avatar_url":"https://avatars1.githubusercontent.com/u/16271787?v=4","gravatar_id":"","url":"https://api.github.com/users/calebwashburn","html_url":"https://github.com/calebwashburn","followers_url":"https://api.github.com/users/calebwashburn/followers","following_url":"https://api.github.com/users/calebwashburn/following{/other_user}","gists_url":"https://api.github.com/users/calebwashburn/gists{/gist_id}","starred_url":"https://api.github.com/users/calebwashburn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calebwashburn/subscriptions","organizations_url":"https://api.github.com/users/calebwashburn/orgs","repos_url":"https://api.github.com/users/calebwashburn/repos","events_url":"https://api.github.com/users/calebwashburn/events{/privacy}","received_events_url":"https://api.github.com/users/calebwashburn/received_events","type":"User","site_admin":false},"created_at":"2018-09-11T20:41:01Z","updated_at":"2018-09-11T20:41:01Z","author_association":"MEMBER","body":"This is built-in to be able to inject the bind password.  You can remove `bindPwd` from your ldap.yml and just inject into your pipeline.\r\n\r\n```- name: update-org-users\r\n  plan:\r\n  - get: config-repo\r\n    passed: [create-orgs]\r\n    trigger: true\r\n  - get: 15m\r\n    trigger: true\r\n  - task: update-org-users\r\n    file: config-repo/ci/tasks/cf-mgmt.yml\r\n    params:\r\n      SYSTEM_DOMAIN: {{system_domain}}\r\n      USER_ID: {{user_id}}\r\n      PASSWORD: {{password}}\r\n      CONFIG_DIR: ./config\r\n      CLIENT_SECRET: {{client_secret}}\r\n      LDAP_PASSWORD: {{ldap_password}}\r\n      LOG_LEVEL: {{log_level}}\r\n      CF_MGMT_COMMAND: update-org-users```\r\n\r\nSo change `bind_ldap_pass:` to be `ldap_password:`"}}
{"actor":{"display_login":"calebwashburn"}}