-
Notifications
You must be signed in to change notification settings - Fork 183
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
Could not find declared class redis #96
Comments
I forgot to mention, puppet is provisioning Centos 7.1: [provisioner@drupal-demonstration ~]$ puppet -V
4.5.0 |
|
@arioch, how do I specify which version of redis to install via your suggested directive: class { 'redis': ... } Additionally, how do I tell redis to automatically start up, when the machine boots, or restarted? |
To perform your suggested implementation, as indicated above, I created $version = '3.2.0'
class { 'redis':
package_ensure => $version,
}
contain redis Next, I proceeded to install your module, by adding it to my [root@localhost puppet]# ls -l /vagrant/puppet/modules
total xx
drwxrwxrwx. 1 provisioner provisioner 4096 Sep 19 2016 redis
[root@localhost puppet]# puppet apply --modulepath=/vagrant/puppet/modules temp.pp
Warning: Setting configtimeout is deprecated.
(at /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/settings.rb:1142:in `issue_deprecation_warning')
Warning: ModuleLoader: module 'redis' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules
Warning: ModuleLoader: module 'redis' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules
Warning: ModuleLoader: module 'redis' has unresolved dependencies - it will only see those that are resolved. Use 'puppet module list --tree' to see information about modules
Notice: Compiled catalog for localhost.localdomain in environment production in 0.78 seconds
Error: Could not update: Execution of '/bin/yum -d 0 -e 0 -y install redis-3.2.0' returned 1: Error: Nothing to do
Error: /Stage[main]/Redis::Install/Package[redis]/ensure: change from purged to 3.2.0 failed: Could not update: Execution of '/bin/yum -d 0 -e 0 -y install redis-3.2.0' returned 1: Error: Nothing to do
Notice: /Stage[main]/Redis::Config/File[/etc/redis]: Dependency Package[redis] has failures: true
Warning: /Stage[main]/Redis::Config/File[/etc/redis]: Skipping because of failed dependencies
Notice: /Stage[main]/Redis::Config/File[/etc/redis.conf.puppet]: Dependency Package[redis] has failures: true
Warning: /Stage[main]/Redis::Config/File[/etc/redis.conf.puppet]: Skipping because of failed dependencies
Notice: /Stage[main]/Redis::Config/File[/var/log/redis]: Dependency Package[redis] has failures: true
Warning: /Stage[main]/Redis::Config/File[/var/log/redis]: Skipping because of failed dependencies
Notice: /Stage[main]/Redis::Config/Exec[cp -p /etc/redis.conf.puppet /etc/redis.conf]: Dependency Package[redis] has failures: true
Warning: /Stage[main]/Redis::Config/Exec[cp -p /etc/redis.conf.puppet /etc/redis.conf]: Skipping because of failed dependencies
Notice: /Stage[main]/Redis::Service/Service[redis]: Dependency Package[redis] has failures: true
Warning: /Stage[main]/Redis::Service/Service[redis]: Skipping because of failed dependencies
Notice: /Stage[main]/Redis/Anchor[redis::end]: Dependency Package[redis] has failures: true
Warning: /Stage[main]/Redis/Anchor[redis::end]: Skipping because of failed dependencies
Notice: Applied catalog in 0.81 seconds |
I got redis to install via your module: |
My
Vagrantfile
calls uponconfigure_cache.pp
, which calls a custom moduleredis.pp
:Note: I attempted to install redis via an older suggestion of yours.
However, the following traceback occurs when vagrant runs
configure_cache.pp
:The text was updated successfully, but these errors were encountered: