# yum -y install vim-enhanced # vi /etc/profile # add at the last line alias vi=’vim’ # source /etc/profile # reload # cat .vimrc ” vimrc: Managed by puppet – DO NOT EDIT ” Changes manually to this file can, and will, be lostset nocompatibleif has(“syntax”) syntax on set background=dark endif if has(“autocmd”) au BufReadPost
REMARK – use *** puppet facts find <servername> –render-as yaml | grep sap_ora Make a custom fact (ruby code) that determins the Oracle version SAP is using. Under modules tree /modules/<module_name>/lib/oracleversion.rb Facter.add("sap_oracleversion") do confine :operatingsystem => 'SLES' if Facter.value(:sapprepsids) != nil setcode do result = "none" sapprep_sid = Facter.value(:sapprepsids) first_sid = sapprep_sid.to_s.split(',')[0] second_sid =
Hiera is nothing, but a key value look up tool, which can be ordered and organized nicely without meddling with the actual code. Just give hiera the data that your modules need, and you are ready to go. “Hiera makes your data separate from the module’s, so that the module code remains untouched. This helps
ISSUE: In the file /etc/lvm/lvm.conf the value of ‘level = x’ has to be set to 3 (lvm errors will be logged to syslog) Further requirements: This only has to be done if the value is different (unless..) ‘level = x’ within comments (#) have to be omitted Only if the value has changed the
Puppet is a powerful Configuration Management Tool used in a lot of corporate environements. Here are some tips and tricks for testing and writing modules and manifest: 1. Tags Tags are useful: especially when testing manifests/classes the class name can be tagged. Collecting Resources Tags can be used as an attribute in the search expression
Just on the command line with puppet apply [root@server1 ~]# puppet apply –verbose –execute ‘package { openssl: ensure => latest }’ Info: Loading facts Notice: Compiled catalog for server1.us-west-2.compute.internal in environment production in 0.57 seconds Warning: The package type’s allow_virtual parameter will be changing its default value from false to true in a future release.
Hello EC2, Part 1: Bootstrapping Instances with cloud-init, git, and puppet This is the first of a series of posts about setting up a scalable and robust ”Hello Word” web server using Amazon EC2—an exercise I am working through. The target audience is developers with some experience using EC2. This first installment looks at how