{"action":"created","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/24594","labels_url":"https://api.github.com/repos/saltstack/salt/issues/24594/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/24594/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/24594/events","html_url":"https://github.com/saltstack/salt/issues/24594","id":87335333,"number":24594,"title":"windows pkg not working correctly?","user":{"login":"tganzeboom","id":4200834,"avatar_url":"https://avatars.githubusercontent.com/u/4200834?v=3","gravatar_id":"","url":"https://api.github.com/users/tganzeboom","html_url":"https://github.com/tganzeboom","followers_url":"https://api.github.com/users/tganzeboom/followers","following_url":"https://api.github.com/users/tganzeboom/following{/other_user}","gists_url":"https://api.github.com/users/tganzeboom/gists{/gist_id}","starred_url":"https://api.github.com/users/tganzeboom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tganzeboom/subscriptions","organizations_url":"https://api.github.com/users/tganzeboom/orgs","repos_url":"https://api.github.com/users/tganzeboom/repos","events_url":"https://api.github.com/users/tganzeboom/events{/privacy}","received_events_url":"https://api.github.com/users/tganzeboom/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/saltstack/salt/labels/Beryllium","name":"Beryllium","color":"fbca04"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Confirmed","name":"Confirmed","color":"c7def8"},{"url":"https://api.github.com/repos/saltstack/salt/labels/High%20Severity","name":"High Severity","color":"ff9143"},{"url":"https://api.github.com/repos/saltstack/salt/labels/P2","name":"P2","color":"155fb5"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Platform","name":"Platform","color":"fef2c0"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Question","name":"Question","color":"942192"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Triangle","name":"Triangle","color":"9932CC"},{"url":"https://api.github.com/repos/saltstack/salt/labels/Windows","name":"Windows","color":"006b75"}],"state":"closed","locked":false,"assignee":{"login":"twangboy","id":9383935,"avatar_url":"https://avatars.githubusercontent.com/u/9383935?v=3","gravatar_id":"","url":"https://api.github.com/users/twangboy","html_url":"https://github.com/twangboy","followers_url":"https://api.github.com/users/twangboy/followers","following_url":"https://api.github.com/users/twangboy/following{/other_user}","gists_url":"https://api.github.com/users/twangboy/gists{/gist_id}","starred_url":"https://api.github.com/users/twangboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twangboy/subscriptions","organizations_url":"https://api.github.com/users/twangboy/orgs","repos_url":"https://api.github.com/users/twangboy/repos","events_url":"https://api.github.com/users/twangboy/events{/privacy}","received_events_url":"https://api.github.com/users/twangboy/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/saltstack/salt/milestones/60","html_url":"https://github.com/saltstack/salt/milestones/Be%202","labels_url":"https://api.github.com/repos/saltstack/salt/milestones/60/labels","id":1169057,"number":60,"title":"Be 2","description":null,"creator":{"login":"whiteinge","id":91293,"avatar_url":"https://avatars.githubusercontent.com/u/91293?v=3","gravatar_id":"","url":"https://api.github.com/users/whiteinge","html_url":"https://github.com/whiteinge","followers_url":"https://api.github.com/users/whiteinge/followers","following_url":"https://api.github.com/users/whiteinge/following{/other_user}","gists_url":"https://api.github.com/users/whiteinge/gists{/gist_id}","starred_url":"https://api.github.com/users/whiteinge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whiteinge/subscriptions","organizations_url":"https://api.github.com/users/whiteinge/orgs","repos_url":"https://api.github.com/users/whiteinge/repos","events_url":"https://api.github.com/users/whiteinge/events{/privacy}","received_events_url":"https://api.github.com/users/whiteinge/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":27,"state":"closed","created_at":"2015-06-17T18:05:37Z","updated_at":"2015-08-03T21:30:39Z","due_on":"2015-07-21T05:59:00Z","closed_at":"2015-07-24T18:20:13Z"},"comments":19,"created_at":"2015-06-11T12:49:11Z","updated_at":"2015-08-05T09:52:54Z","closed_at":"2015-07-08T23:29:59Z","body":"Since I want to update my windows minions from 2014.7.5-2 to 2015.5.0-2 I preferably don't want to do that manually.\r\nHowever, after generating a new windows repo, doing \"salt-run winrepo.genrepo\", \"salt '*' pkg.refresh_db\", it seems that \"pkg.install salt\" does not seem to work anymore.\r\n\r\nsalt-master:\r\n           Salt: 2015.5.0\r\n         Python: 2.7.5 (default, Jun 17 2014, 18:11:42)\r\n         Jinja2: 2.7.3\r\n       M2Crypto: 0.21.1\r\n msgpack-python: 0.4.6\r\n   msgpack-pure: Not Installed\r\n       pycrypto: 2.6.1\r\n        libnacl: Not Installed\r\n         PyYAML: 3.11\r\n          ioflo: Not Installed\r\n          PyZMQ: 14.3.1\r\n           RAET: Not Installed\r\n            ZMQ: 3.2.5\r\n           Mako: Not Installed\r\n\r\nClient is 2014.7.5-2.\r\n\r\nIs there a different way of upgrading windows minions now or am I missing something else?\r\n\r\nAlso, could you make the saltversion grain more explicit, so that is exactly shows which version I'm dealing with or perhaps another grain showing this?\r\n\r\nAs an example:\r\n\r\n[root@machine ~]# salt machine* grains.item saltversion\r\nmachine:\r\n    ----------\r\n    saltversion:\r\n        2014.7.5\r\n[root@machine ~]# salt machine* pkg.version \"salt*\"\r\nmachine:\r\n    ----------\r\n    Salt Minion 2014.7.5-2:\r\n        2014.7.5-2 \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/saltstack/salt/issues/comments/127941475","html_url":"https://github.com/saltstack/salt/issues/24594#issuecomment-127941475","issue_url":"https://api.github.com/repos/saltstack/salt/issues/24594","id":127941475,"user":{"login":"tganzeboom","id":4200834,"avatar_url":"https://avatars.githubusercontent.com/u/4200834?v=3","gravatar_id":"","url":"https://api.github.com/users/tganzeboom","html_url":"https://github.com/tganzeboom","followers_url":"https://api.github.com/users/tganzeboom/followers","following_url":"https://api.github.com/users/tganzeboom/following{/other_user}","gists_url":"https://api.github.com/users/tganzeboom/gists{/gist_id}","starred_url":"https://api.github.com/users/tganzeboom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tganzeboom/subscriptions","organizations_url":"https://api.github.com/users/tganzeboom/orgs","repos_url":"https://api.github.com/users/tganzeboom/repos","events_url":"https://api.github.com/users/tganzeboom/events{/privacy}","received_events_url":"https://api.github.com/users/tganzeboom/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T09:52:54Z","updated_at":"2015-08-05T09:52:54Z","body":"An addition for windows (the remote execute), which I ran into:\r\n```yaml\r\n{% set salt = pillar.get('salt', 'Salt-Minion-2015.5.3-2-AMD64-Setup.exe') %}\r\n{% set temp = pillar.get('temp', 'C:\\Temp') %}\r\n{% set master = pillar.get('master', '') %}\r\n{% set minion = pillar.get('minion', '') %}\r\n\r\n{% set args = '-salt ' ~ salt ~ ' -temp ' ~ temp %}\r\n\r\n{% if master != '' %}\r\n{%     set args = args ~ ' -master ' ~ master %}\r\n{% endif %}\r\n\r\n{% if minion != '' %}\r\n{%     set args = args ~ ' -minion ' ~ minion %}\r\n{% endif %}\r\n\r\ncopy_script:\r\n  file.managed:\r\n    - name: C:\\temp\\upgrade_salt.ps1\r\n    - source: salt://scripts/upgrade_salt.ps1\r\n\r\nremote_execute_on:\r\n  cmd.run:\r\n    - name: 'set-executionpolicy remotesigned'\r\n    - shell: 'powershell'\r\n\r\nschedule_script:\r\n  cmd.run:\r\n    - name: 'schtasks /RU \"System\" /Create /TN upgrade-salt /TR \"PowerShell -File C:\\temp\\upgrade_salt.ps1 {{ args }}\" /sc ONCE /sd 01/01/1975 /st 01:00 /F /V1 /Z'\r\n    - shell: 'powershell'\r\n\r\nrun_script:\r\n  cmd.run:\r\n    - name: 'schtasks /Run /TN upgrade-salt'\r\n\r\n#schedule_remote_execute_off:\r\n#  cmd.run:\r\n#    - name: 'schtasks /RU \"System\" /Create /TN remote-off /TR \"PowerShell set-executionpolicy restricted\" /sc ONCE /sd 01/01/1975 /st 01:00 /F /V1 /Z'\r\n#    - shell: 'powershell'\r\n```\r\nJust as an afterthought, since version 2015.5.3 is already out, version 2015.5.2 of the minion did not automagically restart after running this script, version 2015.5.3 did, however."}}