{"action":"closed","issue":{"url":"https://api.github.com/repos/puppetlabs/r10k/issues/208","labels_url":"https://api.github.com/repos/puppetlabs/r10k/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/puppetlabs/r10k/issues/208/comments","events_url":"https://api.github.com/repos/puppetlabs/r10k/issues/208/events","html_url":"https://github.com/puppetlabs/r10k/issues/208","id":46471857,"number":208,"title":"Forge modules should track latest version by default (2.0.0)","user":{"login":"rnelson0","id":1898351,"avatar_url":"https://avatars.githubusercontent.com/u/1898351?v=3","gravatar_id":"","url":"https://api.github.com/users/rnelson0","html_url":"https://github.com/rnelson0","followers_url":"https://api.github.com/users/rnelson0/followers","following_url":"https://api.github.com/users/rnelson0/following{/other_user}","gists_url":"https://api.github.com/users/rnelson0/gists{/gist_id}","starred_url":"https://api.github.com/users/rnelson0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnelson0/subscriptions","organizations_url":"https://api.github.com/users/rnelson0/orgs","repos_url":"https://api.github.com/users/rnelson0/repos","events_url":"https://api.github.com/users/rnelson0/events{/privacy}","received_events_url":"https://api.github.com/users/rnelson0/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/puppetlabs/r10k/labels/[category]%20forge","name":"[category] forge","color":"3fe56f"},{"url":"https://api.github.com/repos/puppetlabs/r10k/labels/[subsystem]%20module","name":"[subsystem] module","color":"207de5"},{"url":"https://api.github.com/repos/puppetlabs/r10k/labels/[type]%20enhancement","name":"[type] enhancement","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/puppetlabs/r10k/milestones/11","html_url":"https://github.com/puppetlabs/r10k/milestones/unplanned","labels_url":"https://api.github.com/repos/puppetlabs/r10k/milestones/11/labels","id":686458,"number":11,"title":"unplanned","description":"","creator":{"login":"adrienthebo","id":172194,"avatar_url":"https://avatars.githubusercontent.com/u/172194?v=3","gravatar_id":"","url":"https://api.github.com/users/adrienthebo","html_url":"https://github.com/adrienthebo","followers_url":"https://api.github.com/users/adrienthebo/followers","following_url":"https://api.github.com/users/adrienthebo/following{/other_user}","gists_url":"https://api.github.com/users/adrienthebo/gists{/gist_id}","starred_url":"https://api.github.com/users/adrienthebo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrienthebo/subscriptions","organizations_url":"https://api.github.com/users/adrienthebo/orgs","repos_url":"https://api.github.com/users/adrienthebo/repos","events_url":"https://api.github.com/users/adrienthebo/events{/privacy}","received_events_url":"https://api.github.com/users/adrienthebo/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":2,"state":"open","created_at":"2014-06-10T04:34:09Z","updated_at":"2015-06-05T21:44:24Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2014-10-22T04:33:19Z","updated_at":"2015-06-05T21:44:24Z","closed_at":"2015-06-05T21:44:24Z","body":"When following the instructions at https://github.com/rnelson0/r10k/blob/master/doc/dynamic-environments/usage.mkd, a single module should be deployed across environments with the command 'r10k deploy module <name>'. This works fine with user-defined modules (those with :git refs) but not with forge modules. See below.\r\n\r\nThe issue is twofold. 1) It doesn't actually update the module. 2) It doesn't alert the user that no update has occurred.\r\n\r\nI feel that this should either update the module, or not update the module but inform the user that nothing has occurred.\r\n\r\nOf lesser note is the series of warnings. Unless the module is not listed in any branch of any source, the warnings seem spurious to me.\r\n\r\n    [rnelson0@puppet puppet-tutorial]$ cat Puppetfile\r\n    forge \"http://forge.puppetlabs.com\"\r\n    \r\n    # Modules from the Puppet Forge\r\n    mod \"puppetlabs/apache\"\r\n    mod \"puppetlabs/concat\"\r\n    mod \"puppetlabs/firewall\"\r\n    mod \"puppetlabs/ntp\"\r\n    mod \"puppetlabs/stdlib\"\r\n    mod \"saz/ssh\"\r\n    mod \"yguenane/augeas\"\r\n    mod \"yguenane/ygrpms\"\r\n    mod \"saz/sudo\"\r\n    mod \"saz/motd\"\r\n    mod \"puppetlabs/puppetdb\"\r\n    mod \"puppetlabs/postgresql\"\r\n    mod \"puppetlabs/mcollective\"\r\n    mod \"garethr/erlang\"\r\n    mod \"puppetlabs/apt\"\r\n    mod \"stahnma/epel\"\r\n    mod \"puppetlabs/activemq\"\r\n    mod \"puppetlabs/java\"\r\n    mod \"puppetlabs/java_ks\"\r\n    mod \"puppetlabs/rabbitmq\"\r\n    mod \"richardc/datacat\"\r\n    mod \"stephenrjohnson/puppet\"\r\n    mod \"palli/createrepo\"\r\n    \r\n    # For our r10k installer\r\n    mod \"zack/r10k\"\r\n    mod \"gentoo/portage\"\r\n    mod \"mhuffnagle/make\"\r\n    mod \"puppetlabs/gcc\"\r\n    mod \"puppetlabs/git\"\r\n    mod \"puppetlabs/inifile\"\r\n    mod \"puppetlabs/pe_gem\"\r\n    mod \"puppetlabs/ruby\"\r\n    mod \"puppetlabs/vcsrepo\"\r\n    \r\n    # Modules from Github\r\n    mod \"base\",\r\n      :git => \"git://github.com/rnelson0/rnelson0-base\"\r\n    \r\n    mod \"custom_facts\",\r\n      :git => \"git://github.com/rnelson0/rnelson0-custom_facts\"\r\n    \r\n    mod \"role\",\r\n      :git => \"git://github.com/rnelson0/rnelson0-role\"\r\n    \r\n    mod \"profile\",\r\n      :git => \"git://github.com/rnelson0/rnelson0-profile\"\r\n    \r\n    mod \"site_mcollective\",\r\n      :git => \"git://github.com/rnelson0/site_mcollective\"\r\n    [rnelson0@puppet puppet-tutorial]$ sudo r10k deploy module ssh -v\r\n    [R10K::Task::Module::Sync - INFO] Deploying ssh into /etc/puppet/environments/installables/modules\r\n    [R10K::Task::Puppetfile::DeployModules - WARN] Unable to deploy module ssh: not listed in /etc/puppet/environments/master/Puppetfile\r\n    [R10K::Task::Module::Sync - INFO] Deploying ssh into /etc/puppet/environments/motd/modules\r\n    [R10K::Task::Module::Sync - INFO] Deploying ssh into /etc/puppet/environments/production/modules\r\n    [R10K::Task::Puppetfile::DeployModules - WARN] Unable to deploy module ssh: not listed in /etc/puppet/data/production/Puppetfile\r\n    [rnelson0@puppet puppet-tutorial]$ ls -l /etc/puppet/environments/production/modules/ssh/\r\n    total 48\r\n    drwxr-xr-x. 2 root root 4096 Apr 25 12:37 files\r\n    drwxr-xr-x. 3 root root 4096 Apr 25 12:37 lib\r\n    -r--r--r--. 1 root root  585 Apr 25 12:35 LICENSE\r\n    drwxr-xr-x. 4 root root 4096 Apr 25 12:37 manifests\r\n    -r--r--r--. 1 root root 2551 Apr 25 12:37 metadata.json\r\n    -r--r--r--. 1 root root  324 Apr 25 12:35 Modulefile\r\n    -r--r--r--. 1 root root  640 Apr 25 12:35 Rakefile\r\n    -r--r--r--. 1 root root 4311 Apr 25 12:35 README.markdown\r\n    drwxr-xr-x. 4 root root 4096 Apr 25 12:37 spec\r\n    drwxr-xr-x. 2 root root 4096 Apr 25 12:37 templates\r\n    drwxr-xr-x. 2 root root 4096 Apr 25 12:37 tests\r\n    [rnelson0@puppet puppet-tutorial]$ ls -l /etc/puppet/environments/motd/modules/ssh/\r\n    total 36\r\n    drwxr-xr-x. 2 root root 4096 Apr  4  2014 files\r\n    drwxr-xr-x. 3 root root 4096 Apr  4  2014 lib\r\n    -r--r--r--. 1 root root  585 Jan 24  2014 LICENSE\r\n    drwxr-xr-x. 4 root root 4096 Apr  4  2014 manifests\r\n    -r--r--r--. 1 root root 1808 Jan 24  2014 metadata.json\r\n    -r--r--r--. 1 root root  324 Jan 24  2014 Modulefile\r\n    -r--r--r--. 1 root root  462 Jan 24  2014 README.markdown\r\n    drwxr-xr-x. 2 root root 4096 Apr  4  2014 spec\r\n    drwxr-xr-x. 2 root root 4096 Jan 24  2014 tests\r\n    [rnelson0@puppet puppet-tutorial]$ date\r\n    Wed Oct 22 04:22:29 GMT 2014\r\n"}}