About | FAQ | Help
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Is there some other option I need to use with puppet module install? or is this just a glitch on my system?

I am migrating to the most recent versions of puppet modules as I can get and I have come across a weird issue. As my normal account I can run a puppet module install 'modulename' and it will install/upgrade any module to my homedir/.puppetlabs/etc/code/modules dir. Where I can than cp or mv the dir to my actual /etc/puppetlabs/code/environments/dev/modules dir commit the change and push it to our git repo. However if I run the command as root the puppet module install fails with Error: undefined method `tr' for nil:NilClass. I can run,as root, puppet module install --version 6.0.0 --modulepath /tmp/elastic --ignore-dependencies elastic-elasticsearch which works fine but if I run puppet module install --version 6.0.0 --modulepath /etc/puppetlabs/code/environments/dev/modules -ignore-dependencies elastic-elasticsearch it fails with the error.

[0] root@puppet4-brian.office:~# puppet module install --version 6 --modulepath /etc/puppetlabs/code/environments/dev/modules/ --environment dev --debug --ignore-dependencies elastic-elasticsearch Debug: Runtime environment: puppet_version=4.10.1, ruby_version=2.1.9, run_mode=user, default_encoding=UTF-8 Notice: Preparing to install into /etc/puppetlabs/code/environments/dev/modules ... Error: undefined method `tr' for nil:NilClass Error: Try 'puppet help module install' for usage

root@puppet4-brian.office:~# puppet module install --version 6.0.0 --modulepath /tmp/elastic --ignore-dependencies elastic-elasticsearch Notice: Preparing to install into /tmp/elastic ... Notice: Created target directory /tmp/elastic Notice: Downloading from https://forgeapi.puppet.com ... Notice: Installing -- do not interrupt ... /tmp/elastic └── elastic-elasticsearch (v6.0.0)

-bash-4.2$ puppet module install --version 6 --ignore-dependencies elastic-elasticsearch Notice: Preparing to install into /nfshome/brianr/.puppetlabs/etc/code/modules ... Notice: Downloading from https://forgeapi.puppet.com ... Notice: Installing -- do not interrupt ... /nfshome/brianr/.puppetlabs/etc/code/modules └── elastic-elasticsearch (v6.0.0)

Is there some other option I need to use with puppet module install? or is this just a glitch on my system?

I am migrating to the most recent versions of puppet modules as I can get and I have come across a weird issue. As my normal account I can run a puppet module install 'modulename' and it will install/upgrade any module to my homedir/.puppetlabs/etc/code/modules dir. Where I can than cp or mv the dir to my actual /etc/puppetlabs/code/environments/dev/modules dir commit the change and push it to our git repo. However if I run the command as root the puppet module install fails with Error: undefined method `tr' for nil:NilClass. I can run,as root, puppet module install --version 6.0.0 --modulepath /tmp/elastic --ignore-dependencies elastic-elasticsearch which works fine but if I run puppet module install --version 6.0.0 --modulepath /etc/puppetlabs/code/environments/dev/modules -ignore-dependencies elastic-elasticsearch it fails with the error.

[0] root@puppet4-brian.office:~# puppet module install --version 6 --modulepath /etc/puppetlabs/code/environments/dev/modules/ --environment dev --debug --ignore-dependencies elastic-elasticsearch
Debug: Runtime environment: puppet_version=4.10.1, ruby_version=2.1.9, run_mode=user, default_encoding=UTF-8
Notice: Preparing to install into /etc/puppetlabs/code/environments/dev/modules ...
Error: undefined method `tr' for nil:NilClass
Error: Try 'puppet help module install' for usage

usage root@puppet4-brian.office:~# puppet module install --version 6.0.0 --modulepath /tmp/elastic --ignore-dependencies elastic-elasticsearch Notice: Preparing to install into /tmp/elastic ... Notice: Created target directory /tmp/elastic Notice: Downloading from https://forgeapi.puppet.com ... Notice: Installing -- do not interrupt ... /tmp/elastic └── elastic-elasticsearch (v6.0.0)

(v6.0.0) -bash-4.2$ puppet module install --version 6 --ignore-dependencies elastic-elasticsearch Notice: Preparing to install into /nfshome/brianr/.puppetlabs/etc/code/modules ... Notice: Downloading from https://forgeapi.puppet.com ... Notice: Installing -- do not interrupt ... /nfshome/brianr/.puppetlabs/etc/code/modules └── elastic-elasticsearch (v6.0.0)

(v6.0.0)

Is there some other option I need to use with puppet module install? or is this just a glitch on my system?

I am migrating to the most recent versions of puppet modules as I can get and I have come across a weird issue. As my normal account I can run a puppet module install 'modulename' and it will install/upgrade any module to my homedir/.puppetlabs/etc/code/modules dir. Where I can than cp or mv the dir to my actual /etc/puppetlabs/code/environments/dev/modules dir commit the change and push it to our git repo. However if I run the command as root the puppet module install fails with Error: undefined method `tr' for nil:NilClass. I can run,as root, puppet module install --version 6.0.0 --modulepath /tmp/elastic --ignore-dependencies elastic-elasticsearch which works fine but if I run puppet module install --version 6.0.0 --modulepath /etc/puppetlabs/code/environments/dev/modules -ignore-dependencies elastic-elasticsearch it fails with the error.

[0] root@puppet4-brian.office:~# puppet module install --version 6 --modulepath /etc/puppetlabs/code/environments/dev/modules/ --environment dev --debug --ignore-dependencies elastic-elasticsearch
Debug: Runtime environment: puppet_version=4.10.1, ruby_version=2.1.9, run_mode=user, default_encoding=UTF-8
Notice: Preparing to install into /etc/puppetlabs/code/environments/dev/modules ...
Error: undefined method `tr' 'tr' for nil:NilClass
Error: Try 'puppet help module install' for usage


 root@puppet4-brian.office:~# puppet module install --version 6.0.0 --modulepath /tmp/elastic --ignore-dependencies elastic-elasticsearch
Notice: Preparing to install into /tmp/elastic ...
Notice: Created target directory /tmp/elastic
Notice: Downloading from https://forgeapi.puppet.com ...
Notice: Installing -- do not interrupt ...
/tmp/elastic
└── elastic-elasticsearch (v6.0.0)


-bash-4.2$ puppet module install --version 6 --ignore-dependencies elastic-elasticsearch
Notice: Preparing to install into /nfshome/brianr/.puppetlabs/etc/code/modules ...
Notice: Downloading from https://forgeapi.puppet.com ...
Notice: Installing -- do not interrupt ...
/nfshome/brianr/.puppetlabs/etc/code/modules
└── elastic-elasticsearch (v6.0.0)