Closed max-chudnovsky closed 3 weeks ago
Hey @max-chudnovsky ,
I believe the channels on microk8s snap are defined as 1.27/stable
. Take a look here
sorry, I could not wait so I wrote my provider. Snaps should use "install" only when you add a new snap. If you want to change the channel, you need to use "refresh". Your module would install the module, but if I changed the version it was not doing anything. In any case, good luck with your module.
On Thu, May 30, 2024 at 10:38 AM Christos Papageorgiou < @.***> wrote:
Hey @max-chudnovsky https://github.com/max-chudnovsky ,
I believe the channels on microk8s snap are defined as 1.27/stable. Take a look here https://microk8s.io/docs/setting-snap-channel
— Reply to this email directly, view it on GitHub https://github.com/root-expert/puppet-snap/issues/23#issuecomment-2139740877, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2MTLX4YKHWMWD7NDOHHPQTZE42XBAVCNFSM6AAAAABIH7WEOWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZZG42DAOBXG4 . You are receiving this because you were mentioned.Message ID: @.***>
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
I declare the package in my module this way. it works fine to install it.
package { 'microk8s': ensure => installed, provider => 'snap', install_options => ['classic', 'channel=1.26'], }
then i go back to the module, change the channel to 1.27
package { 'microk8s': ensure => installed, provider => 'snap', install_options => ['classic', 'channel=1.27'], }
running "puppet agent -t" does nothing. I know my module gets executed as it does notice, but snap is not updated. If I remove it manually with "snap remove microk8s" from the node, and then run "puppet agent -t" then it will install 1.27.
What are you seeing
What behaviour did you expect instead
it is supposed to do a snap refresh and update snap from 1.26 to 1.27
Output log
Any additional information you'd like to impart