We have already seen how to install different Linux OS through CDROMs.Below are the Linux os installations already covered so far.How to install Fedora Linux 17 In this howto guide, I will describe the simple steps for installation of the latest version of MATE desktop on Ubuntu 16.Ubuntu 16.Fedora 2224.Puppet How to install a packagesoftware.In this post, we will see on how to install software in a machine using Puppet.Puppet is all about how you manage serversmachines in a programmatical way by using underlying tools.For example take installing a software, puppet will talk to software installing tools like rpmYumapt getMSIWindows Microsoft Installer etc in order to install required packages.In this post we will see how it do it and some examples of installing software using Puppet tool.How Puppet install packages It is simple, Puppet uses ruby scripts which are located in usrlibrubyvendorrubypuppetproviderpackageOn Linux based machine to talk to above mention software installation tools.When you say to Puppet please install some XYZ package, then our puppet do below stuff.Will check all system properties provided by facter tool.Install Ssh On Fedora 17 Os' title='Install Ssh On Fedora 17 Os' />Read Puppet manifests and check what packages to install.After doing this, Puppet will just pass those details to these package installation tools for installation.Puppet tries to execute one of the matched script from the above mention folder in order to install a package on a node.Just for your understanding try to visit usrlibrubyvendorrubypuppetproviderpackage and see how many package installation tool Puppet can talk.Below is the list of tools scripts for people who do not want to visit thememail protected usrlibrubyvendorrubypuppetproviderpackage lsaix.Want to see for WindowsHave a look at below output email protected usrlibrubyvendorrubypuppetproviderpackage cd windowsemail protected usrlibrubyvendorrubypuppetproviderpackagewindows lsexepackage.Hope this gives you a bit of introduction on how Puppet can install those many types of software irrespective of OS you are using.Let use see how we can install a package using Puppet.We will try to walk through as given below sequence to get more about how we can install packages in different ways.Syntax for installing a package type title argument value,otherarg value,Type This is a type of resource which can be a package, file, user etc.Title Can be a name of the resource or description.Argument Is a task what you have to do, this explains what title has to do.Value Is something to take effect.To understand more about this syntax we will see below example My site.If you observe my site.My testmodule for this post in it.Note I am going to use puppet apply command in order to execute code on the same machine where my manifests are there.Installing a single package using Puppet.Example 1 Change the ensure value in testmodulemanifestsinit.Output email protected etcpuppet puppet apply manifestssite.Notice Compiled catalog for linuxnix in environment production in 0.Info Applying configuration version 1.Notice StagemainTestmodulePackagescreenensure created.Notice Finished catalog run in 7.The above code says install screen package.We are giving package name as a screen and what we are doing with that package.This no need to be the latest version, just this package should be present on the target machine.Suppose you want to install package to latest version, use below code.Install a package to latest version using Puppet.Example 2 Change ensure to latest in testmodulemanifestsinit.Output email protected etcpuppet puppet apply manifestssite.Notice Compiled catalog for linuxnix in environment production in 0.Info Applying configuration version 1.Notice StagemainTestmodulePackagescreenensure created.Notice Finished catalog run in 3.This code will install screen package to the latest version.The difference between the first example and the second one is that second one always checks if the installed version is up to date or not.If it is not up to date, puppet will make sure it install the latest version whenever puppet run catalogs on that machine.Installing multiple packages using Puppet.If we want to install multiple packages we can do that one as well using Puppet DSL arrays as shown below.We use below code using arrays.Output email protected etcpuppet puppet apply manifestssite.Notice Compiled catalog for linuxnix in environment production in 0.Info Applying configuration version 1.Notice Finished catalog run in 0.Installing a package after a particular task.We can force Puppet to install a package after doing particular task only after doing some task.This can be achieved by using require keyword as shown below.Packageapache.What the above code do is first uninstall apache.Install package to specific operating system.If you observe above example, We uninstall the apache.This package name is specific to Ubuntu based machines.If you want to install Apache on Redhat based machines, we have to use httpd.We can modify our code as below so that we can accommodate two operating systems without any issue.Fedora httpd, ubuntu apache.Packageapache,package apache ensure absent,Installing a package with a particular provider.Many of you are aware we can install software using multiple tools.Suppose if you are on a Ubuntu based machine, we can use apt get, dpkg or aptitude tools.When using Redhat based one we can use either rpm, yum or dfn tools.We can specify to puppet to use a specific tool to install that package.Below example installs apache.Ubuntu.Installing a package from a specific source.We can install packages from different repositories in Debian or Redhat based machines.We can specify from what source we can install the software.In our next tutorial, we will see how to deal with files and folders in Puppet.Install the Azure CLI 2.Install the new version of the Azure CLI today Weve improved and updated it to provide a great native command line experience for managing Azure resources.It can be used on mac.OS, Linux, and Windows.For information about the latest release, see the release notes.Install on mac.OSOn mac.OS, you are able to install either with Homebrew or manually.Install with Homebrew.If you dont have it already, install Homebrew by following the Homebrew installation instructions.If you have previously installed the CLI manually, follow the manual uninstall instructions.Update your local Homebrew repositories.Install the azure cli package.Note.If you previously installed the Azure CLI 1.Homebrew, instead of installing.CLI 2.Homebrew upgrade process.Install manually.Install Azure CLI 2.L https aka.Install.Azure. Cli bash.You may have to restart your shell for some changes to take effect.SHELL.Run the CLI from the command prompt with the az command.Install on Windows.Install with MSI for the Windows command line.To install the CLI on Windows and use it in the Windows command line, download and run the Azure CLI Installer MSI.Install with apt get for Bash on Ubuntu on Windows.If you dont have Bash on Windows, install it.Open the Bash shell.Modify your sources list.Run the following sudo commands sudo apt key adv keyserver packages.E1.F8. 6FEE0. 4B9.B0.E2. 8DB0. 2C4.DF4.A0. 89. 3.Run the CLI from the command prompt with the az command.Install on DebianUbuntu with apt get.For distributions using the apt package manager, you can install Azure CLI 2.Note.Your distribution must have support for Python 2.Python 3.CLI.Modify your sources list 3.Run the following sudo commands sudo apt key adv keyserver packages.E1.F8. 6FEE0. 4B9.B0.E2. 8DB0. 2C4.DF4.A0. 89. 3.Run the CLI from the command prompt with the az command.Install on RHEL, Fedora, and Cent.OS with yum.For distributions which use the yum package manager, you can install Azure CLI 2.Note.Your distribution must have support for Python 2.Python 3.CLI.Import the Microsoft repository key sudo rpm import https packages.Create local azure cli repository information sudo sh c echo e azure clinnameAzure CLInbaseurlhttps packages.Update the yum package index and install yum check update.Run the CLI from the command prompt with the az command.Install on open.SUSE and SLE with zypper.For distributions which use the zypper package manager, you can install Azure CLI 2.Note.Your distribution must have support for Python 2.Python 3.CLI.Import the Microsoft repository key sudo rpm import https packages.Create local azure cli repository information sudo sh c echo e azure clinnameAzure CLInbaseurlhttps packages.Update the zypper package index and install sudo zypper refresh.Run the CLI from the command prompt with the az command.Install with Docker.We maintain a Docker image preconfigured with the Azure CLI 2.Install the CLI using docker run.See our Docker tags for available versions.The CLI is installed on the image as the az command in usrlocalbin.Note.If you want to pick up the SSH keys from your user environment.HOME root to mount HOME as root.HOME root azuresdkazure cli python lt version.Install on Linux without a package manager.It is recommended that you install the CLI with a package manager if you are able to.If you do not want to add Microsofts repositories, or are working with.Onetouch 5600 Usb Driver Windows 7 there.CLI. Install the prerequisites based on your Linux distribution.Platform Prerequisites.Ubuntu 1.Ubuntu 1. 2. 0. 4 or 1.Debian 8 sudo apt get update sudo apt get install y python libssl dev libffi dev python dev build essential.Debian 7 sudo apt get update sudo apt get install y python libssl dev libffi dev python dev.Cent.OS 7. 1 or 7.Red.Hat 7. 2 sudo yum check update sudo yum install y gcc python libffi devel python devel openssl devel.SUSE Open.SUSE 1.If your distribution is not listed above, you will need to install Python 2.Open.SSL. Install the CLI with curl.L https aka.Install.Azure. Cli bash. Ludovico Einaudi Discografia Completa Download Mp3 here. You may have to restart your shell for some changes to take effect.SHELL.Run the CLI from the command prompt with the az command.Troubleshooting.If you encounter an issue during CLI install, check this section to see if your particular case is covered.If your issue is not here, please file a Github issue.Object Moved error.If you get an error from curl related to the L parameter, or an error message including the text Object Moved, try using the full URL instead of the aka.You may need to clear your shells command hash cache.Runhash r.Uninstall CLI 1. x versions.If you have an earlier CLI 1.Uninstall with npm.Remove the older CLI with npm uninstall.Uninstall with distributable.If you installed via the Azure CLI Installer MSI or a mac.OS package, use the same tool to remove your install.Uninstall with Docker.If you installed a Docker image to use the earlier CLI version, remove that image and any associated containers.You can then re create the containers.Docker image as described in the install instructions.Update the CLITo update the Azure CLI, use the same method that you used to install it.Update with Homebrew.If you previously installed manually, follow the install with Homebrew instructions.Update your local Homebrew repository information.Upgrade your installed packages.Update with MSIRun the Azure CLI Installer MSI again.Update with apt get.Use apt get upgrade to update the CLI package.Note.This will upgrade all of the installed packages on your system which have not had a dependency change.To upgrade only the CLI, use apt get install.Update with Docker.Update your local image with docker pull.Get the containers currently using the CLI image.CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES.Exited 0 8 minutes ago inspiringbenz.Note.If you installed a specific version of the image, you will need to add lt version to the end of the image name.Halt and recreate the containers.Update manually.Follow the manual installation instructions for mac.OS or Linux to update.Uninstall.If you decide to uninstall the CLI, were sorry to see you go.You should uninstall using the same method that you used to install the CLI.Uninstall with Homebrew.Uninstall the azure cli package.Uninstall with MSIRun the MSI again and choose uninstall.Uninstall with apt get.Uninstall via apt get remove sudo apt get remove y azure cli.Uninstall with Docker.If you installed a docker image, you will need to remove any containers running it, and then delete the local image.Get the containers which are running the azure cli image.CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES.Exited 0 8 minutes ago inspiringbenz.Delete any containers with the CLI image.Remove the locally installed CLI image.Note.If you installed a specific version of the image, you will need to add lt version to the end of the image name.Uninstall manually.If you used the script at https aka.Install.Azure. Cli to install the CLI, you can uninstall it with these steps.Remove the installed files.Delete the line lt install location libazure cliaz.If your shell uses a command cache, reload it.Note.The default install location is Userslt username.Report CLI issues and feedback.If you encounter any bugs with the tool.Issues section of our Git.Hub repository.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
November 2017
Categories |