Hi Jochen,
Try the following:
require => [File[‘php-wpcli_latest_all.deb’], Package[‘mysql-client’]],
HTH
Peter
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/19ADAF36-F85F-445E-AF5C-B59E47237BB8%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5a99930e.46d3620a.a69c6.203e%40mx.google.com.
Hi,
Make sure you have that module also install the MySQL client, and require mysql::client. I’m deliberately vague on the exact syntax since I’m not sure.
Peter
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/C2ECE598-168D-4915-B0BD-0BE535757BA6%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5a9da66f.44196b0a.e76d5.428f%40mx.google.com.
Hi Jochen,
I’m going to give this back to the rest of the list since I’m out of my depth, and I don’t have the time to figure out the details at the moment. Good luck though 😊
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/FC42C939-7E6D-4184-8942-0A02A1FF2A24%40gmail.com.
Hi Jochen,
I’m going to give this back to the rest of the list since I’m out of my depth, and I don’t have the time to figure out the details at the moment. Good luck though 😊
$debfile = '/tmp/php-wpcli_latest_all.deb'
file { "$debfile" :
ensure => 'file',
source => 'puppet:///modules/profile/wordpress/php-wpcli_1.5.0_all.deb',
}
package { 'wpcli':
ensure => 'installed',
provider => 'dpkg',
source => "$debfile",
}
# 1. This assumes that you have a profile class '::profile::mysql_client' wrapping the PL
# ::mysql::client class. If not, then you could depend directly on
# Class['::mysql::client'].
# 2. You could express this same relationship with a 'require' attribute, if you prefer.
Class['::profile::mysql_client'] -> Package['wpcli']