Hello, This was supposed to be an easy one, but it''s giving me a bit of a hard time. I know that specify a version for a package, I''d say: ensure => "version-123", but how do I also add a second command for the same variable; for instance, how do it I tell it to ensure => installed and also ensure => version? so far I''ve tried separating it with commas, i.e, ensure => installed, "version". I''ve also tried putting the version in brackets; i.e, ensure => installed["version"]. So far it hasn''t worked. Any ideas? Thanks, -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
----- "CraftyTech" <hmmedina@gmail.com> wrote:> Hello, > > This was supposed to be an easy one, but it''s giving me a bit of > a hard time. I know that specify a version for a package, I''d say: > ensure => "version-123", but how do I also add a second command for > the same variable; for instance, how do it I tell it to ensure => > installed and also ensure => version? so far I''ve tried separating > it with commas, i.e, ensure => installed, "version". I''ve also tried > putting the version in brackets; i.e, ensure => installed["version"]. > So far it hasn''t worked. Any ideas?you cannot have ensure => version without also implying installed. there''s no reason to tell it to install it, if you''re telling it to install version x -- R.I.Pienaar -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Gotcha.. Thanks On Jun 30, 7:21 pm, "R.I.Pienaar" <r...@devco.net> wrote:> ----- "CraftyTech" <hmmed...@gmail.com> wrote: > > Hello, > > > This was supposed to be an easy one, but it''s giving me a bit of > > a hard time. I know that specify a version for a package, I''d say: > > ensure => "version-123", but how do I also add a second command for > > the same variable; for instance, how do it I tell it to ensure => > > installed and also ensure => version? so far I''ve tried separating > > it with commas, i.e, ensure => installed, "version". I''ve also tried > > putting the version in brackets; i.e, ensure => installed["version"]. > > So far it hasn''t worked. Any ideas? > > you cannot have ensure => version without also implying installed. there''s no reason to tell it to install it, if you''re telling it to install version x > > -- > R.I.Pienaar-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.