Ruby安装Puppet Vagrant(Ruby Install Puppet Vagrant)
我尝试用puppet在我的vagrant机器上安装ruby,在puppet文件中用ruby包定义一个ruby类:
class ruby { package { "ruby": ensure => '1.9.1' }
但是当运行vagrant机器时,得到错误,找不到版本并安装1.8.7。
当我运行
ralsh package
列表时,ruby的版本:package { 'ruby1.8': ensure => '1.8.7.352-2ubuntu1.6', }
那么,如何升级我的ruby版本呢? 我是这个傀儡和流浪汉的新手。 在流浪者或傀儡中有没有办法?
谢谢。
I tried to install ruby on my vagrant machine with puppet, in the puppet file define a ruby class with package ruby:
class ruby { package { "ruby": ensure => '1.9.1' }
But when run the vagrant machine, get error that the version is not found and installs 1.8.7.
When i run
ralsh package
list the version of ruby:package { 'ruby1.8': ensure => '1.8.7.352-2ubuntu1.6', }
So, how can upgrade my ruby version? I'm new in this stuff of puppet & vagrant. Is there a way within vagrant or puppet?
Thanks.
原文:https://stackoverflow.com/questions/34522330
最满意答案
To solve the problem, you can use third party implementation of Switch .
I used Switch backport from BoD :
相关问答
更多-
好吧,看起来USB调试未经检查。 去看看这很简单。 Well it looks like USB debugging was unchecked. Go figure it was something simple.
-
Android App与三星galaxy S4 mini不兼容(Android App is not compatible with Samsung galaxy S4 mini)[2021-08-02]
540 x 960设备访问drawable-hdpi values-hdpi文件夹。 请更新您的hdpi文件夹并检查。 或者你为特定尺寸的设备创建布局res/layout-w540dp-h960dp/layout.xml , 540 x 960 devices access drawable-hdpi values-hdpi folders. please update your hdpi folder and check. or u shud create layout res/layout-w540dp ... -
好吧最后我得到了这个问题: 我不知道为什么,但在这里: function getDay($g) { if ($g == "monday") { $a[0] = "disp_mon"; $a[1] = "disp_mon_from"; $a[2] = "disp_mon_to"; return $a; } if ($g == "tuesday") { $a[0] = "disp_tue"; $a[1] = "disp_tue_from"; $a[2] = "disp_tue_to"; retu ...
-
我想你可以试试这个 Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); pic = new File(Environment.getExternalStorageDirectory(), "image name") + ".jpg"); picUri = Uri.fromF ...
-
三星Galaxy s4仿真器无法在eclipse中工作[关闭](Emulator for Samsung Galaxy s4 not working in eclipse [closed])[2022-05-27]
问题似乎与您的内存选项有关。 对于你,我已经创建了具有额外RAM和堆大小的S4的AVD。 请关注我的截图并重新创建相同的内容。 我用API-18和API-19两个版本尝试了这个,它是bingo :) 我建议你删除你现有的AVD S4并重新开始创建它,就像截图中的指导一样 我的观察结果是API-19效果很好,建议你使用API-19来实现这个S4。 如果您没有API-19,请使用SDK Manager进行安装。 祝你好运 The Issue seems to be with your Memory option ... -
Android Native Datepicker在Samsung S4设备中崩溃(Android Native Datepicker crashes in Samsung S4 device)[2022-01-09]
在html文件中,我将输入类型从日期/时间更改为文本,然后在其正常工作之后。 In the html file I changed the input type from Date/time to text then after its working fine. -
要解决此问题,可以使用Switch的第三方实现。 我使用了BoD的Switch backport: https://github.com/BoD/android-switch-backport To solve the problem, you can use third party implementation of Switch . I used Switch backport from BoD : https://github.com/BoD/android-switch-backport
-
在银河S4上浮动触摸(Floating Touch on Galaxy S4)[2020-02-26]
好的,我终于明白了! 为了使它工作,你必须: 为清单中的Activity添加一个新的intent过滤器到com.sec.android.airview.HOVER: 向您添加onHoverListener查看 convertView.setOnHoverListener(new OnHoverListener(){@Override public boolean onHover(View v,MotionEvent event){Log.d(“ListAdapter”,“Hover:”+ item); re ... -
Android Studio 0.2.5没有将Galaxy S4视为设备(Android Studio 0.2.5 Does not see Galaxy S4 as device)[2023-09-26]
我有一个Galaxy S3,最初当我和你在同一个位置时我不知道该怎么做。 通过USB识别设备的Android页面有点误导。 那么出路是什么? 好吧,下载并安装Samsung Kies并让它完成它的工作。 它将安装所有必要的驱动程序,以使您的设备可识别。 快乐的编码。 I have a Galaxy S3 and initially I did not know what to do when I was in the same position as you are. The Android page on ... -
我可以看到实例化data字符串的位置。 你在两个类中都将它作为参数传递,我想为了检索( Mainactivity2 )你先保存的内容( MainActivity ); 但由于负载是在onCreate()方法中完成的,我真的看不到你在哪里设置data变量。 所以,而不是写: sPref.getString(data, ""); 请使用有线密钥进行测试,如下所示: //saving, (`MainActivity`) ed.putString("DATA_KEY","aasdjf"); //loading, ...