Hello, there any reason not to configure debian alternatives this way? file { "/etc/alternatives/java": ensure => "/usr/lib/jvm/java-6-sun/jre/bin/java"; } appart from using non-free software --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hello,> there any reason not to configure debian alternatives this way? > > file { > "/etc/alternatives/java": > ensure => "/usr/lib/jvm/java-6-sun/jre/bin/java"; > }I do the same thing this way: exec { "update-java-alternatives --set java-6-sun": unless => ''test $(readlink /etc/alternatives/java) == "/usr/lib/jvm/java-6-sun/jre/bin/java"'', require => Package["sun-java6-bin"], } But for alternatives other than java, it probably is fine to do as you describe. Marc --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
thank you, I didn''t know about update-java-alternatives El dj 24 de 09 de 2009 a les 13:01 +0200, en/na Marc Fournier va escriure:> Hello, > > > there any reason not to configure debian alternatives this way? > > > > file { > > "/etc/alternatives/java": > > ensure => "/usr/lib/jvm/java-6-sun/jre/bin/java"; > > } > > I do the same thing this way: > > exec { "update-java-alternatives --set java-6-sun": > unless => ''test $(readlink /etc/alternatives/java) == "/usr/lib/jvm/java-6-sun/jre/bin/java"'', > require => Package["sun-java6-bin"], > } > > But for alternatives other than java, it probably is fine to do > as you describe. > > Marc > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
lluis <lluis@ingent.net> writes:> there any reason not to configure debian alternatives this way?> file { > "/etc/alternatives/java": > ensure => "/usr/lib/jvm/java-6-sun/jre/bin/java"; > }Yes, you won''t modify any slaved alternatives, such as the man page. You should always use update-alternatives rather than manipulating the file system to change alternative selections. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---