-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not clear where the ipaddress gem should be installed #152
Comments
I think only installed it on the clients. It has been a long time since that so I can't really remember, I'll take a look tomorrow. I haven't worked with PE/PS at all so I can't really help with that, sorry. |
From my testing, it also need to be installed into the puppetserver ruby, as described above. |
package { 'ipaddr':
ensure => 'installed',
provider => gem,
} possible instead of having to do it some other way before the puppet run. |
There is a parser function, so it looks like we need to be clear that it's required on both the clients and the servers. |
I think the dependency on external library you have to install on all clients is very unfortunate. I had to hack this by adding dirty fake Facter code, which installs the library before serious Puppet functionality is executed: facter/fix_packages.rb: if Facter.value(:osfamily ) == 'RedHat' then
Facter::Core::Execution.exec(<<-EOS)
rpm -q rubygem-ipaddress ||
yum -y install rubygem-ipaddress
EOS
elsif Facter.value(:osfamily) == 'Debian' then
Facter::Core::Execution.exec(<<-EOS)
dpkg -l ruby-ipaddress ||
apt-get install -y ruby-ipaddress
EOS
end Isn't it possible (and better) to embed the ipaddress into module's |
We had a similar issue with a type and provider. We decided to confine the provider. |
You are right, on the other hand it takes more time to check and install via
... and these are best measured time, usually was a more higher. But that's not important right now. I just wanted to ask if there are any plans to fix this inside the module (either by installing or including the library) or disabling type/provider if required library is not installed. So that the system administrator doesn't have to fix all the machines theirself. |
@rski Thank you. |
The README now mentions the network class and how to use it. It also explains that the ipaddress gem should be installed both on the master and clients, which should address voxpupuli#152.
Following on from #128...
I think you need to be clearer about where the ipaddress gem should be installed.
We're using PE 3.8.x with pe-puppetserver on the master, and I fixed the "could not autoload" issue by installing the ipaddress gem into the puppetserver environment, ie:
Is it actually required on the client as well? Or only the server?
The text was updated successfully, but these errors were encountered: