Local Module installation via r10k - puppet ....Help Needed

asked 2015-05-12 10:43:27 -0500

vijaybalan gravatar image

I have configured the puppet PE 3.8 and successfully integrated r10k and git.I am able to download modules from forgeapi.puppetlabs.com and i can able to populate via r10k for dynamic branches.

Now i have downloaded some modules from forgeapi.puppetlabs.com and kept it to /modules directory

my Puppetfile is like below....

mod 'puppetlabs/apache', :path => '/module/apache' mod 'puppetlabs/vsftpd', :path => '/module/vsftpd' mod 'puppetlabs/portage', :path => '/modules/portage' mod 'puppetlabs/pegem', :path => '/modules/pegem' mod 'puppetlabs/vcsrepo', :path => '/modules/vcsrepo' mod 'puppetlabs/ntp', :path => '/modules/ntp' mod 'puppetlabs/inifile', :path => '/modules/inifile' mod 'puppetlabs/mysql', :path => '/modules/mysql' mod 'puppetlabs/postgresql', :path => '/modules/postgresql' mod 'puppetlabs/firewall', :path => '/modules/firewall' mod 'puppetlabs/puppetdb', :path => '/modules/puppetdb' mod 'puppetlabs/concat', :path => '/modules/concat' mod 'puppetlabs/stdlib', :path => '/modules/stdlib'

when i execute the following command i am getting the below error

r10k deploy environment -pv

INFO -> Deploying module /etc/puppetlabs/puppet/environments/operationsvijay/modules/apache INFO -> Deploying module /etc/puppetlabs/puppet/environments/operationsvijay/modules/vsftpd ERROR -> Command exited with non-zero exit code: Command: puppet module --modulepath /etc/puppetlabs/puppet/environments/operationsvijay/modules --color false install --force puppetlabs/vsftpd Stdout: Notice: Preparing to install into /etc/puppetlabs/puppet/environments/operationsvijay/modules ... Notice: Downloading from https://forgeapi.puppetlabs.com ... Stderr: Error: Could not install 'puppetlabs-vsftpd' (latest) No releases are available from https://forgeapi.puppetlabs.com Does 'puppetlabs-vsftpd' have at least one published release? Exit code: 1 INFO -> Deploying module /etc/puppetlabs/puppet/environments/operationsvijay/modules/portage ERROR -> Command exited with non-zero exit code: Command: puppet module --modulepath /etc/puppetlabs/puppet/environments/operationsvijay/modules --color false install --force puppetlabs/portage Stdout: Notice: Preparing to install into /etc/puppetlabs/puppet/environments/operationsvijay/modules ... Notice: Downloading from https://forgeapi.puppetlabs.com ... Stderr: Error: Could not install 'puppetlabs-portage' (latest) No releases are available from https://forgeapi.puppetlabs.com Does 'puppetlabs-portage' have at least one published release? Exit code: 1 INFO -> Deploying module /etc/puppetlabs/puppet/environments/operationsvijay/modules/pegem INFO -> Deploying module /etc/puppetlabs/puppet/environments/operationsvijay/modules/vcsrepo INFO -> Deploying module /etc/puppetlabs/puppet/environments/operationsvijay/modules/ntp INFO -> Deploying module /etc/puppetlabs/puppet/environments/operationsvijay/modules/inifile INFO -> Deploying module /etc/puppetlabs/puppet/environments/operationsvijay/modules/mysql INFO -> Deploying module /etc/puppetlabs/puppet/environments/operationsvijay/modules/postgresql INFO -> Deploying module /etc/puppetlabs/puppet/environments/operationsvijay/modules/firewall INFO -> Deploying module /etc/puppetlabs/puppet/environments/operationsvijay/modules/puppetdb INFO -> Deploying module /etc/puppetlabs/puppet/environments/operationsvijay/modules/concat INFO -> Deploying module /etc/puppetlabs/puppet/environments/operationsvijay/modules/stdlib INFO -> Removing unmanaged path /etc/puppetlabs/puppet/environments/production

from this output i dont understand why still trying to download from internet rather than /modules directory....

Please advise me on this......

edit retag flag offensive close merge delete