I am using Puppet to to ensure quality control for a project and need to run yum updates at the end to verify that everything is up-to-date at the end of the process. It seems like you could use Class {"yum"} or exec { "yum update"} to start the initial process but my main concern is after finding updates how do you go about accepting the updates and finishing the install.
Thoughts/examples on how to do this?
exec { 'yum -y update': }
Sometimes... things are actually simple... :)
Are you sure you want to be running a global yum update? The point of puppet is to guarantee a machine has a particular state, if you're using it just to always have it install the latest and greatest, than not only is Puppet the wrong tool, there are far easier ways to accomplish that.
Related
Is there any way, within the chocolateyinstall.ps1 file, to check if the process was triggered with the Upgrade command versus the Install command?
I tried using things like "choco list --lo" and "choco outdated", but those kept bringing up the package currently being installed - even if it hadn't yet been fully installed. I was hoping there was some sort of environment variable or something easy that I've overlooked.
Thanks!
I'm new to CLI/BASH and I've got used to the basic commands. I now want to get used to installing software on a server, such as nodejs, git etc.
Is there an software or a way I can practice BASH commands such as installing on a server without actually installing? I want to improve my skills. Is there a dummy server software or something like that?
Perhaps you should look into virtualising a machine. Then you can install whatever software you want.
www.virtualbox.org
or www.vmware.com
Either that or you can always uninstall stuff after using it apt:
apt-get --purge remove <package>
apt-get autoremove --purge
(That will remove all the package and all dependencies)
I don't think there is a 'dummy server' though ;) Virtual machines are definitely your friend here though.
I do not know how to check for this via command line. I do know that you can do this for through the GUI; however, I want to implement this in my script. Anyone know how to do this? (I haven't found anything about this).
Ubuntu updates are managed through the apt package manager.
If you're looking to run daily updates you'll want to do something like:
sudo apt update # updates apt packages index
sudo apt upgrade # runs upgrades on all packages
I consistently run into issues with gems not having the required libraries on a server. RMagick is one, and usually mysql2, which usually require installing the dev versions such as:
imagemagick libmagickcore-dev libmagickwand-dev
My question is, is there a better way to manage this? I'm using bundler and capistrano, so it would be great if somebody could point me in the right direction.
The big problem I can see is that distros will change from server to server, but if I had a task I could run which could check the existence of these required packages based on the Gemfile, that would be tremendously helpful. Is this possible?
You can extend section 'cap deploy:setup'. =And in this section run 'apt-get instal imagemagick libmagickcore-dev libmagickwand-dev'. But you user must have sudo access.
Also you can read this manual
I dont' know why I cannot install ruby through yum in my RHEL6.2
How can I fix it. I don't wanna install through source. Any idea?
[root#kithost ~]# yum install ruby
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Setting up Install Process
No package ruby available.
Error: Nothing to do
RVM is a solution but it is not that I want.
What I want to know is that once we can't find any package from yum, what kind of thing should we fix into order to let yum find it?
Probably the best way to install and manage Ruby is using RVM. Moreover, you can use more than one ruby versions using RVM. I can bet, it's really something you may love it. Yum is sometime a curse :-).
Follow their installation guide as there are different methods of (with pros and cons) installations and choose your preferred one. I'm pretty sure, you will love it too.
However, if you are still thinking to use it, you may follow this Guide. Be aware, I don't not know whether it works or not as I did not try it. Why should I try something else, when I'm already using BEST one :)!
Redhat does not have a free repo list unless you pay, or make subscription to them.
The reason for that I cannot install ruby is that there is no availalbe repo list
check
/etc/repo.list
you can copy the one from CentOS to Redhat.
Then your yum could search a available repo server and make your ruby downloadable.
RVM is a good solution but I found that rbenv was much better including when you have to use Ruby on a server.
You can find how to install rbenv in the README.