{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack-formulas/aptly-formula/issues/39","repository_url":"https://api.github.com/repos/saltstack-formulas/aptly-formula","labels_url":"https://api.github.com/repos/saltstack-formulas/aptly-formula/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/saltstack-formulas/aptly-formula/issues/39/comments","events_url":"https://api.github.com/repos/saltstack-formulas/aptly-formula/issues/39/events","html_url":"https://github.com/saltstack-formulas/aptly-formula/issues/39","id":304561440,"number":39,"title":"Jinja variable 'keyid' is undefined when running aptly.create_mirrors","user":{"login":"jalmansor","id":9470063,"avatar_url":"https://avatars0.githubusercontent.com/u/9470063?v=4","gravatar_id":"","url":"https://api.github.com/users/jalmansor","html_url":"https://github.com/jalmansor","followers_url":"https://api.github.com/users/jalmansor/followers","following_url":"https://api.github.com/users/jalmansor/following{/other_user}","gists_url":"https://api.github.com/users/jalmansor/gists{/gist_id}","starred_url":"https://api.github.com/users/jalmansor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jalmansor/subscriptions","organizations_url":"https://api.github.com/users/jalmansor/orgs","repos_url":"https://api.github.com/users/jalmansor/repos","events_url":"https://api.github.com/users/jalmansor/events{/privacy}","received_events_url":"https://api.github.com/users/jalmansor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-12T22:19:41Z","updated_at":"2018-03-13T17:04:56Z","closed_at":null,"author_association":"NONE","body":"Running Salt 2016.11.3 and keep having issues with the `create_mirrors` state failing saying that the Jinja variable `keyid` is undefined. \r\n\r\nThis is what my `mirrors` pillar section looks like: \r\n\r\n```yaml\r\n  mirrors:\r\n    datadog:\r\n      url: https://apt.datadoghq.com\r\n      distribution: stable\r\n      components:\r\n        - main\r\n        - 6\r\n      keyid:\r\n        - 382E94DE\r\n      architectures:\r\n        - amd64\r\n    trusty-docker-engine:\r\n      url: https://apt.dockerproject.org/repo\r\n      distribution: ubuntu-trusty\r\n      components:\r\n        - main\r\n      key_url: https://apt.dockerproject.org/gpg\r\n      architectures:\r\n        - amd64\r\n    xenial-docker-engine:\r\n      url: https://apt.dockerproject.org/repo\r\n      distribution: ubuntu-xenial\r\n      components:\r\n        - main\r\n      key_url: https://apt.dockerproject.org/gpg\r\n      architectures:\r\n        - amd64\r\n    trusty-docker-ce:\r\n      url: https://download.docker.com/linux/ubuntu\r\n      distribution: trusty\r\n      components:\r\n        - main\r\n      key_url: https://download.docker.com/linux/ubuntu/gpg\r\n      architectures:\r\n        - amd64\r\n    xenial-docker-ce:\r\n      url: https://download.docker.com/linux/ubuntu\r\n      distribution: xenial\r\n      components:\r\n        - main\r\n      key_url: https://download.docker.com/linux/ubuntu/gpg\r\n      architectures:\r\n        - amd64\r\n    trusty-saltstack-2016_11_3:\r\n      url: http://repo.saltstack.com/apt/ubuntu/14.04/amd64/archive/2016.11.3/\r\n      distribution: trusty\r\n      components:\r\n        - main\r\n      key_url: http://repo.saltstack.com/apt/ubuntu/14.04/amd64/archive/2016.11.3/SALTSTACK-GPG-KEY.pub\r\n      architectures:\r\n        - amd64\r\n    xenial-saltstack-2016_11_3:\r\n      url: http://repo.saltstack.com/apt/ubuntu/16.04/amd64/archive/2016.11.3/\r\n      distribution: xenial\r\n      components:\r\n        - main\r\n      key_url: http://repo.saltstack.com/apt/ubuntu/16.04/amd64/archive/2016.11.3/SALTSTACK-GPG-KEY.pub\r\n      architectures:\r\n        - amd64\r\n    trusty:\r\n      url: http://us-east-1.ec2.archive.ubuntu.com/ubuntu/\r\n      distribution: trusty\r\n      components:\r\n        - main\r\n        - restricted\r\n        - universe\r\n        - multiverse\r\n      keyid:\r\n        - 437D05B5\r\n      architectures:\r\n        - amd64\r\n    trusty-updates:\r\n      url: http://us-east-1.ec2.archive.ubuntu.com/ubuntu/\r\n      distribution: trusty-updates\r\n      components:\r\n        - main\r\n        - restricted\r\n        - universe\r\n        - multiverse\r\n      keyid:\r\n        - 437D05B5\r\n      architectures:\r\n        - amd64\r\n    trusty-backports:\r\n      url: http://us-east-1.ec2.archive.ubuntu.com/ubuntu/\r\n      distribution: trusty-backports\r\n      components:\r\n        - main\r\n        - restricted\r\n        - universe\r\n        - multiverse\r\n      keyid:\r\n        - 437D05B5\r\n      architectures:\r\n        - amd64\r\n    trusty-security:\r\n      url: http://us-east-1.ec2.archive.ubuntu.com/ubuntu/\r\n      distribution: trusty-security\r\n      components:\r\n        - main\r\n        - restricted\r\n        - universe\r\n        - multiverse\r\n      keyid:\r\n        - 437D05B5\r\n      architectures:\r\n        - amd64\r\n    xenial:\r\n      url: http://us-east-1.ec2.archive.ubuntu.com/ubuntu/\r\n      distribution: xenial\r\n      components:\r\n        - main\r\n        - restricted\r\n        - universe\r\n        - multiverse\r\n      keyid:\r\n        - C0B21F32\r\n      architectures:\r\n        - amd64\r\n    xenial-updates:\r\n      url: http://us-east-1.ec2.archive.ubuntu.com/ubuntu/\r\n      distribution: xenial-updates\r\n      components:\r\n        - main\r\n        - restricted\r\n        - universe\r\n        - multiverse\r\n      keyid:\r\n        - C0B21F32\r\n      architectures:\r\n        - amd64\r\n    xenial-backports:\r\n      url: http://us-east-1.ec2.archive.ubuntu.com/ubuntu/\r\n      distribution: xenial-backports\r\n      components:\r\n        - main\r\n        - restricted\r\n        - universe\r\n        - multiverse\r\n      keyid:\r\n        - C0B21F32\r\n      architectures:\r\n        - amd64\r\n    xenial-security:\r\n      url: http://us-east-1.ec2.archive.ubuntu.com/ubuntu/\r\n      distribution: xenial-security\r\n      components:\r\n        - main\r\n        - restricted\r\n        - universe\r\n        - multiverse\r\n      keyid:\r\n        - C0B21F32\r\n      architectures:\r\n        - amd64\r\n```\r\n\r\nAny assistance would be appreciated"},"comment":{"url":"https://api.github.com/repos/saltstack-formulas/aptly-formula/issues/comments/372741930","html_url":"https://github.com/saltstack-formulas/aptly-formula/issues/39#issuecomment-372741930","issue_url":"https://api.github.com/repos/saltstack-formulas/aptly-formula/issues/39","id":372741930,"user":{"login":"jalmansor","id":9470063,"avatar_url":"https://avatars0.githubusercontent.com/u/9470063?v=4","gravatar_id":"","url":"https://api.github.com/users/jalmansor","html_url":"https://github.com/jalmansor","followers_url":"https://api.github.com/users/jalmansor/followers","following_url":"https://api.github.com/users/jalmansor/following{/other_user}","gists_url":"https://api.github.com/users/jalmansor/gists{/gist_id}","starred_url":"https://api.github.com/users/jalmansor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jalmansor/subscriptions","organizations_url":"https://api.github.com/users/jalmansor/orgs","repos_url":"https://api.github.com/users/jalmansor/repos","events_url":"https://api.github.com/users/jalmansor/events{/privacy}","received_events_url":"https://api.github.com/users/jalmansor/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T17:04:56Z","updated_at":"2018-03-13T17:04:56Z","author_association":"NONE","body":"Found the issue in `create_mirrors.sls`:\r\n\r\nhttps://github.com/saltstack-formulas/aptly-formula/blob/0ed1d28b9ca91fad687b6bb5aba50ca81fd9426f/aptly/create_mirrors.sls#L49-L56"}}
{"actor":{"display_login":"jalmansor"}}