{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/kitchen-salt/issues/267","repository_url":"https://api.github.com/repos/saltstack/kitchen-salt","labels_url":"https://api.github.com/repos/saltstack/kitchen-salt/issues/267/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/kitchen-salt/issues/267/comments","events_url":"https://api.github.com/repos/saltstack/kitchen-salt/issues/267/events","html_url":"https://github.com/saltstack/kitchen-salt/issues/267","id":383081052,"node_id":"MDU6SXNzdWUzODMwODEwNTI=","number":267,"title":"Grains not being set","user":{"login":"finferflu","id":2394332,"node_id":"MDQ6VXNlcjIzOTQzMzI=","avatar_url":"https://avatars3.githubusercontent.com/u/2394332?v=4","gravatar_id":"","url":"https://api.github.com/users/finferflu","html_url":"https://github.com/finferflu","followers_url":"https://api.github.com/users/finferflu/followers","following_url":"https://api.github.com/users/finferflu/following{/other_user}","gists_url":"https://api.github.com/users/finferflu/gists{/gist_id}","starred_url":"https://api.github.com/users/finferflu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finferflu/subscriptions","organizations_url":"https://api.github.com/users/finferflu/orgs","repos_url":"https://api.github.com/users/finferflu/repos","events_url":"https://api.github.com/users/finferflu/events{/privacy}","received_events_url":"https://api.github.com/users/finferflu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-21T11:45:18Z","updated_at":"2018-11-21T14:01:16Z","closed_at":"2018-11-21T14:01:16Z","author_association":"NONE","body":"Hi,\r\n\r\nI've followed the instructions on how to set grains [here](https://github.com/saltstack/kitchen-salt/blob/master/docs/provisioner_options.md), like so:\r\n\r\n```\r\nprovisioner:\r\n  name: salt_solo\r\n  salt_install: bootstrap\r\n  salt_bootstrap_url: https://bootstrap.saltstack.com\r\n  salt_version: latest\r\n  grains:\r\n    roles:\r\n      - web-uat\r\n...\r\n```\r\n\r\nAnd I can see this while converging:\r\n\r\n```Preparing grains into /etc/salt/grains```\r\n\r\nHowever, the `grains` file isn't there:\r\n\r\n```\r\n$ bundle exec kitchen login\r\nLast login: Wed Nov 21 11:43:09 2018 from 10.0.2.2\r\n[vagrant@default-centos-7 ~]$ sudo su -\r\nLast login: Wed Nov 21 11:40:23 UTC 2018 on pts/0\r\n[root@default-centos-7 ~]# ll /etc/salt/\r\ntotal 128\r\n-rw-r-----. 1 root root  2926 Oct  8 15:56 cloud\r\ndrwxr-xr-x. 2 root root     6 Oct  8 16:42 cloud.conf.d\r\ndrwxr-xr-x. 2 root root     6 Oct  8 16:42 cloud.deploy.d\r\ndrwxr-xr-x. 2 root root     6 Oct  8 16:42 cloud.maps.d\r\ndrwxr-xr-x. 2 root root     6 Oct  8 16:42 cloud.profiles.d\r\ndrwxr-xr-x. 2 root root     6 Oct  8 16:42 cloud.providers.d\r\n-rw-r-----. 1 root root 51532 Oct  8 15:56 master\r\ndrwxr-xr-x. 2 root root     6 Oct  8 16:42 master.d\r\n-rw-r-----. 1 root root 35984 Oct  8 15:56 minion\r\ndrwxr-xr-x. 2 root root     6 Oct  8 16:42 minion.d\r\n-rw-r--r--. 1 root root    30 Nov 21 11:37 minion_id\r\ndrwxr-xr-x. 4 root root    34 Nov 21 11:36 pki\r\n-rw-r-----. 1 root root 28162 Oct  8 15:56 proxy\r\ndrwxr-xr-x. 2 root root     6 Oct  8 16:42 proxy.d\r\n-rw-r-----. 1 root root   344 Oct  8 15:56 roster\r\n```\r\n\r\nThis is reflected by the fact that my config fails to converge due to missing grains. Is there anything I'm missing?\r\n\r\nThank you for your time!"},"comment":{"url":"https://api.github.com/repos/saltstack/kitchen-salt/issues/comments/440671657","html_url":"https://github.com/saltstack/kitchen-salt/issues/267#issuecomment-440671657","issue_url":"https://api.github.com/repos/saltstack/kitchen-salt/issues/267","id":440671657,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDY3MTY1Nw==","user":{"login":"finferflu","id":2394332,"node_id":"MDQ6VXNlcjIzOTQzMzI=","avatar_url":"https://avatars3.githubusercontent.com/u/2394332?v=4","gravatar_id":"","url":"https://api.github.com/users/finferflu","html_url":"https://github.com/finferflu","followers_url":"https://api.github.com/users/finferflu/followers","following_url":"https://api.github.com/users/finferflu/following{/other_user}","gists_url":"https://api.github.com/users/finferflu/gists{/gist_id}","starred_url":"https://api.github.com/users/finferflu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/finferflu/subscriptions","organizations_url":"https://api.github.com/users/finferflu/orgs","repos_url":"https://api.github.com/users/finferflu/repos","events_url":"https://api.github.com/users/finferflu/events{/privacy}","received_events_url":"https://api.github.com/users/finferflu/received_events","type":"User","site_admin":false},"created_at":"2018-11-21T14:01:16Z","updated_at":"2018-11-21T14:01:16Z","author_association":"NONE","body":"Actually, the main issue turned out to be that my grains were set in the wrong format. However, the `grains` file is still not present in `/etc/salt`, which I think was just misleading me. Upon further inspection, it appears that the `grains` file is actually placed in `/tmp/kitchen/etc/salt/grains`. Issue closed!"}}
{"actor":{"display_login":"finferflu"}}